hi, ? i am very new to samba and have run into an issue with setting up directory/file permissions. ? i have a nfs share on redhat 6 linux server that a group of users will share. basically each user will run their own respective jobs and save the logs in this share. my issue is that? all of the users are able to delete each others files, which i do not want ? can somebody please help me setup right smb.conf policy so that only the file creator can delete the file. ? curently i am playing with these settings ( which do not work) ? ????? path = /nfsshare/raw ??????? browseable = no ??????? writable = yes ??????? printable = no ??????? create mask = 700 ??????? force group = raw ??????? force create mode = 700 ??????? security mask = 000 ??????? force security mode = 700 ??????? force directory mode = 700 ??????? directory mask = 700 ??????? directory security mask = 000 ??????? force directory security mode = 700 ? ? really appreciate, i f somebody can help thanks malvin
From: mmmm tung <mmmmtung at yahoo.ca> Date: Fri, 6 Jan 2012 13:03:24 -0800 (PST)> i have a nfs share on redhat 6 linux server that a group of users > will share. basically each user will run their own respective jobs > and save the logs in this share.> my issue is that? all of the users are able to delete each others > files, which i do not want? > can somebody please help me setup right smb.conf policy so that only > the file creator can delete the file.You need to know that parameters of Samba including those described in your smb.conf can manage permissions of files/directories created (manupulated) via SMB clients.> create mask = 700 > force group = raw > force create mode = 700 > security mask = 000 > force security mode = 700 > force directory mode = 700 > directory mask = 700 > directory security mask = 000 > force directory security mode = 700Samba can restrict access per share/per user using writable/write list/..., but not per files/directories. If your jobs are running on RHEL server, you have to set correctly permissions in your jobs. --- TAKAHASHI Motonobu <monyo at monyo.com>
Malvin, You say you are talking about an NFS share. Are your users on Windows or Linux? Of course, if you really are using NFS, then the Samba config isn't going to control that. On Fri, Jan 6, 2012 at 4:03 PM, mmmm tung <mmmmtung at yahoo.ca> wrote:> hi, > > i am very new to samba and have run into an issue with setting up > directory/file permissions. > > i have a nfs share on redhat 6 linux server that a group of users will > share. basically each user will run their own respective jobs and save the > logs in this share. > my issue is that all of the users are able to delete each others files, > which i do not want > > can somebody please help me setup right smb.conf policy so that only the > file creator can delete the file. > > curently i am playing with these settings ( which do not work) > > path = /nfsshare/raw > browseable = no > writable = yes > printable = no > create mask = 700 > force group = raw > force create mode = 700 > security mask = 000 > force security mode = 700 > force directory mode = 700 > directory mask = 700 > directory security mask = 000 > force directory security mode = 700 > > > > really appreciate, i f somebody can help > thanks > malvin > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >-- Charles Tryon _________________________________________________________________________ "It's the job that's never started that takes longest to finish." -- Samwise Gamgee