Hyun Posted October 17, 2009 Share Posted October 17, 2009 Hello Linux Users, I made a new user called patch which is under the patch group. I want the user patch to be able to have full permissions in /var/www/folder. I tried using the chgrp patch /var/www/folder command line but it doesn't work (I've tested via WinSCP). Thanks. P.S.: I use Debian Lenny. Quote Link to comment Share on other sites More sharing options...
trq Posted October 17, 2009 Share Posted October 17, 2009 Define 'doesn't work'. Quote Link to comment Share on other sites More sharing options...
broseph Posted October 19, 2009 Share Posted October 19, 2009 sudo chgrp -R patch /var/wwww 1. Run it as root, hence the 'sudo' 2. Recursively change the group, so 'patch' has full access to subfolders. Quote Link to comment Share on other sites More sharing options...
purpleshadez Posted October 23, 2009 Share Posted October 23, 2009 sudo chgrp -R patch /var/wwww 1. Run it as root, hence the 'sudo' 2. Recursively change the group, so 'patch' has full access to subfolders. if you want full access you'd need to set the group to have read write execute on that folder too. chmod -R 77x /var/www (where x is the level of access you want for others) Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted October 23, 2009 Share Posted October 23, 2009 If you just want to give the group all permissions do you can do chmod -R g+rwx /var/www In that way you don't have to figure out what the permissions for owner and group already are as well. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.