[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: groups?



Ivan Cheniot wrote:

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




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]