Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 04-18-2004, 03:45 PM   #1
LQ Newbie
Registered: Oct 2003
Location: Fortaleza - CE - Brazil
Distribution: Arch Linux, Slackware
Posts: 12

Rep: Reputation: 0
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.


Old 04-18-2004, 04:19 PM   #2
Registered: Aug 2003
Location: Europe
Distribution: Slackware (current)
Posts: 228

Rep: Reputation: 33
I use smbpasswd -> passwd synchronization, just add
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
Old 03-11-2009, 03:47 PM   #3
LQ Newbie
Registered: Mar 2009
Location: iowa
Distribution: suse
Posts: 1

Rep: Reputation: 0
Originally Posted by muah View Post
I use smbpasswd -> passwd synchronization, just add
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?



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
passwd sync smbpasswd slack66 Linux - Networking 1 04-24-2009 11:01 AM
sync passwd to smbpasswd??? slack66 Slackware 2 12-27-2004 01:15 AM
smbpasswd -a ... smbpasswd: Command not found Lleb_KCir Linux - Software 7 08-11-2004 12:27 PM
smbpasswd whaase Linux - Networking 3 11-02-2003 04:48 PM
I get this error when trying to add users('smbpasswd -a XXX'). lostboy Linux - General 7 05-02-2003 07:34 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:35 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration