LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-21-2010, 06:56 PM   #1
arfon
Member
 
Registered: Apr 2004
Location: Texas
Distribution: Slackware
Posts: 177

Rep: Reputation: Disabled
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
 
Old 08-22-2010, 03:26 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977
Not a networking question. moved to Linux - Server.
 
Old 08-23-2010, 04:20 AM   #3
brak44
Member
 
Registered: Aug 2010
Location: Brisbane Australia
Distribution: Centos, Fedora
Posts: 87

Rep: Reputation: 24
Have tou set each linux directory to 777 i.e chmod 777 dir
 
Old 08-23-2010, 06:11 AM   #4
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 113Reputation: 113
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..
 
1 members found this post helpful.
Old 09-03-2010, 08:20 PM   #5
arfon
Member
 
Registered: Apr 2004
Location: Texas
Distribution: Slackware
Posts: 177

Original Poster
Rep: Reputation: Disabled
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!
 
  


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
Newbie: Samba under Ubuntu - default config locations don't match samba.org mdutch Ubuntu 0 08-28-2009 03:38 PM
Samba "system-config-samba" not displaying users in Gnome GUI - CentOS 5.0 bskrakes Linux - Server 6 03-01-2009 12:59 PM
need help with Samba config please Lorenkia Linux - Newbie 1 04-23-2007 09:37 PM
Webmin cannot handle Samba config files that use the config or include directives allelopath Linux - Networking 3 01-18-2005 10:36 AM
possible samba config problem or network config issue? rruffin Linux - Networking 3 06-03-2003 05:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:29 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