Lines Matching +full:mode +full:- +full:flag

36 .Nd change mode of file
42 .Fn chmod "const char *path" "mode_t mode"
44 .Fn fchmod "int fd" "mode_t mode"
46 .Fn lchmod "const char *path" "mode_t mode"
48 .Fn fchmodat "int fd" "const char *path" "mode_t mode" "int flag"
55 .Fa mode .
64 is the super-user.
83 .Fa flag
92 .Fa flag
93 are constructed by a bitwise-inclusive OR of flags from the following list, defined
96 .Bl -tag -width indent
100 names a symbolic link, then the mode of the symbolic link is changed.
107 flag in the
131 .Fa flag
135 A mode is created from
141 .Bd -literal -offset indent -compact
162 The non-standard
172 On UFS-based file systems (FFS, LFS) the sticky
175 If mode
186 If mode ISUID (set UID) is set on a directory,
188 then the owner of any new files and sub-directories
211 turns off the set-user-id and set-group-id bits
212 unless the user is the super-user.
214 by protecting set-user-id (set-group-id) files
215 from remaining set-user-id (set-group-id) if they are modified,
225 .Rv -std
230 will fail and the file mode will be unchanged if:
231 .Bl -tag -width Er
245 the effective user ID is not the super-user.
247 The effective user ID is not the super-user, the effective user ID do match the
251 The named file has its immutable or append-only flag set, see the
255 The named file resides on a read-only file system.
266 The effective user ID is not the super-user, the mode includes the sticky bit
274 .Bl -tag -width Er
283 The file resides on a read-only file system.
295 .Bl -tag -width Er
306 .Fa flag
322 and the process is in capability mode or the
324 flag was specified.
337 .St -p1003.1-90 ,
343 .St -susv3 .
347 .St -p1003.1-2008 .