LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 04-18-2004, 03:45 PM   #1
gyodai
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.

Thanks.

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

Rep: Reputation: 32
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
 
Old 03-11-2009, 03:47 PM   #3
godfather55v
LQ Newbie
 
Registered: Mar 2009
Location: iowa
Distribution: suse
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by muah View Post
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
 
  


Reply


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


All times are GMT -5. The time now is 07:25 AM.

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