Edmundo Valle Neto
2006-Jul-04 02:51 UTC
[Samba] Default behavior of setting SUID bit in directories.
Hello. In the Samba by Example book theres a section called "Effect of Setting File and Directory SUID/SGID Permissions Explained", that shows an example of the effect of SUID/SGID bits. The SGID bit when setted in directories makes the files inherit the group owner, but I couldn't make the SUID bit on directories work, making files inherit the owner. The documentation says that, as it was a general default behavior, and recommends that together with force user in several places in the book. I'm using Debian Sarge for example, and it doesn't do that, I dont know even how to enable that behavior. Am I missing something? Any Linux/Unix flavor does that (inherit the owner when a directory has the SUID bit set) by default? Regards. Edmundo Valle Neto
Michael Gasch
2006-Jul-04 07:01 UTC
[Samba] Default behavior of setting SUID bit in directories.
> group owner, but I couldn't make the SUID bit on directories work, > making files inherit the owner.please use "inherit owner" for this to work greez> The documentation says that, as it was a general default behavior, > and recommends that together with force user in several places in the book. > I'm using Debian Sarge for example, and it doesn't do that, I dont > know even how to enable that behavior. > > Am I missing something? Any Linux/Unix flavor does that (inherit the > owner when a directory has the SUID bit set) by default? > > Regards. > > > Edmundo Valle Neto-- Michael Gasch Max Planck Institute for Evolutionary Anthropology Department of Human Evolution (IT Staff) Deutscher Platz 6 D-04103 Leipzig Germany Phone: 49 (0)341 - 3550 137 49 (0)341 - 3550 374 Fax: 49 (0)341 - 3550 399