View previous topic :: View next topic |
Author |
Message |
dloenzen n00b
Joined: 10 Jul 2007 Posts: 41
|
Posted: Mon Aug 27, 2007 12:12 pm Post subject: Samba Read Only Share |
|
|
What do I need to put into the smb.conf file for a read-only share. |
|
Back to top |
|
|
kiksen Guru
Joined: 24 Jun 2002 Posts: 401 Location: Denmark
|
Posted: Mon Aug 27, 2007 12:23 pm Post subject: |
|
|
read only = yes
HTH
/kiksen |
|
Back to top |
|
|
dloenzen n00b
Joined: 10 Jul 2007 Posts: 41
|
Posted: Mon Aug 27, 2007 12:25 pm Post subject: Thanks! |
|
|
I will give that a try. |
|
Back to top |
|
|
dloenzen n00b
Joined: 10 Jul 2007 Posts: 41
|
Posted: Mon Aug 27, 2007 1:15 pm Post subject: |
|
|
Okay, how can I make the same directory read only for some users and not for others. |
|
Back to top |
|
|
elgato319 Guru
Joined: 15 Sep 2005 Posts: 546
|
Posted: Mon Aug 27, 2007 1:45 pm Post subject: |
|
|
Code: |
read only = yes
write list = user1 user2
|
|
|
Back to top |
|
|
dloenzen n00b
Joined: 10 Jul 2007 Posts: 41
|
Posted: Mon Aug 27, 2007 1:55 pm Post subject: |
|
|
Cool! Great, thanks. |
|
Back to top |
|
|
dloenzen n00b
Joined: 10 Jul 2007 Posts: 41
|
Posted: Mon Aug 27, 2007 2:06 pm Post subject: This is what I have |
|
|
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 |
|
|
dloenzen n00b
Joined: 10 Jul 2007 Posts: 41
|
Posted: Mon Aug 27, 2007 5:32 pm Post subject: Creating samba share provide read only and write permissions |
|
|
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 |
|
|
schachti Advocate
Joined: 28 Jul 2003 Posts: 3765 Location: Gifhorn, Germany
|
|
Back to top |
|
|
dloenzen n00b
Joined: 10 Jul 2007 Posts: 41
|
Posted: Mon Aug 27, 2007 7:32 pm Post subject: Yes, you are right |
|
|
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 |
|
|
schachti Advocate
Joined: 28 Jul 2003 Posts: 3765 Location: Gifhorn, Germany
|
Posted: Mon Aug 27, 2007 7:37 pm Post subject: |
|
|
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 |
|
|
dloenzen n00b
Joined: 10 Jul 2007 Posts: 41
|
Posted: Mon Aug 27, 2007 7:43 pm Post subject: |
|
|
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 |
|
|
schachti Advocate
Joined: 28 Jul 2003 Posts: 3765 Location: Gifhorn, Germany
|
Posted: Mon Aug 27, 2007 8:01 pm Post subject: |
|
|
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 |
|
|
dloenzen n00b
Joined: 10 Jul 2007 Posts: 41
|
Posted: Mon Aug 27, 2007 8:51 pm Post subject: |
|
|
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 |
|
|
HeissFuss Guru
Joined: 11 Jan 2005 Posts: 414
|
Posted: Mon Aug 27, 2007 9:29 pm Post subject: |
|
|
Set security = user and then make sure those linux users have write permission group write permission to that folder. |
|
Back to top |
|
|
pilla Bodhisattva
Joined: 07 Aug 2002 Posts: 7731 Location: Underworld
|
Posted: Mon Aug 27, 2007 10:19 pm Post subject: |
|
|
Merged. Please don't post duplicate threads. _________________ "I'm just very selective about the reality I choose to accept." -- Calvin |
|
Back to top |
|
|
|