LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   I need some Samba configuration help... (https://www.linuxquestions.org/questions/linux-networking-3/i-need-some-samba-configuration-help-116575/)

GetCool 11-16-2003 01:53 AM

I need some Samba configuration help...
 
First of all, this is my first post here and I just want to say that I've been browsing these forums for quite some time and found plenty of useful information on installing/configuring linux. Thank you all for your contributions.

With that said, I am in the process of setting up Samba and I'm having a little trouble. Here's my situation: I have a linux file server (running Debian and samba 3.0.0-2) that I want to share with several computers on a home network. What I want is for all users on my network to be able to connect to the samba server without having to enter a username/password and having read-only access, except for myself. I will be connecting to it from another machine running WinXP, and when I connect I want myself to have full access to the shares. I did this successfully on a former RedHat 9 install, but since I switched to Debian I can't seem to duplicate this success.

Here is my smb.conf file:

Quote:

[global]
workgroup = home
server string = samba server
netbios name = samba server
security = share
encrypt passwords = true
hosts allow = 192.168.1.
guest account = nobody
log file = /etc/samba/log/log.%m
invalid users = root
socket options = TCP_NODELAY

[share]
path = /share/share
browseable = yes
guest ok = yes
writeable = yes
admin users = colin

[priv]
path = /share/priv
browseable = yes
guest ok = no
writeable = yes
valid users = colin
admin users = colin
invalid users = nobody
I have a user on the fileserver called colin (me) that I use to log into that machine regularly. I also have an account on my WinXP machine with the same name and password as the account on the fileserver. I ran a smbpasswd -a colin and gave it the same password as the unix user and WinXP user, so all passwords should be synchronized.

What happens is when I try to connect from my WinXP machine, I connect as user nobody (guest) and don't have full privelages. I checked the log to confirm this. I have restarted both the samba service and the WinXP machine and it just won't let me connect as the right user.

Is there something I'm missing here? I'm wondering about the security = share parameter. Do I need to change it to security = user and add a nobody user to the smbpasswd file? I tried changing it to user already but then no one could connect, so I immediately changed it back. Maybe I didn't configure it right, though?

Thanks.

david_ross 11-17-2003 01:40 PM

Try using security=user and:
Code:

[share]
path = /share/share
browseable = yes
public=yes
write list = colin

Then restart samba.

GetCool 11-17-2003 05:36 PM

Quote:

Originally posted by david_ross
Try using security=user and:
Code:

[share]
path = /share/share
browseable = yes
public=yes
write list = colin

Then restart samba.

I tried that, but it dodn't entirely work (I could connect and have write access but no one else could connect).

What I ended up doing was set security = user and just created a new account called samba for the other users on my network. They use that to connect, and things are working now the way I want them to (almost).

Thanks for your help, though. I didn't know that "write list" parameter existed, and I'm using that now.


All times are GMT -5. The time now is 01:48 AM.