At 06:57 PM 6/22/2000 +0200, José Luis Tinoco wrote:
KThorpe wrote:

> I've just installed a copy of Windows NotTested 4.0. For some reason
> it can't see my samba box unlike all my Win95 systems. I'm suspecting
> the Samba end as I see the following messages in /var/log/samba/log.smb
> when I try to browse.

Hi Kevin!

In the docs to samba (on my box in /usr/doc/packages/samba) you can find
useful infos which could help you fixing your problem. Probably it´s about
the password encryption. You should apply the registry patch you find there
to your NotTested box, that solved my problems.

That registry patch enables use of plain-text passwords over your local net (which NT won't do by default).  This is a little scary if your local net is directly connected to the Internet (e.g., via a cable modem with no firewall).  It *should* be easy also to convert Samba to using encrypted passwords:

FIRST MAKE A COPY OF /etc/smb.conf IN CASE YOU NEED TO BACK OUT.

In /etc/smb.conf, you first have, in your [global] section,
smb passwd file = /etc/smbpasswd
null passwords = yes
update encrypted = yes
encrypt passwords = no

where /etc/smbpasswd is set up by saying

   cat /etc/passwd | mksmbpasswd.sh > /etc/smbpasswd
   /usr/local/samba/bin/smbpasswd -n username

mksmbpasswd.sh is in the Samba distribution (you can use locate to find it).
The -n removes the password for username in /etc/smbpasswd.
username is of course the user Windows NT claims to be when accessing shares.
(You must be using "security=user", of course, but you are probably doing that already.)

After you have accessed a Samba share from NT (which causes your NT-encrypted password to be stored by Samba in /etc/smbpasswd), change the above to
smb passwd file = /etc/smbpasswd
encrypt passwords = yes

It should now be working.  Any reasonable Samba book will take you through these steps in more detail.

I'm no expert on Samba, and there might be an unnecessary step or two above, but the above procedure worked for me.

jos

Reply via email to