i tried it and it doesn't seem to work.
I have redhat 6.2
encrypt passwords = Yes
smb passwd file = /etc/smbpasswd
unix password sync = yes
passwd program = /usr/bin/passwd %u
i tried the /usr/bin/passwd with %u and without it
and it didn't change the unix passwd.
anything else i need to do.
how about the script maybe?
On Sun, 25 Feb 2001, Moti Levy wrote:
> you can use the "unix password sync = yes" in the smb.conf file
> I quote from orielly's using samba ( free and excelent book b.t.w )
> "With this option enabled, Samba will attempt to change the user's regular
> password (as root) when the encrypted version is changed with smbpasswd.
> However, there are two other options that have to be set correctly in order
> for this to work.
>
> The easier of the two is passwd program. This option simply specifies the
> Unix command used to change a user's standard system password. It is set to
> /bin/passwd %u by default. With some Unix systems, this is sufficient and
> you do not need to change anything. Others, such as Red Hat Linux, use
> /usr/bin/passwd instead. In addition, you may want to change this to another
> program or script at some point in the future. For example, let's assume
> that you want to use a script called changepass to change a user's password.
> Recall that you can use the variable %u to represent the current Unix
> username. So the example becomes:
>
> [global]
> encrypt passwords = yes
> smb passwd file = /usr/local/samba/private/smbpasswd
>
> unix password sync = yes
> passwd program = changepass %u
> Note that this program will be called as the root user when the unix
> password sync option is set to yes. This is because Samba does not
> necessarily have the plaintext old password of the user. "
>
> Moti
>
> -----Original Message-----
> From: Steve Lee [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, February 25, 2001 7:17 AM
> To: Steve Lee
> Subject: passwd and smbpasswd
>
>
> Does anyone know of a script or program
> that you can change one passwd and have it update
> both the passwd file for Unix and smbpasswd?
>
> How about a webbased and command line.
>
>
>
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list
>
>
>
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list
>
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list