Fun with passwd files

Chuck Swiger cswiger at mac.com
Sun Nov 27 00:37:21 GMT 2005


matt . wrote:
[ ... ]
> The question now is this...I see a switch for pwd_mkdb which is "-p",
> meaning generate a /etc/passwd file.  Going forward, when manually adding a
> new user to /etc/master.passwd, am I now to issue "pwd_mkdb -p <file>" to
> properly update /etc/passwd at the same time?  Seems to me this is the thing
> to do, however it's my first time really messing with this sort of thing...

Set $EDITOR properly, and run "vipw".

That program will let you edit the password file and then update the other 
system-specific password databases correctly.

-- 
-Chuck



More information about the freebsd-questions mailing list