TotalNET Advanced Server 5.2 Reference Manual

Examples

  1. 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
  2. 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
  3. 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
  4. 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
  5. 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