LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Samba Config? (https://www.linuxquestions.org/questions/linux-server-73/samba-config-827709/)

arfon 08-21-2010 05:56 PM

Samba Config?
 
I would like to set up three directories-

1) RW public directory
2) R-public, RW-me
3) Private dir (my /home/me)

BTW, I set all file permissions (recursively) to 777 until I can get this to work...

1) So far I have got 1 samba share working Read only with the following:
[Music]
comment = Music Library
path = /mnt/RAID/Music
admin users = JoeBleaux
write list = JoeBleaux
read only = No
guest ok = Yes


Guests can read it okay but user 'JoeBleaux' can't write to it...

2) I can't get the public read-write dir to work, again, it can be read by everyone but no one can write to it. Here's my broken config for this share:
[Uploads]
comment = Upload Area
path = /mnt/RAID/uploads
read only = No
guest ok = Yes



3) I can't get the private dir to work. Here's my broken config for this share:
[HomeDir]
comment = Private
path = /home/JoeBleaux
valid users = JoeBleaux
admin users = JoeBleaux
read list = JoeBleaux
write list = JoeBleaux
read only = No

acid_kewpie 08-22-2010 02:26 PM

Not a networking question. moved to Linux - Server.

brak44 08-23-2010 03:20 AM

Have tou set each linux directory to 777 i.e chmod 777 dir

sem007 08-23-2010 05:11 AM

hi arfon,

as your requirement configure smb.conf as below

For first requirement

Code:

[Music]
comment = Music Library
path = /mnt/RAID/Music
public = yes
writable = no
browsable = yes
write list = JoeBleaux
guest ok = Yes

for second requiremnet
Code:

[Uploads]
comment = Upload Area
path = /mnt/RAID/uploads
public = yes
writable = yes
guest ok = Yes

for third requirement
home dir by default shared and access by only owner


and also create and configure guest account.
Code:

# vi /etc/samba/smb.conf
[global]
.....
guest account = guest

create samba password for user guest
Code:

# smbpasswd -a guest (if you want no password for guest use -n)
hope this help..

arfon 09-03-2010 07:20 PM

sem007
I haven't tried all of the settings yet (I got distracted with e-mail problems) but your entry for UPLOADS worked like a charm! TY TY TY!


All times are GMT -5. The time now is 05:09 PM.