[98330] in RedHat Linux List
Re: passwd/shadow parsing script
daemon@ATHENA.MIT.EDU (Ian Lumb)
Sun Nov 8 08:05:59 1998
Date: Sun, 8 Nov 1998 08:03:12 -0500 (EST)
From: Ian Lumb <ilumb@platform.com>
To: Toby Herring <therring@syncroflo.com>
cc: redhat-list@redhat.com
In-Reply-To: <000e01be0adb$5da0fde0$96285818@Peregrine.calin.com>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
On Sun, 8 Nov 1998, Toby Herring wrote:
> Anyone know where I can find a shell script (bash) or Perl script
> (5.04) that will parse the entries in /etc/passwd or /etc/shadow
> (depending on installation, obviously), find a specific user, and
> replace a specific field of the entry? (This time around, I want to
> remove the password, but in the future I may want to use it to
> manipulate other fields.)
I seem to recall a nice introduction to parsing the /etc/passwd file in
Schwartz & Christiansen's Learning Perl (O'Reilly & Assoc.). There may be
scripts closer to your requirements elsewhere in the Perl universe ...
Ian
--
Ian Lumb EMail: ilumb@platform.com
Platform Computing Corporation WWW: http://www.platform.com
3760 - 14th Avenue FTP: ftp.platform.com
Markham, Ontario L3R 3T7 (Canada) Inquiries: info@platform.com
Tel: (905) 948-4201 (Direct) Support: support@platform.com
Fax: (905) 948-9975 Training: training@platform.com
Toll-free: 1-87PLATFORM (1-877-528-3676) x 4201
Attend Platform's LSF Administration Training Class,
November 23-25, in Dallas, Texas.
Send your request to: training@platform.com
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com http://archive.redhat.com
To unsubscribe: mail redhat-list-request@redhat.com with
"unsubscribe" as the Subject.