LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   adding users using smbpasswd, or synchronise passwd/smbpasswd (http://www.linuxquestions.org/questions/linux-networking-3/adding-users-using-smbpasswd-or-synchronise-passwd-smbpasswd-171733/)

gyodai 04-18-2004 03:45 PM

adding users using smbpasswd, or synchronise passwd/smbpasswd
 
Hi people,

I need to have always the smbpasswd users synch'ed with the system users, but if I add a user to the system, I need to add him to smbpasswd later.

There is a way to add a user to the system using smbpasswd -a user, or auto-synchronise smbpasswd with passwd? I red about a synchronisation between passwd and smbpasswd in smb.conf man pages, but I don't know how it works.

Thanks.

Esdras

muah 04-18-2004 04:19 PM

I use smbpasswd -> passwd synchronization, just add
Code:

unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*

to your smb.conf

godfather55v 03-11-2009 03:47 PM

Quote:

Originally Posted by muah (Post 885569)
I use smbpasswd -> passwd synchronization, just add
Code:

unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*

to your smb.conf

so what exactly does this code do? Is there a way to sync the linux users/passwrd and all w/ samba's? So for example i can just go to yast add users and then go to a win box and login w/ that user?

tx!!
matt


All times are GMT -5. The time now is 05:41 PM.