Samba/Filesystem Permissions Help

Matt Snell mattds at gmail.com
Wed Oct 3 12:33:41 EDT 2007


On Tue, Oct 02, 2007 at 03:54:14PM -0400, Ben Scott wrote:
>   Just to clarify: Here, you refer to a Unix group (in the /etc/group
> file) called "smbusers", and not an entry in the /etc/samba/smbusers
> file.  Yes?

Correct, my thinking is that since I need a valid Unix user, I
might as well use a Unix group to manage rw access to the directories.
There's probably another way that I just haven't thought of.

>   Pretty close.  The SGID bit on a directory will cause new entries
> (files, subdirectories, named pipes, etc.) created under that
> directory to inherit the group ownership of the directory.  Also,
> subdirectories created under the directory will inherit the SGID bit.
> However, SGID does not affect the mode (permissions) of new entries.
> You still have to worry about umask and create mode.

BIG HELP.  Thank you.  
 
> # directory modes are SETGID, user/group=R/W/X, world=NONE
> directory mask = 770
> force directory mode = 2770

I've added lines similar to smb.conf and ran testparm, I'm getting the output
below.  It's not complaining, but it just seems funky, I'll play with it.

        directory mask = 02775
        force directory mode = 02775

 
>   Well, that depends.  Are you using mount as a single-user thing or a
> multi-user thing?  In other words, is user "matt" mounting xfer
> somewhere [..snip..]

Thanks for ALL of that info, this is MUCH clearer to me.  I'm going to play
around and see how best to do things, at least I understand just what's going
on now.  

If I find a comprehensive NIS tutorial that works out for me, I'll be sure to
send it along.  Thanks again :)


-- 
M@, Linux User #415137
ICQ: 347886968
http://linuxneophyte.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.gnhlug.org/mailman/private/gnhlug-discuss/attachments/20071003/2c1a1268/attachment.bin 


More information about the gnhlug-discuss mailing list