LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 10:19 AM   #1
glennbtn
Member
 
Registered: Dec 2009
Posts: 96

Rep: Reputation: 18
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 12:02 PM.
 
Old 07-07-2010, 10:42 AM   #2
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,090

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
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, 10:54 AM   #3
glennbtn
Member
 
Registered: Dec 2009
Posts: 96

Original Poster
Rep: Reputation: 18
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, 11:49 AM   #4
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,090

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
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, 12:01 PM   #5
glennbtn
Member
 
Registered: Dec 2009
Posts: 96

Original Poster
Rep: Reputation: 18
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, 06:04 AM   #6
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,090

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


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


All times are GMT -5. The time now is 10:40 AM.

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