why it is not possible to modify file in a directory, where i have read/write group rights
Posted
by
sighter
on Stack Overflow
See other posts from Stack Overflow
or by sighter
Published on 2012-06-13T10:34:10Z
Indexed on
2012/06/13
10:40 UTC
Read the original article
Hit count: 301
I am currently messing around on my linux system and now i have the following situation.
The directory /srv/http has the following permissions set:
drwxrwxr-x 2 root httpdev 80 Jun 13 11:48 ./
drwxr-xr-x 6 root root 152 Mar 26 13:56 ../
-rwxrwxr-x 1 root httpdev 8 Jun 13 11:48 index.html*
I have created the group httpdev before with the command:
groupadd httpdev
and added my user sighter with:
gpasswd -a sighter httpdev
Then i have set the permissions as above using the chown and chmod commands.
But now i am not allowed to modify the index.html file or create a new file, as user sighter ,with touch like that:
<sighter [bassment] ~http> touch hallo.php
touch: cannot touch `hallo.php': Permission denied
What do I understand wrong. I was expecting that i can do what i want there then the group has all the rights.
The following Output is for your in formation.
<sighter [bassment] ~http> cat /etc/group | grep sighter
...
httpdev:x:1000:sighter
...
The used linux-distro is archlinux.
Thanks for all answers :)
greetz Sascha
© Stack Overflow or respective owner