[Samba] Inherit permissions question (Please help)
dave at dcdata.co.za
Mon Jan 24 14:41:55 GMT 2005
Thanks for your reply.
OK, that makes sense. Unfortunately I can't use the "force user" option on
the share due to the sub folders in the share being owned separately by
other users (600+ of them).
If the administrator(root) had to write a file (test.txt) to the user1
folder and I had "inherit permissions" turned on, then file would be written
rwx------ 16 root Domain Admins 0 2005-01-21 07:07 test.txt
Unfortunately I need "user1" to own the file, just like it's parent
directory, which is as follows:
drwx----- 16 user1 users 4096 2005-01-21 user1/
The problem is that I have other users in the same "userprofile" share,
which each need to own their own profile folder and files in them.
Perhaps configuring filesystem ACLs and turning on "inherit acls" would help
Any ideas ? :)
Perhaps I need to write a "postexec" script that looks at the user's folder
name, which corresponds to the username and does a "chmod -R [user] [user]"
on the folder after data is written to it ?
Thank you for your assistance so far, greatly appreciated !
D c D a t a
Tel +27 33 342 7003
Fax +27 33 345 4155
Cell +27 82 4147413
support at dcdata.co.za
Powered by Linux, driven by passion !
"Computers are not intelligent. They only think they are."
----- Original Message -----
From: "Gerald (Jerry) Carter" <jerry at samba.org>
To: "David Wilson" <dave at dcdata.co.za>
Cc: <samba at lists.samba.org>
Sent: Monday, January 24, 2005 3:53 PM
Subject: Re: [Samba] Inherit permissions question (Please help)
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> David Wilson wrote:
> |>> If the administrator connects to \\server\userprofile\user1 and
> |>> writes a file named "test.txt" into the directory the permissions
> |>> from the directory "user1" are not propagated down to the new file.
> |>> My permissions on the "user1" directory are set as follows:
> |>> drwx----- 16 user1 users 4096 2005-01-21 user1/
> |>> The file "test.txt" gets written with the following permissions:
> |>> -rw------ 16 root Domain Admins 0 2005-01-21 07:07
> |>> Any ideas on how I get samba to write it so that the owner of the
> |>> folder propagates to new files written into the folder even if a
> |>> domain admin writes them there ?
> Inherit permissions set file bits not the owner. You might
> have more luck with the 'force user' option. But be careful
> of granting more access than you intend.
> cheers, jerry
> Alleviating the pain of Windows(tm) ------- http://www.samba.org
> GnuPG Key ----- http://www.plainjoe.org/gpg_public.asc
> "I never saved anything for the swim back." Ethan Hawk in Gattaca
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
> -----END PGP SIGNATURE-----
More information about the samba