Re: chmod 4755 ./somedir

erkki.s@sci.fi
Sat, 26 Jul 1997 00:34:16 +0300 (EET DST)


On Fri, 25 Jul 1997, Andreas Schwab wrote:

> |> if i do a chmod 2755 on a directory it becomes SGID and new files will belong
> |> to the group of that directory. but if i do chmod 4755 the directory becomes
> |> SUID: drwsr-xr-x but new files dont belong to the owner of the SUID dir.
> |> does the kernel ignore SUID on directories or has it some rather invisible
> |> effects?
> SUID has no meaning at all on directories.

Wrong. If a directory has SUID, all the files created in the directory
will be owned by the owner of the directory. Or.. Should be owned.
It works in 2.0.29 here, atleast ;).

'''' '' '' '' '' '' |Erkki Seppälä, erkki.s@sci.fi | ____ |
,, ,, ,, ,, ,,, | --> http://www.sci.fi/~tes/flux/| \\ ` Sigma |
'' '' '' '' '' | | \> |
,,,, ,, ,, ,, ,, |flux/Inside Informatics ry | _/__, project |
'''' '' '' '' ''' | --> http://inside.edu.lahti.fi/ | ~~~~ |
,, ,,, ,,, ,, ,, |_________________________________|_______________|