Hi, Dňa Sun, 17 Jun 2012 02:46:05 +0530 Vivek Prakash <vi...@mycareerstack.com> napísal:
> My point is that there is not some miracle happening here. What > happens under the hood that the new memberships don't come into play > if I don't logout/login or change the group ID of a login session > using `newgrp' ? Is this behaviour expected? I don't think so. After > all, /etc/passwd & /etc/group and some other related files are read by > the functions in libc to check the permission whenever a user wants to > do something, for example change a directory or write to a file or > execute a binary, etc. What is it that the new memberships don't come > into play immediately? Most importantly, is this behavior desired > after all? I don't know the background nor understand the sources :-) But consider this – listing of directory content with thousands files. You are want to read /etc/passwd for any file in it? This take a lot of useless disk reads. Then some as "caching" is here and IMO this is was the login does for this. regards -- Slavko http://slavino.sk
signature.asc
Description: PGP signature