[SWLUG] File permissions

peter apvx95 at dsl.pipex.com
Sat May 13 12:14:22 UTC 2006


Here's a silly on I'm sure one of you Linux sysadmins will be able to 
clear up for me in about 2 seconds flat.

I'm running SuSE Linux 9.3 Pro, and what I want to do is to make the 
/srv/www/htdocs directory writeable for members of the 'web' group.  
I've created the 'web' group, and put a single member into the group - 
me.  According to YaST, my user is:

Login   name    UID    groups
peter   peter   1000   web,dialout,video,users,burning

Returning to /srv/www/htdocs I've changed its permissions from 755 to 
775, and its ownership from root:root to root:web.

peter at linux:/srv/www/htdocs> ls -lad /srv/www/htdocs
drwxrwxr-x  5 root web 1456 2006-05-13 12:08 /srv/www/htdocs

But for some reason, I can't write to the directory:

peter at linux:/srv/www/htdocs> touch testfile
touch: cannot touch `testfile': Permission denied

Can someone please put me out of my misery and point out what I'm 
getting wrong?

Thanks


Peter



More information about the Swlug mailing list