Linux file permissions seem right but I can't write to a directory

1

I believe that I have the permissions set correctly but I can't write to a directory. Here's my problem:

cborders@Kraken:/var/www$ ls -la
total 12
drwxrwxr-x  2 webz webz 4096 2011-12-30 14:58 ./
drwxr-xr-x 13 root root 4096 2011-12-30 14:58 ../
-rw-rw-r--  1 webz webz  177 2011-12-30 14:58 index.html

cborders@Kraken:/var/www$ id cborders
uid=1000(cborders) gid=1000(cborders) groups=1000(cborders),4(adm),20(dialout),24(cdrom),46(plugdev),109(sambashare),113(lpadmin),114(admin),1002(webz)

cborders@Kraken:/var/www$ mkdir test
mkdir: cannot create directory `test': Permission denied

The owner of the directory is a user called webz and the permissions allow the user and group rwx access to it. I am in the webz group but I still can't make any changes. What am I doing wrong here?

CaseyB

Posted 2012-03-29T19:52:24.180

Reputation: 203

1Did you remember to relogin after adding yourself to webz? I've bitten myself that way a number of times. – Eroen – 2012-03-29T20:07:39.980

Eroen, NO! I didn't! Thank you! If you post this as an answer I'll accept it! – CaseyB – 2012-03-29T20:08:55.283

possible duplicate of Linux Group Permissions

– user1686 – 2012-03-29T21:07:05.630

Answers

4

Did you remember to relogin after adding yourself to webz? I've bitten myself that way a number of times.

Eroen

Posted 2012-03-29T19:52:24.180

Reputation: 5 615