bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#9594: 27.3 Numeric modes (File permissions): Special mode bits assum


From: Filipus Klutiero
Subject: bug#9594: 27.3 Numeric modes (File permissions): Special mode bits assume file is regular
Date: Sat, 24 Sep 2011 17:33:19 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.21) Gecko/20110831 Icedove/3.1.13

Section 27.3 Numeric modes contains:

Here is how the bits are arranged, starting with
the lowest valued bit:

     Value in  Corresponding
     Mode      Mode Bit

               Other users not in the file's group:
        1      Execute/search
        2      Write
        4      Read

               Other users in the file's group:
       10      Execute/search
       20      Write
       40      Read

               The file's owner:
      100      Execute/search
      200      Write
      400      Read

               Special mode bits:
     1000      Restricted deletion flag or sticky bit
     2000      Set group ID on execution
     4000      Set user ID on execution

These correspondences assume that the file is a regular file. For example, for a directory (where execution doesn't make sense), 2000 causes files created in the directory to inherit the directory's group. http://en.wikipedia.org/wiki/Setgid#setuid_and_setgid_on_directories has more information.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]