LinuxQuestions.org
Visit Jeremy's Blog.
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 05-11-2003, 07:24 PM   #1
WorldBuilder
Member
 
Registered: Mar 2003
Location: Massachusetts, USA
Distribution: RH 8, Solaris, Windoze eXPunged
Posts: 520

Rep: Reputation: 30
Samba problems


Hi all,

I wiped and reinstalled RH 8 on my server a few days ago, and before I wiped it, I copied all the contents of the /etc/samba directory to floppy. After I had the system back up, I copied the files from the floppy back to the new /etc/samba directory. I recreated all my regular system users and rebuilt the smbpasswd file. Now, when I try to map a drive from one of my Windows machines to a home directory of the user on the RH box, it asks me for a username and password, which it does not accept! This used to work fine, and I can't for the life of me figure out what's different now. All of the Windows machines are ALL automatically logged in at boot with the same username and password that I have in Samba. For example:

Windows machine: Gemini
Logged in user: chris
Logged in user password: xxxxx

Samba password for chris: xxxxx

Yet, when I try to map a drive to \\goliath\chris, it asks me for a username and password, which it doesn't accept anyway! Goliath is the hostname of the RH box running samba, BTW. Any thoughts about what could be wrong? I can see goliath in Network Neighborhood, but cannot browse it, either. I know my smb.conf file is good since it is the same file I had before I took the machine offline. Any thoughts?

Chris
 
Old 05-11-2003, 08:05 PM   #2
angelrod
Member
 
Registered: Oct 2002
Location: Mexico
Distribution: RedHat 9.0 and SuSE 8.1
Posts: 229

Rep: Reputation: 30
Check:

-If the share "chris" is declared in your smb.conf
-Have you added the username at smbpasswd with smbpasswd -a username?
 
Old 05-11-2003, 08:11 PM   #3
WorldBuilder
Member
 
Registered: Mar 2003
Location: Massachusetts, USA
Distribution: RH 8, Solaris, Windoze eXPunged
Posts: 520

Original Poster
Rep: Reputation: 30
Yes to both. This is bothering me because everything is right as best as I can figure. I'm pretty good with Samba at this point, and I can't figure out what's wrong.

Chris
 
Old 05-11-2003, 08:15 PM   #4
angelrod
Member
 
Registered: Oct 2002
Location: Mexico
Distribution: RedHat 9.0 and SuSE 8.1
Posts: 229

Rep: Reputation: 30
If your network is safe, you can change the security level to share instead of user to see if the problem is in smb.conf or in smbpasswd.
 
Old 05-11-2003, 08:26 PM   #5
WorldBuilder
Member
 
Registered: Mar 2003
Location: Massachusetts, USA
Distribution: RH 8, Solaris, Windoze eXPunged
Posts: 520

Original Poster
Rep: Reputation: 30
I don't even have a security level setting in smb.conf, so I don't think that's the problem. I have no idea what samba defaults to if it is not specified. My smb.conf is about as simple as it gets.

Chris
 
Old 05-11-2003, 08:32 PM   #6
angelrod
Member
 
Registered: Oct 2002
Location: Mexico
Distribution: RedHat 9.0 and SuSE 8.1
Posts: 229

Rep: Reputation: 30
Iīm not at my computer right now so I canīt post a copy of my smb.conf so you can try it just changing parameters to yours, but you can try a search and youīll find tons of posted smb.conf files, maybe you can try one.

P.D. I also donīt know whatīs the default security level if not specified.
 
Old 05-11-2003, 08:40 PM   #7
WorldBuilder
Member
 
Registered: Mar 2003
Location: Massachusetts, USA
Distribution: RH 8, Solaris, Windoze eXPunged
Posts: 520

Original Poster
Rep: Reputation: 30
Well, here's my smb.conf. Let me know if you see any problems, but I'm quite positive that it's ok.

# Samba config file created using SWAT
# from 192.168.5.16 (192.168.5.16)
# Date: 2003/03/31 14:40:35

# Global parameters
[global]
workgroup = BARTLETT
server string = File Server
encrypt passwords = Yes
min passwd length = 3
log file = /var/log/samba/log.%m
name resolve order = wins lmhosts bcast
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
os level = 65
local master = Yes
dns proxy = No
wins support = Yes

[sokhan]
valid users = sokhan
comment = My Stuff
path = /home/sokhan
writable = yes
browseable = No

[john]
valid users = john
comment = My Stuff
path = /home/john
writable = yes
browseable = No

[nancy]
valid users = nancy
comment = My Stuff
path = /home/nancy
writable = yes
browseable = No

[chris]
valid users = chris
comment = My Stuff
path = /home/chris
writable = yes
browseable = No

[public]
comment = Save important files here
path = /home/public
public = yes
writable = yes
guest ok = yes
read only = no
create mode = 777
directory mode = 777
 
Old 05-12-2003, 09:39 AM   #8
angelrod
Member
 
Registered: Oct 2002
Location: Mexico
Distribution: RedHat 9.0 and SuSE 8.1
Posts: 229

Rep: Reputation: 30
why donīt you try adding a line just before the shares in the globalīs:

security = share
 
Old 05-12-2003, 12:51 PM   #9
WorldBuilder
Member
 
Registered: Mar 2003
Location: Massachusetts, USA
Distribution: RH 8, Solaris, Windoze eXPunged
Posts: 520

Original Poster
Rep: Reputation: 30
I will try that shortly, but like I said, I don't think that can't be the problem because this is the sambe smb.conf file I have always used, and it used to work fine. We'll see, though!

Chris
 
Old 05-12-2003, 01:08 PM   #10
jamrock
Member
 
Registered: Jan 2003
Location: Kingston, Jamaica
Posts: 444

Rep: Reputation: 41
Yo cjwsb,

I guess even experienced Linux users can have difficulties

Here are a few questions...

Which files did you backup and restore? Give me the names.

Are you using the same version of Samba that you had used before?

Have you disabled the Linux firewall?


Try running testparm on your smb.conf file. Make sure all of the directories referenced by the smb.conf file have been recreated.
 
Old 05-12-2003, 01:53 PM   #11
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
try adding the user again by smbadduser
also the user in smbadduser should be a valid user first of all in the linuxoperating system
 
Old 05-12-2003, 02:03 PM   #12
WorldBuilder
Member
 
Registered: Mar 2003
Location: Massachusetts, USA
Distribution: RH 8, Solaris, Windoze eXPunged
Posts: 520

Original Poster
Rep: Reputation: 30
Jamrock,

The files I backed up and restored were the entire contants of the /etc/samba directory, such as smb.conf, smbpasswd, lmhosts, smbusers, etc.

Come to think of it, I can't recall what version of samba I was running before, but right now I am running version2.2.5-10. Perhaps I was running a different version before?!

I don't have a firewall running. Just using NAT and IP-masquerading through iptables.

Does that help?

Also, I know the users are all good for Linux and samba. I generated the smbpasswd file using this command:

# cat /etc/passwd | mksmbpasswd.sh > /etc/samba/smbpasswd

That creates an smbpasswd file based on the contents of your regular passwd file, which all the regular users were already in (ie, users chris, john, nancy, sokhan, etc). Got that right out of a samba book.
 
Old 05-13-2003, 02:46 AM   #13
jamrock
Member
 
Registered: Jan 2003
Location: Kingston, Jamaica
Posts: 444

Rep: Reputation: 41
What is the exact error message that you are getting?
 
Old 05-13-2003, 07:26 AM   #14
WorldBuilder
Member
 
Registered: Mar 2003
Location: Massachusetts, USA
Distribution: RH 8, Solaris, Windoze eXPunged
Posts: 520

Original Poster
Rep: Reputation: 30
Hi jamrock. Not really getting an error message. This is what's happening:

From a Windows machine named Gemini, user chris logged in, password xxxxx. I attempt to map a drive to the home directory of chris on the Linux machine running samba (Goliath). Map network drive to \\goliath\chris. I enter username chris and password xxxxx, and it simply asks me for the information over and over again. Does this on all my other machines, too. I can't actually connect to Goliath. Any thoughts? I don't think it's a permissions or ownership problem, but I suppose it could be. Lemme know what you think, man!

Chris
 
Old 05-13-2003, 12:23 PM   #15
jamrock
Member
 
Registered: Jan 2003
Location: Kingston, Jamaica
Posts: 444

Rep: Reputation: 41
To be honest, I am not sure what is happening. I have never re-created a smbpasswd file using this method so I don't know if that is an issue.

Normally, after a re-install I would just add the users manually and copy the smb.conf back over. I would have manually recreated everything except the smb.conf file. I am not saying that your way doesn't work, I just haven't used it before.

Are you using Windows 95/98 or Windows 2000 clients?

I know that Windows NT/2000/XP clients have a unique I.D. which is added to the server when they join the domain. If I had to re-install a Windows 2000/NT server or client I would have to delete the original account on the server and let the client rejoin the domain. Not too sure what Samba requires.

Does the login window say something about IPC or something like that? I think that happens when the user does not exist in the smbpasswd file.

If all else fails, you can try renaming the smbpasswd file and re-creating it manually.

Sorry I can't give you more help than this.
 
  


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/Cups print sharing problems (/var/spool/samba files) Gates1026 Linux - General 9 06-23-2013 01:33 AM
Samba Problems again :) Iztari Linux - Networking 18 06-24-2004 11:00 AM
samba problems... Digital_Err0r Linux - Networking 1 03-20-2004 04:46 PM
Samba problems. Zombie13 Mandriva 4 03-11-2004 02:34 AM
[Samba] Problems since update to samba 3 ffred Linux - Networking 6 01-02-2004 06:19 PM

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

All times are GMT -5. The time now is 12:38 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