[Samba] File permission for group

Michael G. Noble mnoble at rfmagic.com
Thu Mar 6 21:45:03 GMT 2003


I the users home on UNIX/Linux .bashrc/.cshrc/.profile... (depending
on the users shell), you can set the env variable umask to be 002.
This will cause all files/directories created to give full permission
to the user and group and will mask out the write bit for other.
If you want the files/directories to be wide open the set the umask to
000.  To remove write from group and other you can use a umask of
022.  For more information on umask, read the man page.

This way you have UNIX/LINUX setting the permissions which is how
they are read in the first place.

Mike

On Thu, 2003-03-06 at 10:22, Patrick Nelson wrote:
> Chris McKeever wrote:
> ----------------->>>>
> I think I had the same problem.  It wound up being a smb.conf change:
> 
> force directory mode
> force create mode
> 
> and then you can put the masks that you want
> 
> I am rather new to this and apologize if this is not correct
> 
> 
> > -----Original Message-----
> > From: Sathi [mailto:sathi_linux at gmx.net]
> > Sent: Thursday, March 06, 2003 3:42 AM
> > To: samba at lists.samba.org
> > Subject: [Samba] File permission for group
> > 
> > 
> > Hello All,
> > 
> > I am running samba-2.2.4 as PDC.
> > 
> > I created a share in samba as given below
> > 
> > [Share]
> >    comment = Share
> >    path = /Store/share
> >    valid users = @share
> >    create mask = 0777
> >    directory mode = 0775
> >    browseable = yes
> >    writable = yes> 
> > 
> > If a user from "share group creates a file in the folder 
> > /Store/share only
> > that yours can access that file.If another user from same 
> > group tries to
> > access the file he gets access denied.
> > 
> > How to configure Share so that all the users in the group can 
> > have full
> > access to a file which was created by one the user in the same group
> > 
> ----------------->>>>
> 
> when a file is created with the absence of force user and/or force group, it
> will use the %u and their default group.  So if the user who connects is
> sathi then the created file or directory will have ownership of sathi and
> group of sathi.  If everyone is in this group they will be able to see it.
> Your answer would be to include the line:
> 
>  [Share]
>     comment = Share
>     path = /Store/share
>     valid users = @share
>     create mask = 0777
>     directory mode = 0775
>     browseable = yes
>     writable = yes
>     force group = <the group with everyone in it>
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  http://lists.samba.org/mailman/listinfo/samba
-- 
Michael G. Noble			RF Magic, Inc.
Senior System Administrator		10182 Telesis Ct., 4th Floor
					San Diego, CA.   92121
email: mnoble at rfmagic.com		voice: (858) 546-2401 x207
					fax:   (858) 546-2402
--
There is Sanity in my Madness!



More information about the samba mailing list