From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,f7f171aa9348f7bf X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2004-01-13 12:30:20 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.vmunix.org!news.cs.univ-paris8.fr!proxad.net!news-out.visi.com!petbe.visi.com!nntp1.roc.gblx.net!nntp.gblx.net!nntp.gblx.net!news.unh.edu!not-for-mail From: Paul A Sand Newsgroups: comp.unix.tru64 Subject: Re: Change Root Password on several systems. Date: Tue, 13 Jan 2004 20:30:18 +0000 (UTC) Organization: University of New Hampshire Message-ID: References: NNTP-Posting-Host: okoboji.unh.edu X-Trace: tabloid.unh.edu 1074025818 23807 132.177.137.113 (13 Jan 2004 20:30:18 GMT) X-Complaints-To: usenet@tabloid.unh.edu NNTP-Posting-Date: Tue, 13 Jan 2004 20:30:18 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.unix.tru64:11099 In article , John Palmer wrote: > We are needing to change "Root" password on a bunch of systems > monthly. Any suggestions besides having to log into every system and > manually change it? > These are internal systems so sending the password over the network > isn't as big a concern as trying to automate it. Tru64 V5.1B with > Enhanced Security. There are two independent things involved here: (1) doing anything as root on a bunch of systems without manual login. (2) changing the root password non-interactively. For (1), we use ssh. For (2), we use something like edauth -g1 root | sed 's^u_pwd=OLDPWD^u_pwd=NEWPWD^' | edauth -s where you substitute the old and new encrypted passwords for OLDPWD and NEWPWD respectively. Which probably means you have to do this by hand on one system to get the "new" encrypted password. Maybe there's some clever way to write the sed part so you don't need to know the old encryption, but we haven't figured that out. -- -- Paul A. Sand | What do you want for tens of -- University of New Hampshire | thousands of dollars, anyway? -- pas@unh.edu | (David Lum) -- http://pubpages.unh.edu/~pas |