View Single Post

  #3 (permalink)  
Old 04-05-2006, 11:28 PM
nixcraft's Avatar
nixcraft nixcraft is offline
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Ubuntu
Posts: 1,101
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

This is classic problem. This problem not only occurs with Linux/UNIX Samba (SMB client) but also with Microsoft Windows server 2000/2003 and XP client.

In order to solve this problem
a) You need to enable encrypted password support the Samba
OR
b) Force Windows XP to use unencrypted (clear text) password

I don’t recommend second option (as it needs registry hack on Windows XP as well as it is insecure)

To solve your problem log in to Linux Samba server:

Open smb.conf file:
Code:
# vi /etc/samba/smb.conf
Make sure following two entries are as follows:
Code:
encrypt passwords = yes
passdb backend = tdbsam
Save file and restart samba server
Code:
# /etc/init.d/samba restart
Now add new UNIX user:
Code:
# adduser demouser
Add demouser user with password to samba (so that you can access it from windows xp)
Code:
# smbpasswd –a demouser
And you are done. Login to windows XP > Click on Start > Run > type IP address of samba server (for example 192.168.1.5)
\\192.168.1.5
OR netbios name (for example Debiansamba):
\\debiansamba

When prompted for username/password type
USERNAME: demouser
PASSWORD: Your password (the one you set with smbpasswd command)
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote