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 06-08-2013, 11:29 AM   #1
MichaelDigital
LQ Newbie
 
Registered: Jun 2013
Posts: 2

Rep: Reputation: Disabled
Cool Samba User Permissions


Greetings everyone,

Here is my issue. I have a Samba server setup on Ubuntu 13.04. I have my smb.conf setup to allow anyone and everyone accessing it read/write permissions. Problem is, my 11 year old boy is taking an interest into music and I want to be able to allow him read only permissions to my music share (same share that is shared with everyone on my network without user authentication). This was the simplest way I could get my file server up and running and it runs perfectly.
[share]
comment = Ubuntu File Server Share
path = /samba/data
browsable = yes
guest ok = yes
read only = no
create mask = 777

How can I make it so that his machine/user only has read access to /samba/data/MichaelPC/music ??
I have tried several ideas but none has proven successful. Any help would be appreciated!
 
Old 06-09-2013, 03:54 PM   #2
Lexus45
Member
 
Registered: Jan 2010
Location: Kurgan, Russia
Distribution: Slackware, Ubuntu
Posts: 352
Blog Entries: 3

Rep: Reputation: 47
Hello.

Try 'read list' parameter and specify there your qurious boy : ) Though I'm not sure how this option will behave with the share which is world-witeable.
http://www.samba.org/samba/docs/usin...-CHP-9-TABLE-1
 
Old 06-09-2013, 08:01 PM   #3
MichaelDigital
LQ Newbie
 
Registered: Jun 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Lexus45,

Thanks for that link it was quite helpful. Unfortunately, I couldn't integrate that parameter into my existing setup. So, I thought about a different one, but not sure how to go about this. Is it possible to have two entries pointing to the same share but one user with read only and the other write privileges? example:

[share]
comment = Ubuntu File Server
path = /samba/data
valid users = administrator
public = no
writable = yes

and then have another below -

[share]
comment = Ubuntu File Server
path = /samba/data
valid users = gavin
public = no
writable = no
 
  


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
User permissions - FTP - Samba stascrash Linux - General 3 05-16-2010 07:24 AM
permissions on samba change on specific user actions javeree Linux - Server 1 03-01-2007 04:43 AM
Samba User / Group Access Permissions Different Between Linux and Win jeyroz Linux - Software 8 01-29-2006 12:26 PM
how to setup folder permissions for guest user with samba? wza Linux - Networking 0 07-08-2004 10:26 AM
User permissions for Supermount and Samba Cyrus XIII Linux - Newbie 0 04-17-2004 10:21 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