INTEGER fchmod(STRING mode[, STRING file])
This function changes the mode of a file or directory. The mode is an octal number constructed by logically OR-ing the following values:
- 4000
- set-user-ID-on-execution
- 2000
- set-group-ID-on-execution
- 1000
- sticky bit, see chmod(2)
- 0400
- read by owner
- 0200
- write by owner
- 0100
- execute (or search for directories) by owner
- 0070
- read, write, execute/search by group
- 0007
- read, write, execute/search by others
The read, write, and execute/search values for group and others are en- coded as described for owner.
If the RESTRICTIVE_FILES option has been compiled into the
driver, sticky and setuid/setgid bits cannot be changed.
Last Modified on Mar 2 1996
Copyright © 1995, 1996, Brandon Gillespie