tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: getpwent and duplicate names in /etc/master.passwd



On Sun, 24 Jun 2012, Mouse wrote:

We're not supposed to edit the password file by hand?
You're supposed to at least use vipw.

What is the correct way for a program to add a passwd file record?
Fork vipw with a special-purpose program in $EDITOR?

Or fork useradd(8) ?


-------------------------------------------------------------------------
| Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:       |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com    |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer |                          | pgoyette at netbsd.org  |
-------------------------------------------------------------------------


Home | Main Index | Thread Index | Old Index