Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.