Well you are almost there.

Your Samba box is up and running but your Windows machines cannot log in.

The password prompt is correct... you are not logging in!

What happens is that normally windows passes to Samba the same
username/password pairs you used when you first logged into Windows. Samba
doesn't know a thing about these "users" though... read on...

There are two areas of problems that everyone seems to miss.

1) Password Encryption. Windows by default uses encryption on the passwords.
Samba must be set to understand the encryption using the /etc/smb.conf
configuration options.

Enable encrypted passwords as per the examples. Also make sure that Samba is
aware of the SMBPASSWD file

I.E.


# Password Level allows matching of _n_ characters of the password for
# all combinations of upper and lower case.

   password level = 8
   username level = 8

# You may wish to use password encryption. Please read
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
# Do not enable this option unless you have read those documents

   encrypt passwords = yes
   smb passwd file = /etc/smbpasswd

These lines are rather important.

The first two permit Samba to "hash" out the username and passwords windows
passes to it. Samba tries various combinations of UP TO 8 lowercase &
uppercase characters until it gets a "hit". Without the first lines you'll
run into trouble..

The next two lines tell samba that it IS to deal with encyrpted passwords
and the passwords are to be kept in the /etc/smbpasswd file after they are
created.

I've seen way too many people enable encrypted passwords, but fail to tell
Samba where the passwords are to be kept. Well it will not work without
this...

2) The next big problem which people seem to have, is that they fail to
understand that Samba treats passwords SEPERATELY from Linux's
username/password pairs... that is, like regular Linux logins you -MUST-
create an equivalent SAMBA login...

The normal way to do this is by using "smbadduser" to populate the Samba
username/password database.

Normally the reason you get a Password: prompt is because this database is
empty or non-existant.

Set up the encrypted passwords in Samba, restart Samba "/etc/rc.d/init.d/smb
restart" and then add your Samba users... setting their passwords identical
to what you use in Winblows...

Obviously other things are already correctly set up or you would not be
seeing the server...

But take a GOOD look at the "interfaces = ", "remote browse sync = " &
"hosts allow = " lines too. Often these are overlooked.

Enjoy!

-JMS

|-----Original Message-----
|From: J D [mailto:[EMAIL PROTECTED]]
|Sent: Wednesday, June 21, 2000 9:17 PM
|To: [EMAIL PROTECTED]
|Subject: [newbie] samba question
|
|
|okay, i got samba all set up and running.  i can see my linux box from
|windows.  when i try to connect to it, it prompts for a password.
|however,
|i have not set a password for it.  i've tried every password for
|my system,
|and even tried nothing.  but it always tells me that it's an invalid
|password.  can anybody help me out?  thanks.
|later
|jd
|________________________________________________________________________
|Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
|

Reply via email to