Jump to content

Samba/webmin/Lan Last Resort.


mikejr
 Share

Recommended Posts

Ok guys, here is the lay of the land:

 

Linux box (server) running Mandrake 10 samba/webmin

 

Various local PC's running Win98, Win2k and Winxp.

 

One the Win2k boxes, browsing the "network neighborhood shows the server, upon opening it prompts for a username and password. Both win2k boxes can connect fine.

 

On the win98 boxes, clicking on the server in network neighborhood brings up just a password prompt, no username. I was able to get one win98 box up by typing in her password, I guess it decides who the user is according to the password? The other win98 box was not so lucky, it just keeps prompting for password. The only difference between the two is that the 1st(working) boxes user was already there. I created the other and made sure passwords matched ect...

 

WinXP. None working. Prompts for a username and password, none of which seem to work.

 

Any ideas or suggestions? I've been dicking with this for two days after removing WIn95 from the original server :juggle:

Link to comment
Share on other sites

The best way to ensure that any computer can access your samba network is to ensure that the usernames/passwords that people use to log into the windows computers are the same as the usernames/passwords they are going to use to log into samba. There needs to be a direct one-to-one correlation in terms of username/password.

 

In addition, each person who is going to log into samba needs to be set up as a user on your linux machine. Once samba authenticates the user based on its password file, it hands the user over to linux which uses its own security model to handle the user from that point on. As a result, this means that each user must be entered into both Samba and Linux as users.

 

Third, the way that win98, win2k and winXPHome handle things like logging onto a samba share are completely different. This accounts for the differences you are experiencing between the different OS's. The easiest way around this is to ensure that the username/password that the user uses to log onto the windows computer is the same that they use to log onto the samba share.

 

Whenever you try to access a smb share (samba or windows) the username/password that the user logged with is first sent to try and authenticate that user, only when this fails, does the samba server than try another method of authentication. However, the way that this second method is handled is very different between 98, 2000, and XP Home. (XP pro is the same as 2000).

Link to comment
Share on other sites

So if I set the samba usernames and passwords(in webmin or linux) to the Windows values it should work? That makes sense, except for the fact that the first win98 machine did not need this...

 

Edit: tried syncing the usernames/password w/ the windows box, didn't work.

Edited by mikejr
Link to comment
Share on other sites

There are three places that you need to enter username/password, and they all need to match.

 

1. Each user needs to be entered as a user in Linux

2. Each user needs to be manually entered as a user in Samba

3. Each user needs to use the same username/password to log into windows

 

 

A few things first:

1. How is your samba network setup? Is is a workgroup or a windows domain network?

2. If the network is setup to work with workgroups, are all the computers on the same workgroup?

3. Have you entered each user manually into Samba? Each user needs to appear in the smbpasswd file.

4. what kind of authentication are you using for samba?

5. what does you smb.conf file look like?

 

 

Here is the biggest thing: Do you have encrypted password set to yes in Samaba? (The fact that you have the win2k boxes logging on indicates that this is yes.)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...