[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: what is s ?
> What the `s' in the file permission mean ?
> dr-xr-sr-x 6 root root 1024 Feb 9 14:17 pub
>
> The man chmod wrote this:
> set user or group ID on execution (s)
When the 04000 (in octal base) flag is set, ls puts "s" instead of
the first "x" (or upper-case "S" if there should be "-" instead of
"x"), and any process which runs this file gains the UID of the
owner of the file (only effective UID; real UID remains the
original).
When the 02000 (in octal base) flag is set, ls puts "s" instead of
the second "x" (or upper-case "S" if there should be "-" instead of
"x"), and any process which runs this file gains the GID of the
group-owner of the file (only effective GID; real GID remains the
original).
I don't know what is the mean in the case of a directory (I think
there is no mean).
--
Eli Marmor