lkml.org 
[lkml]   [1997]   [Jul]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: chmod 4755 ./somedir

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/ | ~~~~ |
,, ,,, ,,, ,, ,, |_________________________________|_______________|




\
 
 \ /
  Last update: 2005-03-22 13:40    [W:0.330 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site