A couple of months ago I wrote a shell implementation of adduser.
One of the things that bothered me about the old version was the
way its policy and configuration pretty much duplicated that of pw(8).
Being able to set inconsistent policy like this is not good. Also,
pw already implemented all of the functionality adduser required, so
why reinvent this?

My adduser simply presents a (somewhat) user-friendly front end to
pw. It prompts for the data, does some very simple validation on it,
then invokes pw to do the real work. It reads policy information from
pw.conf rather than having its own configuration file, and it takes no
command line arguments what so ever. (If you're smart enough to start
specifying the types of arguments the old adduser supported, you're
smart enough to just use pw. Ditto with the batch functionality.)

If anyone is interested in exploring an alternative implementation, the
code is at ftp://orthanc.ab.ca/lyndon/freebsd/usr.sbin/adduser/.  It's
functional, but still needs edge case testing and some code cleanup.

--lyndon

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to