Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* Change Root Password on several systems.
@ 2004-01-13 17:59 John Palmer
  2004-01-13 20:30 ` Paul A Sand
  2004-01-13 20:56 ` Paul Pluzhnikov
  0 siblings, 2 replies; 4+ messages in thread
From: John Palmer @ 2004-01-13 17:59 UTC (permalink / raw)


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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Change Root Password on several systems.
  2004-01-13 17:59 Change Root Password on several systems John Palmer
@ 2004-01-13 20:30 ` Paul A Sand
  2004-01-13 22:22   ` Sylvain Robitaille
  2004-01-13 20:56 ` Paul Pluzhnikov
  1 sibling, 1 reply; 4+ messages in thread
From: Paul A Sand @ 2004-01-13 20:30 UTC (permalink / raw)


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 | 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Change Root Password on several systems.
  2004-01-13 17:59 Change Root Password on several systems John Palmer
  2004-01-13 20:30 ` Paul A Sand
@ 2004-01-13 20:56 ` Paul Pluzhnikov
  1 sibling, 0 replies; 4+ messages in thread
From: Paul Pluzhnikov @ 2004-01-13 20:56 UTC (permalink / raw)


jpalmer@eds.com (John Palmer) writes:

> 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?

Expect distribution (http://expect.nist.gov) contains passmass script
(http://expect.nist.gov/example/passmass.man.html) for doing just that.

Cheers,
-- 
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Change Root Password on several systems.
  2004-01-13 20:30 ` Paul A Sand
@ 2004-01-13 22:22   ` Sylvain Robitaille
  0 siblings, 0 replies; 4+ messages in thread
From: Sylvain Robitaille @ 2004-01-13 22:22 UTC (permalink / raw)


Paul A Sand wrote:

>     edauth -g1 root | sed 's^u_pwd=OLDPWD^u_pwd=NEWPWD^' | edauth -s
> 
> ... 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.

I can gladly help with that part (using the same command format as
above):

   edauth -g1 root | sed 's^u_pwd=[^:]*:^u_pwd=NEWPWD:^' | edauth -s

(I add in the colon at the end of the regular expression just because it
helps me reassure myself that the complete pattern I'm after will be
substituted, but I've also tested 's^u_pwd=[^:]*^u_pwd=NEWPWD^' with
equal success...)

-- 
----------------------------------------------------------------------
Sylvain Robitaille                              syl@alcor.concordia.ca
 
Systems analyst                                   Concordia University
Instructional & Information Technology        Montreal, Quebec, Canada
----------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-01-13 22:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-13 17:59 Change Root Password on several systems John Palmer
2004-01-13 20:30 ` Paul A Sand
2004-01-13 22:22   ` Sylvain Robitaille
2004-01-13 20:56 ` Paul Pluzhnikov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox