From: Sylvain Robitaille <syl@alcor.concordia.ca>
Subject: Re: Change Root Password on several systems.
Date: 13 Jan 2004 22:22:45 GMT [thread overview]
Message-ID: <slrnc08rtl.mr1.syl@alcor.concordia.ca> (raw)
In-Reply-To: slrnc08laq.bt0.pas@okoboji.unh.edu
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
----------------------------------------------------------------------
next prev parent reply other threads:[~2004-01-13 22:22 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
2004-01-13 22:22 ` Sylvain Robitaille [this message]
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