Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Samba on RH 6.2

Status
Not open for further replies.

LearningFox

Programmer
Nov 25, 2001
43
US
I am trying to learn Linux. I have just set up an old P133 as a Linux command-line-only server. I just got Samba working but cannot access Swat via the LAN and I do not have Xwindows (right term? I mean no GUI) on the server. I have been messing arounf in smb.conf and can now browse a couple folders (oops! directories) but though I can see my home directory, I cannot access it. I get a password prompt and it will not accept my Linux password. I tried smbpasswd but I get this message:

getsmbfilepwent: malformed password entry (uid not number)
Failed to find entry for user kcollie.
Failed to change password entry for kcollie

I thought I had share level security configured but I cannot get past this password.

Also, I cannot see one directory that I thought I had set up in smb.conf.

I know I am rambling; can anyone point me to a good referrence. I looked at the man pages but found nothing to help. I have RH Linux Bible but it is a later release (7.1) and the directory locations seem a little different than 6.2.

Thanks for any response.
 
I don't use Swat, but I believe that it's run through inetd. Look for a swat line in the /etc/services file and make sure its not commented out (#). Make sure to restart inetd after any changes --> service inetd restart.

Did you restart the Samba service after each change to smb.conf?

service smb restart


ChrisP
 
I'm not a Samba expert, try this first:

In smb.conf, put the following line in the GLOBAL section:

encrypt passwords = yes

Win98/NT use ecryption by default, Samba doesn't.

Make sure you've created a Samba user, and a Linux user.
Create the Linux user with the adduser command, then create a Samba user with the smbpasswd -a command. Make sure all passwords match. Then give it a try, of course after restarting inetd. One more thing, use the latest version of Samba if you're connecting with a Win XP client, I had problems where I couldn't even connect with XP until I upgraded to 2.2.7.
 
Thanks for the help. I am not 100% sure what I did but I got it working.

One thing I had to do was get the permissions right on the directories. I had not done this on the linux box prior to working with samba.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top