LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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-07-2010, 09:19 AM   #1
glennbtn
Member
 
Registered: Dec 2009
Posts: 154

Rep: Reputation: 19
Samba share


Hi All. I needs a little help with a the first ever samba share I am creating.

I have a share called public which has permissions 755 and the main user is administrator and a group called staff
2064405 drwxrwsr-x 3 administrator staff 4096 Jul 7 15:44 everyone

Now the administrator can write fine and anyone in the staff group can view but can create files. I did try 777 but then everyone could write and not just the users in the staff group. I will paste the part from smb.con below. Just need some advise for a beginner what I need to be doing. Thanks

# A publicly accessible directory, but read only, except for people in
# the "staff" group
[public]
comment = Public Stuff
path = /home/everyone
public = yes
writable = yes
printable = no
write list = staff

Last edited by glennbtn; 07-07-2010 at 11:02 AM.
 
Old 07-07-2010, 09:42 AM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,225

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
I think you need to modify the 'write list' option.

The way you have it coded, 'staff' will be interpreted as a user. Here is what it shows in the samba doc.

Quote:
This is a list of users that are given read-write access to a service. If the connecting user is in this list then they will be given write access, no matter what the read only option is set to. The list can include group names using the @group syntax.

Note that if a user is in both the read list and the write list then they will be given write access.

By design, this parameter will not work with the security = share in Samba 3.0.

Default: write list =

Example: write list = admin, root, @staff
So, try @staff, that should treat the staff as the group you intend.

Hope this helps.
 
Old 07-07-2010, 09:54 AM   #3
glennbtn
Member
 
Registered: Dec 2009
Posts: 154

Original Poster
Rep: Reputation: 19
Many thanks for the fast response. I have tried this but it did not work. I am guessing it's a problem folder permissions but not sure I what I should be doing to sort it.
 
Old 07-07-2010, 10:49 AM   #4
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,225

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Did you restart the samba server after the config modifications? They won't have any effect until you do.

Any error messages?
 
Old 07-07-2010, 11:01 AM   #5
glennbtn
Member
 
Registered: Dec 2009
Posts: 154

Original Poster
Rep: Reputation: 19
Managed to find the issue. Even though I had added users to the the group, when I used nano they were not there. Added them with nano and problem resolved.

Thanks for the help
 
Old 07-08-2010, 05:04 AM   #6
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,225

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Good stuff... it is all to easy to miss a small step. Been there, done that.
 
  


Reply



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
can't mount samba share and then write to the share calbazon Linux - Software 8 10-10-2010 01:35 AM
mount windows share export to samba share -> improve network performance tuning newuser77 Linux - Server 1 07-23-2008 11:28 AM
show the samba share but can't mount the share badall Linux - Server 3 05-30-2007 04:24 AM
searching samba share breaks connection to share Elomis Linux - Server 1 05-11-2007 12:28 AM
Simple Samba Setup, Share & Not Share timmywo Linux - Software 4 07-30-2004 07:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:32 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
Open Source Consulting | Domain Registration