From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653680322120.tru64-unix-managers.marc@archive.invalid> From: "Mehall, Michael R." Date: Tue, 25 Sep 2001 20:03:27 +0000 To: tru64-unix-managers Subject: SUMMARY: C2 Security Script X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653680322120 Managers, Thanks to the following for their prompt and informative answers: Ann Majeske Matt Moore Derk Tegeler James Sainsbury Alan Davis John Venier Uwe Richter The end solution to my problem (see original message below) was to, as many of you directed me to do, build an Expect program to interact with the /usr/bin/passwd command. I tried several very good suggestions involving changing the u_oldcrypt and u_newcrypt values to no avail. I ended up writing an Expect program and the only trouble that I had was getting the program to handle both C2 and non-C2 servers. The Expect program is now functioning and I would be glad to share it on request. Once again, thanks to everyone for the incredibly fast responses! Mike Mehall SAP Basis Team 410-765-0355 Michael_R_Mehall@mail.northgrum.com ORIGINAL MESSAGE: All, I have a question about changing a password while running C2 security. I am writing a ksh script to change a password on multiple (24) Alpha servers without using the passwd command or using the dxaccounts GUI. Has anyone written a script to do this? The problem that I am having is that when I "sed-in" the new encrypted password (edauth -g username | sed |sed ), the password does not work. I just get "sorry" when using su or "login incorrect" when directly logging in. Do I need to update any other fields other than u_pwd and u_succhg? Should I include a copy of the script? By the way, I am generating the encrypted password with a call to PERL crypt. Do I maybe have a problem with using PERL crypt since it does not call crypt16? Thank you in advance for your reply!