[98475] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: passwd/shadow parsing script

daemon@ATHENA.MIT.EDU (Fred Whipple)
Mon Nov 9 09:32:26 1998

Date: Mon, 09 Nov 1998 14:31:05 +0000
From: Fred Whipple <fwwhippl@mindless.com>
To: redhat-list@redhat.com
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

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.)

Having just read another answer regarding usermod, and asking a question
about it myself, it seems to me that if there isn't a pre-written script
that you could easily make the usermod command a centerpiece in yourown,
assuming that you can at least do a *little* shell scripting...

	-Fred


-- 
  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.


home help back first fref pref prev next nref lref last post