FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

LinkBack Thread Tools
Old 06-17-2012, 04:31 PM
Default Incompatible group permission - Is it a bug?


Dňa Sun, 17 Jun 2012 02:46:05 +0530 Vivek Prakash
<vivek@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.



Thread Tools

All times are GMT. The time now is 01:22 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org