Use the following command to change the mode of the file userlist.doc to "read" and "write" permissions for the owner and "read-only" permissions for others:
tnchmod 644 userlist.doc |
Use the following command to add "write" permissions for everyone to the files present.doc and schedule.doc and the directory mgmt:
tnchmod a+w present.doc schedule.doc mgmt |
Use the following command to change the permission of the file log.nw to 777 without receiving any error messages:
tnchmod -f 777 log.nw |
Use the following command to change the permission of the file testplan.doc to 777 and prompt for confirmation before the mode changes:
tnchmod -i 777 testplan.doc |
Use the following command to change the mode of the directory marketing, and all files and directories under it, to "read" and "write" permissions for everyone:
tnchmod -R a+r+w marketing |