[Samba] using "@group_name" in smb.conf
rvt at dds.nl
rvt at dds.nl
Thu Jun 6 01:45:02 GMT 2002
It properly the best to use force group in this case aswell.
comment = Accounts Dept Share
path = /usr/local/share/accounts
valid users = @accounts
public = no
writable = yes
printable = no
create mask = 0765
force group = accounts
so when a user drops a file there and the primary group of that user is not
accounts then a other user might not beable to open the file as RW. And to
disable other users there you might use 'create mask = 0660'. which disables
reading of the files using a unix account aswell.
just a tought, it all depends on your setup ofcourse....
Citeren "Anthony J. Breeds-Taurima" <tony at cantech.net.au>:
> On Thu, 6 Jun 2002, Darryl Harvey wrote:
> > Hi all,
> > I need to give a group of users access to a file share that I am sharing
> > via samba.
> > In smb.conf I am using something similar to;
> > [accts]
> > comment = Accounts Dept Share
> > path = /usr/local/share/accounts
> > valid users = @accounts
> > public = no
> > writable = yes
> > printable = no
> > create mask = 0765
> > The valid users line says who can access this share: "@accounts".
> > I know the @accounts = the "accounts" group.
> > How/where do I add the actual valid usernames to this group? Within
> > smb.conf, or as a file (Where does the file sit and what is it called
> > (accounts ?)
> > I can't find the answer in the docs, I did try :-(
> Assuming "accounts" is a local group just
> and append the users you need comma seperated.
> Yours Tony
> Jan 22-26 2003 Linux.Conf.AU http://conf.linux.org.au/
> The Australian Linux Technical Conference!
> To unsubscribe from this list go to the following URL and read the
> instructions: http://lists.samba.org/mailman/listinfo/samba
More information about the samba