how to modify passwd file

From: Jerry Brady <jerry.brady_at_faypwc.com>
Date: Mon, 20 Nov 2000 15:07:48 -0500

Managers:
     I'm trying to write a script in the korn shell that will search the
/etc/passwd file for a username that starts with the letters pwc, when it
find that user it goes to the home directory field on that line
and changes it from what it is to /auth/users/username.
For example here is a line in the passwd file:
pwcblgl:*:225:50:Gale Liles:/homeg/pwcblgl:/bin/ksh
and I would like to change it to look like this:
pwcblgl:*:225:50:Gale Liles:/auth/users/pwcblgl:/bin/ksh

Thanks
Jerry
Received on Mon Nov 20 2000 - 20:08:28 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:41 NZDT