Incompatible group permission - Is it a bug?
- From: Vivek Prakash <vivek.cs.iitr@xxxxxxxxx>
- Date: Sun, 17 Jun 2012 01:04:44 +0530
Hi,
I am creating another user and placing an existing user in the group
of other user, hoping to write in the home directory of other user.
Sounds very simple!
# uname -a
Linux vini 2.6.38-11-generic #50-Ubuntu SMP Mon Sep 12 21:18:14 UTC
2011 i686 athlon i386 GNU/Linux
# whoami
vivek
# su root
# useradd -m -U foo // create user foo
# usermod -a -G foo vivek // add user `vivek' to group `foo'
# chmod 770 /home/foo/
# exit
# whoami
vivek
# cd /home/foo/
bash: cd: /home/foo/: Permission denied
# groups vivek
vivek : vivek foo
This is totally weird. Though user `vivek' is in group `foo', and
group bits for /home/foo/ is set to rwx, `vivek' can't chdir to
/home/foo/. I am not able to understand this.
But, if at the `exit' step, I switch to `vivek' user from root, this
is what happens:
# uname -a
Linux vini 2.6.38-11-generic #50-Ubuntu SMP Mon Sep 12 21:18:14 UTC
2011 i686 athlon i386 GNU/Linux
# whoami
vivek
# su root
# useradd -m -U foo // create user foo
# usermod -a -G foo vivek // add user `vivek' to group `foo'
# chmod 770 /home/foo/
# su vivek
# whoami
vivek
# cd /home/foo/
# ls
examples.desktop
Now, whatever is happening here is totally incomprehensible. Does `su
vivek' inherits some permissions from the `root' user at this step?
Any explanations would be much appreciated.
Thanks,
Vivek
--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
Archive: http://lists.debian.org/CAENtUgpDtOmW8u6ooOvp3SP2unMPn-0E5GraKjOUMdxYkqbj0w@xxxxxxxxxxxxxx
- Follow-Ups:
- Re: Incompatible group permission - Is it a bug?
- From: Slavko
- Re: Incompatible group permission - Is it a bug?
- Prev by Date: Re: configuring interface & configuring MTA time out
- Next by Date: Re: what causes these apt-get/aptitude errors?
- Previous by thread: not autocompleting
- Next by thread: Re: Incompatible group permission - Is it a bug?
- Index(es):
Relevant Pages
|