Heupink, Mourik Jan C.
2004-Feb-10 14:13 UTC
[Samba] applying permissions to subdirectories using setgid doesn't do th e trick... :(
Dear list. I have a problem that I cannot seem to get rid of. I have a directory/share (on linux) called "smb" containing four subdirectories. This directory will be 'exported' using samba.I would like to have different permissions on the different subdirectories. This works, except for this one directory (called temp) that I want to be read/write for everybody. Using force user etc in smb.conf is not an option (afaik) because that only applies to a top level directory, and not to deeper directories, right..? (please do correct me if i'm wrong here already....) So, I tried linux filesystem permissions setgid and setuid to this directory (temp). This works for the setgid part, but appearently setuid only works on files, not on directories. Setgid is NOT good enough, because all files now are owned by user 'users', but still have read only permissions to 'users' group. SO... Is there a way to make the directories below temp inherit all permissions from temp, INCLUDING read/write by a certain group? Or do you guys have other ways to get me where I would like to go...? Thanks very much for your input. Kindly yours, Mourik Jan
Gerald (Jerry) Carter
2004-Feb-10 16:32 UTC
[Samba] applying permissions to subdirectories using setgid doesn't do th e trick... :(
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Heupink, Mourik Jan C. wrote: | Using force user etc in smb.conf is not an option (afaik) | because that only applies to a top level directory, and not to | deeper directories, right..? (please do correct me if i'm | wrong here already....) force user applies to all file reads/writes anywhere within that share. You might also want to look at 'inherit permissions' in smb.conf(5). cheers, jerry - ---------------------------------------------------------------------- Hewlett-Packard ------------------------- http://www.hp.com SAMBA Team ---------------------- http://www.samba.org GnuPG Key ---- http://www.plainjoe.org/gpg_public.asc "If we're adding to the noise, turn off this song" --Switchfoot (2003) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFAKQfTIR7qMdg1EfYRAl3nAJ9qUySGedDn2kDsvZ3vwkuKKfOMmQCeOfQw A+wMyAAIBzavOJNB2sQQt9A=tnH7 -----END PGP SIGNATURE-----
Reasonably Related Threads
- [Bug 13239] New: "rsync --times" does not keep dirs' setgid bits when user not member of setgid group
- [Bug 136] New: setgid() deemed to fail for non-suid ssh client on linux if using other than primary group
- Samba 4.6.2 does not inherit setgid bit (anymore)
- Problem with --times and setgid dir when user not member of the group
- Samba 4.6.2 does not inherit setgid bit (anymore)