LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-13-2011, 05:17 AM   #1
alokjalali
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
-----------------------------------------

[global]

# 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

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

[Proposals]
comment = Restricted Access
path = /Proposals
writeable = yes
readonly = yes
guest ok = yes
write list = boss
 
Old 07-14-2011, 01:49 AM   #2
mesiol
Member
 
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.
  


Reply


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 09:29 AM
RHEL 5.3 Samba DR Restore - Permissions Screwy on Samba shares mudman69 Red Hat 3 05-12-2009 11:56 AM
Samba shares/permissions Maniac0Maniac Linux - Server 2 03-02-2007 04:16 AM
Samba shares/permissions Maniac0Maniac Linux - Software 1 02-27-2007 03:36 PM
openoffice can't creat file in samba folder (windows shares) fahridon Linux - Software 2 05-05-2006 08:41 AM


All times are GMT -5. The time now is 04:50 PM.

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