Results 1 to 4 of 4
Thread: SSH usergroup question
-
05-30-2005, 05:20 PM #1Web Hosting Master
- Join Date
- Dec 2002
- Location
- UK
- Posts
- 838
SSH usergroup question
Hi Everyone
need a quick help on somethign quick question
what command wud i use in SSH to change teh file permissions of all the Files and fodlers in that particular directory?
at the moment i have a folder called main i want all the files in that folder and folders to have the group ownership of "me" and user "me"
if that makes sense?
i know u can chmod a folder using something like chmod 755 foldername
but i want everything under that folder to be 755?
thanks
-
05-30-2005, 05:28 PM #2Newbie
- Join Date
- May 2005
- Location
- Canada
- Posts
- 15
chmod -R will do recursive changes
To change user it would be chown & for group, it would be chgrp
You can get the full info & usage on all three commands (chmod, chown, chgrp) by typing man <command>
-
05-30-2005, 11:49 PM #3Web Hosting Master
- Join Date
- Feb 2004
- Posts
- 772
hi saj,
To change permissions of all files and directories in your current directory AND change the permissions of all files and subdirectories:
chmod -R 755 *
chown & chgrp used for changing user & group.Bright Info Solutions
-
05-31-2005, 05:55 AM #4Web Hosting Master
- Join Date
- Dec 2002
- Location
- UK
- Posts
- 838
Thanks guys !