Where does it take the info? Can't find it in the environnement variables.
If it was stored in environment variables, the user would be able to change it--which would not be very secure.
This information is stored in the process descriptor. If you want to get a pointer to how it functions, start reading source code for the "su" program, and for the getgid() and setgid() system calls.
Alan
-- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list