Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Samba Read Only Share
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
dloenzen
n00b
n00b


Joined: 10 Jul 2007
Posts: 41

PostPosted: Mon Aug 27, 2007 12:12 pm    Post subject: Samba Read Only Share Reply with quote

What do I need to put into the smb.conf file for a read-only share.
Back to top
View user's profile Send private message
kiksen
Guru
Guru


Joined: 24 Jun 2002
Posts: 401
Location: Denmark

PostPosted: Mon Aug 27, 2007 12:23 pm    Post subject: Reply with quote

read only = yes

HTH

/kiksen
Back to top
View user's profile Send private message
dloenzen
n00b
n00b


Joined: 10 Jul 2007
Posts: 41

PostPosted: Mon Aug 27, 2007 12:25 pm    Post subject: Thanks! Reply with quote

I will give that a try.
Back to top
View user's profile Send private message
dloenzen
n00b
n00b


Joined: 10 Jul 2007
Posts: 41

PostPosted: Mon Aug 27, 2007 1:15 pm    Post subject: Reply with quote

Okay, how can I make the same directory read only for some users and not for others.
Back to top
View user's profile Send private message
elgato319
Guru
Guru


Joined: 15 Sep 2005
Posts: 546

PostPosted: Mon Aug 27, 2007 1:45 pm    Post subject: Reply with quote

Code:

read only = yes
write list = user1 user2
Back to top
View user's profile Send private message
dloenzen
n00b
n00b


Joined: 10 Jul 2007
Posts: 41

PostPosted: Mon Aug 27, 2007 1:55 pm    Post subject: Reply with quote

Cool! Great, thanks.
Back to top
View user's profile Send private message
dloenzen
n00b
n00b


Joined: 10 Jul 2007
Posts: 41

PostPosted: Mon Aug 27, 2007 2:06 pm    Post subject: This is what I have Reply with quote

This is what I have and it does not seem to be working.

[HR]
path = /shares/HR
valid users = asteere, khuber, mfortner, saycue, vweider dlorenzen, ryowell, kcoulter
force user = root
force group = root
read only = Yes
write list = ryowell, kcoulter, dlorenzen

when I log in as dlorenzen, and go to /shares/HR and try to do a mkdir bob, I get a permission denied
Back to top
View user's profile Send private message
dloenzen
n00b
n00b


Joined: 10 Jul 2007
Posts: 41

PostPosted: Mon Aug 27, 2007 5:32 pm    Post subject: Creating samba share provide read only and write permissions Reply with quote

This is what I have and it does not seem to be working.

[HR]
path = /shares/HR
valid users = asteere, khuber, mfortner, saycue, vweider dlorenzen, ryowell, kcoulter
force user = root
force group = root
read only = Yes
write list = ryowell, kcoulter, dlorenzen

when I log in as dlorenzen, and go to /shares/HR and try to do a mkdir bob, I get a permission denied

Can someone help with what I'm doing wrong. I'm trying to create a share that allows some users full control to the directory (create sub-directories and files) and for some only to read those directories and files. Thank you.
Back to top
View user's profile Send private message
schachti
Advocate
Advocate


Joined: 28 Jul 2003
Posts: 3765
Location: Gifhorn, Germany

PostPosted: Mon Aug 27, 2007 7:24 pm    Post subject: Reply with quote

This obviously is a dup of https://forums.gentoo.org/viewtopic-t-578409.html.
_________________
Never argue with an idiot. He brings you down to his level, then beats you with experience.

How-To: Daten verschlüsselt auf DVD speichern.
Back to top
View user's profile Send private message
dloenzen
n00b
n00b


Joined: 10 Jul 2007
Posts: 41

PostPosted: Mon Aug 27, 2007 7:32 pm    Post subject: Yes, you are right Reply with quote

Yes, it is somewhat of a dup. I wasn't getting a reply so I asked a little differently with a little added information. Seemed like a simple enough question from a newbee, but apparently it must not be.

Thanks.
Back to top
View user's profile Send private message
schachti
Advocate
Advocate


Joined: 28 Jul 2003
Posts: 3765
Location: Gifhorn, Germany

PostPosted: Mon Aug 27, 2007 7:37 pm    Post subject: Reply with quote

From man smb.conf:

Quote:

write list (S)
[...]
By design, this parameter will not work with the security = share in Samba 3.0.


Maybe this is the reason?
_________________
Never argue with an idiot. He brings you down to his level, then beats you with experience.

How-To: Daten verschlüsselt auf DVD speichern.
Back to top
View user's profile Send private message
dloenzen
n00b
n00b


Joined: 10 Jul 2007
Posts: 41

PostPosted: Mon Aug 27, 2007 7:43 pm    Post subject: Reply with quote

I found that in the man pages, but my smb.conf doesn't have the line "security = " in it. I have version 3.0.22

Thanks
Back to top
View user's profile Send private message
schachti
Advocate
Advocate


Joined: 28 Jul 2003
Posts: 3765
Location: Gifhorn, Germany

PostPosted: Mon Aug 27, 2007 8:01 pm    Post subject: Reply with quote

You could try to set log level to 2 or 3 and take a look into the samba log file on the server. Maybe you see what's the reason.
_________________
Never argue with an idiot. He brings you down to his level, then beats you with experience.

How-To: Daten verschlüsselt auf DVD speichern.
Back to top
View user's profile Send private message
dloenzen
n00b
n00b


Joined: 10 Jul 2007
Posts: 41

PostPosted: Mon Aug 27, 2007 8:51 pm    Post subject: Reply with quote

It seems that the shares are actually being created, but even when it is set to read only = no, users cannot create files of directories in the share.

Ideas?

Thanks.
Back to top
View user's profile Send private message
HeissFuss
Guru
Guru


Joined: 11 Jan 2005
Posts: 414

PostPosted: Mon Aug 27, 2007 9:29 pm    Post subject: Reply with quote

Set security = user and then make sure those linux users have write permission group write permission to that folder.
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7731
Location: Underworld

PostPosted: Mon Aug 27, 2007 10:19 pm    Post subject: Reply with quote

schachti wrote:
This obviously is a dup of https://forums.gentoo.org/viewtopic-t-578409.html.


Merged. Please don't post duplicate threads.
_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum