LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Adding user "me" to group "you" doesn't take effect for a while. Why not? (https://www.linuxquestions.org/questions/linux-newbie-8/adding-user-me-to-group-you-doesnt-take-effect-for-a-while-why-not-774447/)

Le Beastie 12-09-2009 04:01 AM

Adding user "me" to group "you" doesn't take effect for a while. Why not?
 
Hi everybody,

Here's the scenario:

I have a multi-user server (Ubuntu 9.10 x64 server), which currently has three primary users (I'll call them user0 (me), user1, and user2). As the server admin, I need to have write access to both user1 and user2's respective home directories. Consequently, to reduce the number of times I have to invoke root privileges, I added myself (user 0) to the user1 and user2 groups, and then recursively adjusted permissions to give myself the proper access:

Code:

groupmod -aG user1,user2 user0
chmod 770 -R /home/user1
chmod 770 -R /home/user2

Much to my dismay, it initially appeared that my permissions-mangling had had no effect; trying to ls or cd (as myself) into either of the /home directories in question consistently produced a "Permission denied" error. Some 8 hours later, however, everything seems to have happily settled into place, and I can access both directories without any problems. I have not restarted the server during this period, or done anything particularly intensive (other than ssh-ed in a couple of times, which hardly counts as intensive).

Anybody have any ideas as to why my permission-adjustments were delayed, or what caused them to suddenly take effect?

Thanks!

tredegar 12-09-2009 04:13 AM

You need to logout and then back in for your group changes to take effect.


All times are GMT -5. The time now is 06:23 AM.