Tag Info

New answers tagged

0

Trying to find a method to remember them, as in a mnemonic or pictograph? setuid = 4 | | UGO | read = 4 setgid = 2 | 0 | 000 | write = 2 sticky = 1 |<------|------>| execute = 1 U = user G = group O = other


3

In most Unix-like systems, a file, directory, or any other filesystem object is represented by an inode, which contains, among other things, an integer called the mode, which describes the type of object and some of its permissions. It's described in POSIX stat.h. The following symbolic names for the values of type mode_t shall also be defined: File type: ...


1

From the (english) man page for chmod (debian jessy): (Highlight by me) A numeric mode is from one to four octal digits (0-7), derived by adding up the bits with values 4, 2, and 1. Omitted digits are assumed to be leading zeros. The first digit selects the set user ID (4) and set group ID (2) and restricted deletion or sticky (1) ...


3

It's just a convention. All constant identifiers are associated with numbers in the Linux source code. Some of them are very old, and come from the very first releases of the kernel while others were added recently. The constant S_ISUID associated with "setuid" is defined in include/uapi/linux/stat.h, one of the numerous Linux headers. It could have been ...


2

As I searched through the list of unanswered questions for ones that I might be able to answer, I saw this question’s title and I figured that it might be an issue with file attributes. As detailed in the question’s comments, the immutable attribute had been set and @slm posted the solution: sudo chattr -i /var/www/update However, @slm also asked a very ...



Top 50 recent answers are included