1

Possible Duplicate:
How to add write permissions for a group?

On Centos 6 I'm trying to give full access to make and delete by the user mitch for /var/www/http.

I did addgroup www and then chmod -R 775 /var/www/html then groupmod -g www mitch, and did a chgrp -R www /var/www/html but when I went into /html on mitch and tried to make a file with touch it said "permission denied."

Can someone help me make anyone in www able to create and delete in the html dir?

drwxr-xr-x.  6 root root 4096 Feb 13  2012 .
drwxr-xr-x. 22 root root 4096 Sep 29 23:30 ..
drwxr-xr-x.  2 root root 4096 Feb 13  2012 cgi-bin
drwxr-xr-x.  3 root root 4096 Oct  1 21:23 error
drwsrwsr-x.  2 root www  4096 Oct  2 16:15 html
drwxr-xr-x.  3 root root 4096 Oct  2 16:13 icons

is the ls -la output for the /var/www dir

Mitchell Ross
  • 11
  • 1
  • 4

1 Answers1

0

When in the folder /var/www/html check the permissions of the "." 'folder'. it could be that mitch does not have the same permissions on that, thus cannot delete/modify stuff in that folder, but since you ran the chmod recursively before, mitch would have 775 permission in all of the subdirectories of /var/www/html.

To fix:

cd /var/www/html
chgrp www .
chmod 775 .
Pitt
  • 141
  • Thank you for your guy's help, I just restarted my computer and now its letting me create files under mitch, guess I should have tried a restart before wasting your time, thanks again – Mitchell Ross Oct 03 '12 at 20:08