Package: coreutils
Version: 8.13-2
Severity: normal

chmod's manual page contains:

chmod changes the file mode bits of each given file according to mode, which can be either a symbolic representation of changes to make, or an octal number representing the bit pattern for the new mode bits.

An octal number does not necessarily represent the bit pattern for the new mode bits. If a FILE is a directory, the first digit does not necessarily represent the bit pattern of its special bits. As explained in the "SETUID AND SETGID BITS" section:

chmod changes the file mode bits of each given file according to mode, which can be either a symbolic representation of changes to make, or an octal number representing the bit pattern for the new mode bits.

Therefore, for example, if a directory has mode 2775, running chmod on it with OCTAL-MODE 0775 does not change its mode [to 0775].




--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to