Samba Setup

Installing, Configuring, Troubleshooting server daemons such as Web and Mail
Post Reply
phpsmitty
Posts: 8
Joined: 2008/02/13 16:18:21

Samba Setup

Post by phpsmitty » 2008/02/13 17:49:48

I am a new convert to CentOS. I'm currently trying to setup Samba to share a folder to Windows machines. I added my samba user but after I added it, it doesn't show up in the list of Samaba users. I checked the config file and they are they. Anyone have any insight on why the problem might be?

Thanks,

Smitty

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: Samba Setup

Post by gerald_clark » 2008/02/13 18:09:53

You added the Samba user where?
What list of Samba users?
What config file did you check?

Use useradd to add your user to CentOS.
use smbpasswd to set the password.

EX:
useradd myuser
smbpasswd -a myuser

phpsmitty
Posts: 8
Joined: 2008/02/13 16:18:21

Re: Samba Setup

Post by phpsmitty » 2008/02/13 18:50:09

I was trying to add the user and add sharesusing the Gui tool. System->Administrator->Server Settings->Samba. Then added Samba users by going to Preferences->Samba Users.

Then checked the config /etc/samba/smbusers to see if my admin user is in there and it is.

How do I add a share from the command line that is restricted then to the admin users?

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: Samba Setup

Post by gerald_clark » 2008/02/13 19:55:32

You edit /etc/samba/smb.conf and restart the service.

phpsmitty
Posts: 8
Joined: 2008/02/13 16:18:21

Re: Samba Setup

Post by phpsmitty » 2008/02/20 15:35:25

i have the following in my smb.conf file

[www]
path = /var/www
writeable = Yes
write list = bsmith
browseable = Yes



when i run a testparm i get
[www]
path = /var/www
write list = bsmith
read only = No


when i browse to the ip on windows i get an access denied when i click on the www folder

thoughts???

arrfab
Site Admin
Posts: 878
Joined: 2005/01/03 21:30:54
Location: /country/belgium
Contact:

Re: Samba Setup

Post by arrfab » 2008/02/21 21:19:34

First point : sharing the /var/www/ folder through samba is probably *not* the thing to do ...
Second point : don't forget that if you share a folder owned by userA (root in the previous example) and that you try to connect as userB, it will fail ....

Post Reply