[Samba] Samba encrypt passwd

chimin yen ychimin2000 at yahoo.com
Mon May 20 21:26:02 GMT 2002


Hi,

    I have samba installed on my Linux system (Red Hat
7.2), and 
Windows 98 on another PC as a Samba client. Samba
works great 
if PlainTextPassword is enabled. However, if
PlainTextPassword is
disabled on Windows client, connection to the Samba
shares no 
longer accepted.

    I believe I've done everything in order to make
encrypt passwd working:

    * I converted /etc/passwd to /etc/samba/smbpasswd
using mksmbpasswd.sh
      script. 

               cat /etc/passwd | mksmbpasswd.sh >
smbpasswd

       This resulted in a new smbpasswd file:

               -rw-------    1 root     root        
4202 May 21 12:06 smbpasswd

        I feel a little uncomfortable about the file
permission, there I change the
        mode to 0644 (-rw-r--r--).


    * Here is my /etc/samba/smb.conf file

       [global]
             workgroup = MYGROUP
             security = USER
             log file = /var/log/samba-log.%m
             lock dir = /var/lock/samba
             encrypt passwords = Yes
             smb passwd file = /etc/samba/smbpasswd
 
        [homes]
              comment = Home Directory
              read only = No
              create mask = 0750
              browseable = No
  
         [tmp]
              comment = Temporary file space
              path = /tmp
              read only = No
Note that the smb.conf file works in the
PlainTextPasswd mode before 
the two parameters was added:

             encrypt passwords = Yes
             smb passwd file = /etc/samba/smbpasswd

       * I restarted Samba daemon

             /etc/init.d/smb restart

       * I followed the test steps as outlined in
diagnosis.txt by  Andrew Tridgell

But every attempt to connect to the smb server got
denyed:

[root at star samba]# smbclient -L star
added interface ip=192.168.1.1 bcast=192.168.1.255
nmask=255.255.255.0
Password:
session setup failed: ERRSRV - ERRbadpw (Bad password
- name/password pair in a
Tree Connect or Session Setup are invalid.)
[root at star samba]#


I suspect my Samba binary doesn't acctually support
encrypt passwd, but how can I
tell if it is or not?

Thanks in advance.

Chimin Yen









__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com




More information about the samba mailing list