Re: Bug#296729: Old proposed patches #3: 461_keep_sticky_bit_for_dirs
Tomasz Kłoczko <[email protected]> Thu, 12 Jan 2006 20:27:53 +0100
| Newsgroups | gmane.linux.pld.shadow.general |
|---|---|
| Message-ID | <[email protected]> |
Dnia 11-01-2006, śro o godzinie 18:22 +0100, Christian Perrier napisał(a): > The attached patch was written back in November for Debian bug #296729. > > It allows preserving the sticky bit on directories when copying files > from the skeleton. > > So far, I haven't got feedback on it. > > I intend to now apply it and close the relevant Debian bug, no matter > it's applied upstream or not. But, Tomasz, can you give us an > indication whether you think it's OK for you... from chmod(1): STICKY DIRECTORIES When the sticky bit is set on a directory, files in that directory may be unlinked or renamed only by root or their owner. Without the sticky bit, anyone able to write to the directory can delete or rename files. The sticky bit is commonly found on directories, such as /tmp, that are world-writable. So using sticky bit on Linux is limited in practise to using on /tmp, /var/tmp. IMO currend useradd behavior not propagate this atributes from skel to user home directory it is not bug but feacture. If you can convice this is feacture -> it will be have documented this in useradd(8). kloczek