Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-09-2009, 05:01 AM   #1
Le Beastie
LQ Newbie
Registered: Mar 2005
Location: Way out there
Distribution: Ubuntu 9.10
Posts: 25

Rep: Reputation: 16
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:

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?

Old 12-09-2009, 05:13 AM   #2
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
You need to logout and then back in for your group changes to take effect.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 11:18 PM
LXer: Displaying "MyComputer", "Trash", "Network Servers" Icons On A GNOME Desktop LXer Syndicated Linux News 0 04-02-2007 09:31 AM
Adding an AD authenticated user to the "wheel" group on Red Hat ES kram82 Linux - Security 3 06-22-2006 08:50 AM
problem adding user name with "\" into a group icejam Linux - Software 5 05-12-2006 03:03 AM
"adduser" not adding users to default group "users" PunkPT Slackware 2 09-23-2004 12:50 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:33 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration