From: Paul A Sand <pas@okoboji.unh.edu>
Subject: Re: Change Root Password on several systems.
Date: Tue, 13 Jan 2004 20:30:18 +0000 (UTC) [thread overview]
Message-ID: <slrnc08laq.bt0.pas@okoboji.unh.edu> (raw)
In-Reply-To: f97ccb50.0401130959.7f4f7f7e@posting.google.com
In article <f97ccb50.0401130959.7f4f7f7e@posting.google.com>, 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 |
next prev parent reply other threads:[~2004-01-13 20:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-13 17:59 Change Root Password on several systems John Palmer
2004-01-13 20:30 ` Paul A Sand [this message]
2004-01-13 22:22 ` Sylvain Robitaille
2004-01-13 20:56 ` Paul Pluzhnikov
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox