LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 02-02-2004, 10:46 AM   #1
cornellS
LQ Newbie
 
Registered: Jun 2003
Location: Central Pa
Distribution: Mandrake 9
Posts: 11

Rep: Reputation: 0
Samba - Win workstation, Linux Fileserver, password failure


I can't get to my Linux fileserver shares from my Windows boxes.

I've a LAN with Win98 and Win2k workstations and a Mandrake 9.0 fileserver. I've had it up and running. Due to, I think, excessive numbers of power failures, my Linux gets corrupted. My data's on one partition, root on another, so I just reinstall Linux.

Having spent a lot of time trying to get Samba configured correctly, I saved a copy of smb.conf. After I re-installed Linux, I copied the smb.conf and it seems to be working, somewhat. Windows can see the Linux box, but attempts to logon fail.

Same userids and passwords are defined on all machines. I remembered that I had to add the users and passwords to Samba, it doesn't use the Linux users. I tried the encrypt password setting in the smb.conf, it was No, also tried Yes to noavail.

I note no errors in the smb or nmb logs. But I did notice, in the nmb log, that it was the local master browser for Mandrake Group workgroup (whatever the name is, I don't remember, and later and later, further down, it said it was local master for WORKGROUP workgroup. This is not the setting in smb.conf. Could this be part of the problem, nmb is thinking it's in workgroup WORKGROUP, while the win machines are in workgroup abc.com (for example)? If so, how do I change it? Do I want a local master browser (what is it)?

Anyway, any help would be appreciated, thank
 
Old 02-02-2004, 11:37 AM   #2
murray_linux
Member
 
Registered: Nov 2003
Distribution: Slackware Current
Posts: 210

Rep: Reputation: 30
did you run

# smbpasswd -a username

for each user you want to connect to the linux box? i had a password error, and that seemed to resolve it for me.
 
Old 02-02-2004, 11:47 AM   #3
cornellS
LQ Newbie
 
Registered: Jun 2003
Location: Central Pa
Distribution: Mandrake 9
Posts: 11

Original Poster
Rep: Reputation: 0
Yes, I tried that for root and one user. I'd remembered that I'd needed to get smb.conf set up right and run a command, which I eventually recalled was smbpasswd.

I'd also encountered a line on a linux site, I forget the command, but it created a samba user list from the linux users, but you still had to update the users with a password.
 
Old 02-02-2004, 11:54 AM   #4
stitchjones
LQ Newbie
 
Registered: Dec 2003
Location: Saratoga, N.Y.
Distribution: SuSE
Posts: 4

Rep: Reputation: 0
Can you provide a sample of the smb.conf? Please remove any sensitive data, and fill in the blanks with other stuff.
 
Old 02-02-2004, 12:22 PM   #5
murray_linux
Member
 
Registered: Nov 2003
Distribution: Slackware Current
Posts: 210

Rep: Reputation: 30
my samba isn't working fully yet either.. you'd probably want to get one from someone else..

there's the /etc/samba/smb.conf-sample that gets installed, might be worth a look
 
Old 02-02-2004, 06:07 PM   #6
cornellS
LQ Newbie
 
Registered: Jun 2003
Location: Central Pa
Distribution: Mandrake 9
Posts: 11

Original Poster
Rep: Reputation: 0
Ok, you asked for smb.conf....

I've deleted the comments, to save space and changed some names, to protect the confused ;-)

# /etc/smb.conf
[global]
workgroup = ABC.COM
server string = FILESERV Samba Server
printcap name = /etc/printcap
load printers = yes
guest account = pcguest
log file = /var/log/samba/log.%m
max log size = 50
security = user
socket options = TCP_NODELAY
write raw = no
read raw = no
dns proxy = no
unix password sync = no
comment = %h Samba %v
encrypt passwords = no
password level = 0
null passwords = no
os level = 0
preferred master = no
domain master = no
wins support = no
dead time = 0
debug level = 0
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
public = yes
writable = no
printable = yes
[public]
path = /dir1/dir2/public
public = yes
only guest = yes
writable = yes
printable = no
[apps]
comment = Applications
path = /dir1/dir2/app
public = yes
writable = yes
[rcs]
comment = pwrusr's Special
path = /dir1/dir2/rcs
public = no
valid users = pwrusr root
writable = yes
[dat]
comment = pwrusr's Data
path = /dir1/dir2/dat
public = no
valid users = pwrusr root
writable = yes
[home]
comment = pwrusr's Home
path = /dir1/pwrusr
public = no
valid users = pwrusr root
writable = yes
printable = no
 
Old 02-02-2004, 06:10 PM   #7
cornellS
LQ Newbie
 
Registered: Jun 2003
Location: Central Pa
Distribution: Mandrake 9
Posts: 11

Original Poster
Rep: Reputation: 0
But the, checking on the Win98 machine, My Networks lists the fileserver as a member of the correct workgroup.
 
Old 02-02-2004, 06:11 PM   #8
cornellS
LQ Newbie
 
Registered: Jun 2003
Location: Central Pa
Distribution: Mandrake 9
Posts: 11

Original Poster
Rep: Reputation: 0
oops...

By the way, checking on the etc.
 
Old 02-04-2004, 06:38 AM   #9
cornellS
LQ Newbie
 
Registered: Jun 2003
Location: Central Pa
Distribution: Mandrake 9
Posts: 11

Original Poster
Rep: Reputation: 0
Ok... This is one of those... What the hey happened here...

Short version:
I got it working. And it should've worked from the beginning. I did, the second time, what I did the first, mostly ;-)

What I learned:
Install Linux with Samba Server
Change the smb.conf to contain
workgroup = mydomain.com
host allow = n.n.n. (as appropriate)
encrypt password = yes
desired shares
do smbpasswd -a for each userid
restart samba (command samba restart)

It should work ;-)

(note that with older Windows that don't send encrypted passwords, I'm guessing Encrypt Passwords should be No)

Long version:
I was looking about and couldn't find the Samba configuration GUI which I'd used before (and don't particularly like as it's a bit flaky). And when I'd done my Linux install, the attempts to get the updates timed out. So I decided to use the install cd's in "upgrade mode" and keep an eye out for configuration tools. And I found some documentation packages.

I redid the copy linux users to samba users and added the passwords. I also decided that I don't need ALL the linux users, as only two of them are humans who logon, I deleted all the "system" userids from smbpasswd, leaving only the two human userids (didn't do that the first time).

I read the howto on Samba, it begins with an empty smb.conf and adds stuff to, unlike my smb.conf that was the big sample one that comes with and was tweaked as needed. I figured, what the heck, mine wasn't working anyway.

I renamed smb.conf and created a new one. The first step in the howto contained only a homes share. Didn't work, I added a workgroup = mydomain.com, which testparm showed as workgroup = WORKGROUP. Assuming some typo or syntax, I revisited that line, without changing it as it seemed correct, and after about the 5th run of testparm, it showed it as mydomain.com.

Still didn't work, but the Win98 machine was complaining about passwords and the Win2k was complaining about not being authorized to login from this location. So I'm thinking Host Allow. I added it, didn't work.

So I added Encrypt Password = yes, without much hope as I'd already tried both yes and no, along with Host Allow. It works. I can't find the difference between the old smb.conf and the new one, why one doesn't work and the other does.

This stuff drives me nuts! Ok, it's a putt, not a drive ;-)
 
Old 02-04-2004, 06:41 AM   #10
cornellS
LQ Newbie
 
Registered: Jun 2003
Location: Central Pa
Distribution: Mandrake 9
Posts: 11

Original Poster
Rep: Reputation: 0
Oops again

What to put in the smb.conf was formatted to indicate what was related, and separate it from the rest, but the formatting is lost on posting. The last two, "do smbpasswd..." and "restart Samba" are not a part of "Change the smb.conf to contain"
 
Old 02-04-2004, 06:42 AM   #11
cornellS
LQ Newbie
 
Registered: Jun 2003
Location: Central Pa
Distribution: Mandrake 9
Posts: 11

Original Poster
Rep: Reputation: 0
Thank you murray_linux and stitchjones for your replies
 
Old 02-05-2004, 01:46 PM   #12
murray_linux
Member
 
Registered: Nov 2003
Distribution: Slackware Current
Posts: 210

Rep: Reputation: 30
anytime (unless i don't have a response :S)
 
Old 02-05-2004, 07:20 PM   #13
Onemessedupjedi
Member
 
Registered: Sep 2003
Location: Oregon
Distribution: Slackware 9.1
Posts: 194

Rep: Reputation: 30
deleting all the other users from your machine may not be the best idea because I think I have read of things that log in as "nobody" or one of the other user names that they set up as default.
 
  


Reply



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 Fileserver, XP Pro Client, "Cannot Login From This Workstation"? rsmith Linux - Networking 1 09-16-2005 02:59 AM
Samba - one windows box cant see my Linux fileserver crm Linux - Networking 2 11-08-2004 02:37 PM
password sync. - linux server <-> linux workstation KRunch Linux - Networking 0 03-31-2004 01:37 AM
MS Password Internet Proxy + Linux workstation zakl Linux - Networking 4 10-05-2003 11:48 PM
Implementing a HA Samba fileserver on Linux with SSI mlenehan Linux - Software 2 09-03-2003 04:13 AM

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

All times are GMT -5. The time now is 05:56 PM.

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