Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

chmod and chown

Status
Not open for further replies.

streetbmx

Programmer
Dec 6, 2001
16
0
0
US
how do you do chmod and chown and other unix commands on directories and files in windows?
 
chmod
- allows you to change the permissions on a file or directory
- chmod -R - descends through all subdirectories and files
- chmod -v - report actions for all files
- the chmod utility will accept numerical or symbolic arguments
- u = owner, g=group, and o=other, when changing permissions
- when using the symbolic arguments, you can use either a + or - sign to add or remove a permission. If you use an = sign, it will set it to whatever you specify.

example - chmod go+w fileone
example - chmod 755 fileone
example - chmod u+w,g-w,o=r fileone



chown
- allows you to change user and/or group ownership of a file or directory
- only the root user can change file ownership
- chown -R - change a directory along with all of its files and subdirectories
- chown -v - reports actions for all files
- you can change the user and group at the same time like this…

chown user-owner.group-owner file

- you can change only the group like this…

chown .group-owner file


Hope this helps,
ChrisP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top