LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
LinkBack Search this Thread
Old 12-09-2009, 04: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:

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!
 
Old 12-09-2009, 04:13 AM   #2
tredegar
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,007

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


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 10:18 PM
LXer: Displaying "MyComputer", "Trash", "Network Servers" Icons On A GNOME Desktop LXer Syndicated Linux News 0 04-02-2007 08:31 AM
Adding an AD authenticated user to the "wheel" group on Red Hat ES kram82 Linux - Security 3 06-22-2006 07:50 AM
problem adding user name with "\" into a group icejam Linux - Software 5 05-12-2006 02:03 AM
"adduser" not adding users to default group "users" PunkPT Slackware 2 09-23-2004 11:50 AM


All times are GMT -5. The time now is 08:09 PM.

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