steinke@www.physik.uni-freiburg.de
1998-Dec-07 14:21 UTC
How to sync /etc/smbpasswd with /etc/passwd ?
While we do sync our /etc/passwd whenever /etc/smbpasswd is changed via the Samba sync option that does not seem to be possible the other way round: I just want a /etc/smbpasswd generated from my /etc/passwd with the correct passwords as used for the UniX login... Is that possible ? Regards, -- /(__ __|\ Lars Steinke, Research Student @ ( \/ __)_ www.fmf.uni-freiburg.de, Germany ) (_____ / for PGP PKey and WWW-Page finger /___________/ steinke@mibm.ruf.uni-freiburg.de -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 290 bytes Desc: not available Url : http://lists.samba.org/archive/samba/attachments/19981207/6b1a1b1d/attachment.bin
> I just want a /etc/smbpasswd generated from my /etc/passwd with the correct> =20 > passwords as used for the UniX login... > Is that possible ?No! It is not possible to confert the encrypted /etc/passwd passwords to encrypted /etc/smbpasswd passwords without knowing the clear text password. Christian _____________________________________________________________ Dipl.-Wirtsch.-Ing. Christian Barth Universitaet Kaiserslautern Lehrstuhl fuer Fertigungstechnik und Betriebsorganisation Abteilung Fertigungstechnologie Raum 42/472 Postfach 3049 67655 Kaiserslautern Telefon 0631/205-2872 Telefax 0631/205-3238 email barth@cck.uni-kl.de
http://www.cis.ksu.edu/~mikhail/Passwd/ The script provided will need modification to do what you want. Chad -- Chad Campbell Software Engineer, Innovision Corporation chad@innovision.com, (913)226-8700
According to Christian Barth <barth@cck.uni-kl.de>:> Date: Tue, 8 Dec 1998 16:54:42 +0000 > From: Christian Barth <barth@cck.uni-kl.de> > To: Multiple recipients of list <samba@samba.org>, Lars Steinke <steinke@hpcip00 > .physik.uni-freiburg.de> > Subject: Re: How to sync /etc/smbpasswd with /etc/passwd ? > Message-ID: <199812081559.QAA23706@fbk.mv.uni-kl.de> > > > > On Tue, Dec 08, 1998 at 10:15:21AM +0000, Christian Barth wrote: > > > > I just want a /etc/smbpasswd generated from my /etc/passwd with the correc > t> > > > passwords as used for the UniX login... > > > > Is that possible ? > > > No! > > > > > > It is not possible to confert the encrypted /etc/passwd passwords to > > > encrypted /etc/smbpasswd passwords without knowing the clear text > > > password. > > > > Yes, that's obvious. Let me rephrase my question: > > Can I generate a /etc/smbpasswd file from my /etc/passwd BUT use the passwords > > in /etc/passwd for authentication ? > > A sysadmin can't really be asked to generate a /etc/smbpasswd and THEN ask all > > users to fill in a password using the smbpasswd command ! > > > > Or perhaps it is possible to use /etc/smbpasswd but just put some placeholder > > +::::: in like for NIS which will fill in the users in /etc/passwd ??? > I'm not sure what you want to do. > In the samba package there is ah shell skript called like > "mksmbpasswd". It uses /etc/passwd to bild an smbpasswd with all > "XXXXXXX.....XXX" as passwords. You can then use "update encrypted" > to generate the encrypted passwords as soon as samba fetches a > plain text password of a user. > > But propably that's not what you are looking for. > > ChristianThis sounds like a candidate for some sort of user-friendly client, perhaps a cgi that one could ask a user to invoke through a web page, then generate the encrypted string which would be dropped into the smbpasswd. It's exactly the thing that is lacking in many Unix server/ PC client applications, particularly in database applications. On a somewhoat related note, is there a way to cause Samba to recognize that the user has been authenticated so they don't have to enter their password a second time at login time when they mount the Samba drive? Or is my configuration lacking (highly likely!). Chris -- Chris Knox cknox@hypercom.com Hypercom, Inc. (602) 504-5888 Unix Systems Support Speaking only for myself.
Possibly Parallel Threads
- OCFS disk failure problem.
- [LLVMdev] Running "make check" on Windows yields lots of unwarrented unexpected failures (HTML free this time:-)
- Wins registration vanishes
- [LLVMdev] Running "make check" on Windows yields lots of unwarrented unexpected failures (HTML free this time:-)
- Problems with netlogon batch