home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Trees / V6 / usr / man / man1 / chmod.1 < prev    next >
Encoding:
Text File  |  1975-06-26  |  1.2 KB  |  52 lines

  1. .th CHMOD I 2/8/75
  2. .sh NAME
  3. chmod \*- change mode
  4. .sh SYNOPSIS
  5. .bd chmod
  6. octal file ...
  7. .sh DESCRIPTION
  8. The octal mode
  9. replaces the mode of each of the files.
  10. The mode is constructed from the OR of the
  11. following modes:
  12. .s3
  13. .lp +10 7
  14. 4000    set user ID on execution
  15. .lp +10 7
  16. 2000    set group ID on execution
  17. .lp +10 7
  18. 1000    sticky bit for shared, pure-procedure programs (see below)
  19. .lp +10 7
  20. 0400    read by owner
  21. .lp +10 7
  22. 0200    write by owner
  23. .lp +10 7
  24. 0100    execute (search in directory) by owner
  25. .lp +10 7
  26. 0070    read, write, execute (search) by group
  27. .lp +10 7
  28. 0007    read, write, execute (search) by others
  29. .s3
  30. .i0
  31. Only the owner of a file (or the super-user) may change its mode.
  32. .s3
  33. If an executable file is set up for sharing (``\*-n'' option
  34. of
  35. .it "ld (I)"
  36. ), then mode 1000 prevents the system from
  37. abandoning the swap-space image of the program-text portion
  38. of the file when its last user
  39. terminates.
  40. Thus when the next user of the file executes it,
  41. the text need not be read from the file
  42. system but can simply be swapped in,
  43. saving time.
  44. Ability to set this bit is restricted to the super-user
  45. since swap space is consumed
  46. by the images; it is only worth while for heavily used commands.
  47. .s3
  48. .sh "SEE ALSO"
  49. ls (I),
  50. chmod (II)
  51. .sh BUGS
  52.