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 26.06.2012 00:04, Matthew Mondor wrote:
> On Sun, 24 Jun 2012 18:53:57 -0400 (EDT)
> Mouse <mouse%Rodents-Montreal.ORG@localhost> 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?
> Can usermod(8) be used for this?

user(8), useradd(8) all seem to be capable of modifying the fields found
in /etc/passwd, so I would say "yes."

Jean-Yves Migeon

Home | Main Index | Thread Index | Old Index