Re: Easy way to programatically change /etc/passwd

From: Patrick B. O'Brien (pobrien@DOIT.NV.GOV)
Date: Tue Mar 18 2003 - 10:25:48 EST


sed 's/!/*/g' /etc/passwd > /etc/passwd.`date`

-----Original Message-----
From: pSeries AIX Geek [mailto:aixgeek@YAHOO.COM]
Sent: Monday, March 17, 2003 7:11 PM
To: aix-l@Princeton.EDU
Subject: Easy way to programatically change /etc/passwd

Anyone have an easy way to programatically change the
"!" entry in /etc/passwd to a "*"?

To make a long story short, I need to dump about 200
entries from one /etc/passwd to another, and I need to
change the ! to a *.

Isn't there a chuser or a pwdadm option that I can
use? [I can't find one.]

Thanks,

- pAG

__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:40 EDT