From: Bruce Whittaker (bwhittak@ENERGY.COM.AU)
Date: Mon Mar 17 2003 - 22:30:40 EST
Will this fix your problem ?
cat /etc/passwd | tr \! \* > new_passwd
Just be aware that all exclamation marks will be altered so first make
sure that no doubles exist.
Bruce Whittaker,
CASS Support,
Extension 34193
External (02) 9269 4193.
----------------------------------------------------------------------------------------
This e-mail may contain confidential or privileged information. If you
have received it in error, please notify the sender immediately via return
e-mail and then delete the original e-mail. EnergyAustralia has collected
your business contact details for dealing with you in your business
capacity. More information about how we handle your personal information,
including your right of access is contained at http://www.energy.com.au.
----------------------------------------------------------------------------------------
pSeries AIX Geek <aixgeek@YAHOO.COM>
Sent by: IBM AIX Discussion List <aix-l@Princeton.EDU>
18/03/2003 14:10
Please respond to IBM AIX Discussion List
To: aix-l@Princeton.EDU
cc:
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