stat.st_mode deciphering

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John

    #1

    stat.st_mode deciphering

    I have a question about the value of st_mode for files and directories.

    Given this file and this directory:
    drwxrwxr-x 2 chris chris 4096 Jun 17 23:14 foo
    -rwxrwxr-x 1 chris chris 13803 Jun 19 09:07 st1

    st_mode for the executable st1 is 100775.
    st_mode for the directory foo is 40775.

    So I get that the 775 is the permissioning, but I can't reckon what the rest
    of it is (the 100 and the 40).

    Any insight is greatly appreciated.



  • John

    #2
    Re: stat.st_mode deciphering

    Nuts. Sorry for the cross-post. This was intended for
    comp.unix.progr ammer.... Where the hell is my breakfast?


    "John" <iamlevi3@hotma il.com> wrote in message
    news:7r2dnd28Mq D9oEndRVn-vA@comcast.com. ..[color=blue]
    >I have a question about the value of st_mode for files and directories.
    >
    > Given this file and this directory:
    > drwxrwxr-x 2 chris chris 4096 Jun 17 23:14 foo
    > -rwxrwxr-x 1 chris chris 13803 Jun 19 09:07 st1
    >
    > st_mode for the executable st1 is 100775.
    > st_mode for the directory foo is 40775.
    >
    > So I get that the 775 is the permissioning, but I can't reckon what the
    > rest of it is (the 100 and the 40).
    >
    > Any insight is greatly appreciated.
    >
    >
    >[/color]


    Comment

    Working...