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 14:22:46 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.news2me.com!canoe.uoregon.edu!hammer.uoregon.edu!newsflash.concordia.ca!not-for-mail From: Sylvain Robitaille Newsgroups: comp.unix.tru64 Subject: Re: Change Root Password on several systems. Date: 13 Jan 2004 22:22:45 GMT Organization: Concordia University, Montreal, Canada Message-ID: References: NNTP-Posting-Host: alcor.concordia.ca NNTP-Posting-User: syl User-Agent: slrn/0.9.7.4 (OSF1) Xref: archiver1.google.com comp.unix.tru64:11101 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 ----------------------------------------------------------------------