Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-13-2011, 04:17 AM   #1
LQ Newbie
Registered: Jul 2011
Posts: 1

Rep: Reputation: Disabled
Samba shares and file and folder permissions

i have 3 shares on my samba.
i have users - user, manager and boss
projects is RW to everyone
reference is R to everyone RW to manager and boss
Proposals is RW only to boss, no access to others

However when boss logs in and creates a directory in projects share, the directory can only be renamed bu users and manager, and directory contents are read only for users and managers, even deletion / rename is denied.

How can i make sure that when ever boss creates a directory in projects, it retains base folder permissions and is writable to user

this is my samba file... i am using red hat 6.1 with samba 3.5.6 (i think)

Need some serious help ... and thanks in advance


# Role Of Server ---------- User based Security----------File Server.
username map = /etc/samba/smbusers
workgroup = OFFICE
netbios name = fileserver1
server string = Authorised access only
null passwords = no
smb passwd file = /etc/samba/smbpasswd
guest only = no
# The option below will restrict samba access from following network only
hosts allow = 192.168.1.
log file = /var/log/samba/%m.log
max log size = 50
printcap name = CUPS
show add printer wizard = No
add user script = /usr/sbin/useradd -m '%u'
delete user script = /usr/sbin/userdel -r '%u'
add group script = /usr/sbin/groupadd '%g'
delete group script = /usr/sbin/groupdel '%g'
add user to group script = /usr/sbin/usermod -G '%g' '%u'
passwd chat = *New*Password* %n\n*Re-enter*new*password* %n\n *Password*changed*
printing = CUPS

comment = Public Share Files. Please keep your data safe.
path = /data/projects
writeable = yes
valid users = user manager boss
comment = This share is for user's Reference.
path = /data/projects_ref
writeable = yes
readonly = yes
guest ok = yes
write list = manager boss

comment = Restricted Access
path = /Proposals
writeable = yes
readonly = yes
guest ok = yes
write list = boss
Old 07-14-2011, 12:49 AM   #2
Registered: Nov 2008
Location: Lower Saxony, Germany
Distribution: CentOS, RHEL, Solaris 10, AIX, HP-UX
Posts: 731

Rep: Reputation: 137Reputation: 137
Take a look at smb.conf parameter "create mask" to add correct permissions when files and directories are created.
1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
samba shares permissions as flexible as 2003server shares? fdelval Linux - Newbie 5 11-23-2010 08:29 AM
RHEL 5.3 Samba DR Restore - Permissions Screwy on Samba shares mudman69 Red Hat 3 05-12-2009 10:56 AM
Samba shares/permissions Maniac0Maniac Linux - Server 2 03-02-2007 03:16 AM
Samba shares/permissions Maniac0Maniac Linux - Software 1 02-27-2007 02:36 PM
openoffice can't creat file in samba folder (windows shares) fahridon Linux - Software 2 05-05-2006 07:41 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:50 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration