LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-16-2003, 02:53 AM   #1
GetCool
LQ Newbie
 
Registered: Nov 2003
Location: Madison, WI
Distribution: Debian & Slackware
Posts: 11

Rep: Reputation: 0
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.

Last edited by GetCool; 11-16-2003 at 02:56 AM.
 
Old 11-17-2003, 02:40 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Try using security=user and:
Code:
[share]
path = /share/share
browseable = yes
public=yes
write list = colin
Then restart samba.
 
Old 11-17-2003, 06:36 PM   #3
GetCool
LQ Newbie
 
Registered: Nov 2003
Location: Madison, WI
Distribution: Debian & Slackware
Posts: 11

Original Poster
Rep: Reputation: 0
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.
 
  


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
Samba Configuration BlandoCal Linux - Networking 10 10-29-2008 04:31 PM
SAMBA configuration nawin_g Linux - Networking 9 11-08-2005 04:23 PM
Samba Configuration randy1970 Linux - Newbie 5 07-24-2005 10:22 AM
Samba configuration littlegreenman Linux - Networking 14 09-10-2003 12:55 PM
Need your help on SAMBA configuration vwhk Linux - Software 4 01-14-2002 07:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:06 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
Open Source Consulting | Domain Registration