Date: Wed, 22 Jan 2003 23:43:52 -0700 From: Lyndon Nerenberg {VE6BBM} <lyndon@orthanc.ab.ca> To: freebsd-current@freebsd.org Subject: Another take on adduser Message-ID: <200301230643.h0N6hqo9080996@orthanc.ab.ca>
next in thread | raw e-mail | index | archive | help
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 majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200301230643.h0N6hqo9080996>