> -----Original Message-----
> From: Rustam Harahap [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 27, 2000 6:36 PM
> To: [EMAIL PROTECTED]
> Subject: Hellp ...my Samba Encryption doesn't work...
>
>
>
>    Hi
>   I have trouble with my samba encryption.
>   I followed the manual with command
>   cat /etc/passwd |mksmbpasswd.sh > /etc/smbpasswd
>   i do even change smbpasswd permission to 0500 and
>   back
>   again to 0644
>   But my pc still can't browse my samba server!
>   (it keeps asking for IPC$ user password..)
>   I'm using samba-2.0.5a , RedHat 6.2
>   Here's my smb.conf;
>
(snip)

I don't think this is an issue with encyption as much as an issue with
6.2 and samba.Your statement

>    Hi
>   I have trouble with my samba encryption.
>   I followed the manual with command
>   cat /etc/passwd |mksmbpasswd.sh > /etc/smbpasswd

leads me to believe this because I had the same issues too with 6.2. I
found that to sync samba passwords with the linux passwords I had to do
a 'touch /etc/smbpasswd' because the smbpasswd file didn't exist. I used
the exact same command you did and found that whenever I tried to change
a password with passwd or smbpasswd as either the user or even root, I
received an error about tokens not being updated because of some UID in
the password file. ( can't remember the exact error )

I did find a solution. I ran /usr/bin/smbadduser username:password
username:password. This formatted the smbpasswd file correctly. This is
a kludge to do in my opinion but it worked. However, I went to change my
password and got the same errors again. After a little troubleshooting I
found samba expects the program passwd to be in /bin, it was actually
located in /usr/bin. So passwords were not synced properly, hence
errors. Just make sure to put:

 unix password sync = Yes

...in the "global" section of your smb.conf file. You can run testparm
as root to check your config for samba and it will also tell you what
directory samba is looking for passwd in. So you can copy or symlink
passwd to /bin from /usr/bin. After doing that you can run smbpasswd and
sync both the linux and samba passwords simultaniously.

Lemme know if this works for you.

Here is my smb.conf global section:

[global]
        workgroup = COLLECTIONS
        netbios name = SERVER
        netbios aliases = SERVER
        server string = Samba Server
        encrypt passwords = Yes
        update encrypted = Yes
        min password length = 2
        unix password sync = Yes
        log file = /var/log/samba/log.%m
        max log size = 0
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        logon home = \\%N\%U\Profiles
        domain logons = Yes
        domain master = Yes
        dns proxy = No


Cheers,
Scott Kindley



-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to