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
Samba Setup
-
- Posts: 10642
- Joined: 2005/08/05 15:19:54
- Location: Northern Illinois, USA
Re: Samba Setup
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
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
Re: Samba Setup
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?
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?
-
- Posts: 10642
- Joined: 2005/08/05 15:19:54
- Location: Northern Illinois, USA
Re: Samba Setup
You edit /etc/samba/smb.conf and restart the service.
Re: Samba Setup
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???
[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???
Re: Samba Setup
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 ....
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 ....