Approach to permissions, UNIX usernames, and UNIX groups ..

Peter J. Holzer hjp at
Mon Dec 6 11:45:14 GMT 1999

On 1999-12-06 19:42:22 +1100, Michael Szengel wrote:
> JAson wrote to samba at
> ..
> > Is there a way to tell SAMBA to assign files being written to the
> > group of the subdirectory the file is being written to? Is there a
> > better way altgother to approach this (I hope there is =).
> Although it is quite difficult to emulate the behavior of a Novell
> server under a Linux system, the problem above should be solved
> by setting the SGID-Bit on the directories (chmod g+s <dirname>).
> Starting from then, all ne created files will get the group ownership
> of the directory

On Linux you can also get this behaviour on all directories by mounting
the file system with the "bsdgroups" option. No need to set setgid bits
on a gazillion of directories.

> (NOT the rights ! you will have to set them in the nessecary
> way seperatly).

You could get this behaviour by setting a default ACL on the directory.
Unfortunately none of the ACL implementations for Linux are
"production-ready" yet (AFAIK), so this is only useful for people
running Solaris or IRIX.


   _  | Peter J. Holzer             | Nobody should ever have to be
|_|_) | Sysadmin WSR / Obmann LUGA  | ashamed if they have a secret love
| |   | hjp at               | for writing computer programs that
__/   | | actually work.  -- Donald E. Knuth
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 371 bytes
Desc: not available
Url :

More information about the samba mailing list