BecomeUser-Test

DESCRIPTION

Test whether the user id and group (real and effective) 
are properly set by Becomeuser.pm.

Test is performed for a version of BecomeUser.pm and UserCache.pm

SETUP

Only necessary if 'perl' is not in your PATH:
Enter the path to your 'perl' executable in script 'run'.

Copy the BecomeUser.pm and UserCache.pm from the TSI you want to check to the
test_id_changing/ directory.

You can edit the test_id_changing.pl to turn on debug mode or to control 
whether OS groups should be enforced for the requested user.

RUNNING:

- Login as 'root'
- Start the test with './run .'.
- You will be prompted for a user and his group:
  "Enter <user name> <group name>"
- The output will present the user id and group ids if
  the setting was successful.
  Otherwise you will see some error message or just root's ids.
- Enter another user or stop the test by entering 'quit'.

Note that for <group name> you can use literals NONE and DEFAULT_GID, 
you can also separate several groups with ':' to order particular 
primary and supplementary groups.


Initial code by Sven van den Berghe (Fecit).
Minor modifications by Klaus-Dieter Oertel (Pallas), 2001-09-21
and by Krzysztof Benedyczak (ICM), 2012-12-12
