r5792: Added new parameter "inherit owner". If set on a share, the created file/directory
commitcc5ba986bf4c7b704ae5c3787f2f3881145e719c
authorJeremy Allison <jra@samba.org>
Tue, 15 Mar 2005 01:19:58 +0000 (15 01:19 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:56:01 +0000 (10 10:56 -0500)
treed7d83dee305d4d62a6f763bafc28bf4b07e24cf1
parent00a62a7f6d880c3788e7211cbbcc95dc6e2aa90e
r5792: Added new parameter "inherit owner". If set on a share, the created file/directory
will be owned by the same uid as the containing directory. Doing this for directories
in a race-free mannor has only been tested on Linux (it depends on being able to open
a directory and then do a fchown on that file descriptor). If this functionality is
not available then the code silently downgrades to not changing the ownership of a
new directory. This new parameter (docs to follow) finally makes it possible to create
"drop boxes" on Samba, which requires all files within a directory to be commonly owned.
A HOWTO on how to use this will follow.
Jeremy.
(This used to be commit 2e1f727184b9d025d2e3413bdd3d01d5ca803a41)
source3/param/loadparm.c
source3/printing/nt_printing.c
source3/smbd/filename.c
source3/smbd/open.c
source3/smbd/reply.c