-- -- Paul A. Sand | The ignorant and wise alike rejoice, -- University of New Hampshire | secure in their ignorance and wisdom. -- pas_at_unh.edu | (G*rd*n Fitch, rec.arts.books) -- http://pubpages.unh.edu/~pas | ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- From: Jim Fitzmaurice <jpfitz_at_fnal.gov> Subject: Re: Samba - replacing passwd command? Paul, One word, "expect". The wrapper idea is great but users will balk at having to enter a password 4 times. With "expect" you can write a wrapper that asks them for a password, then asks them to verify it. Then it takes off and runs the interactive commands inserting the password selected by the user. In fact when you download and install "expect" (You'll need Tcl/Tk as well.) it has an example of a script that does almost that exact thing. Of course the example script logs into various machines and changes the password, but it wouldn't take much modification to get it to do what you want. You can get "expect" it's free, (as is Tcl/Tk) from the NIST web site. Just go to http://expect.nist.gov/ and you'll find all the info you need. Jim Fitzmaurice jpfitz_at_fnal.gov UNIX is very user friendly, It's just very particular about who it makes friends with. ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- From: Arnie Miles <miles_at_hood.edu> You could probably create an Expect script that handled both duties at once, and have your users use that to change their passwords. Here at the College, we don't actually have any users who log directly onto the box, so I've just made my UNIX machines members of the NT Domain and use the NT password for everything. Arnie Miles Manager, End User Computing Unix Systems Administrator Hood College 401 Rosemont Avenue Frederick, MD 21701 301.696.3929 ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- From: Uwe Richter <ur_at_minet.uni-jena.de> Subject: Re: Samba - replacing passwd command? Hello Paul, on our systems we do this with a shell script on unix that does smbpasswd to samba-server-passowr-chat-file) and to a NT-Server to get the passwords synced. We have C2 security and have to sync the old passwd passwords, too. If you want, i can send you the scripts. Best regards Uwe Jena University, Faculty of Mathematics & Computer Science Ernst-Abbe-Platz 1-4, Room#1219, D-07740 Jena, Germany eMail: ur_at_inf.uni-jena.de Tel. : +49.3641.9.46044 ------------------------------------------------------------------ ------------------------------------------------------------------Received on Fri Aug 03 2001 - 11:02:50 NZST
This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:42 NZDT