From owner-freebsd-current Wed Jan 22 22:43:55 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1303337B401 for ; Wed, 22 Jan 2003 22:43:54 -0800 (PST) Received: from orthanc.ab.ca (114.216-123-230-0.interbaun.com [216.123.230.114]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5FE8743F13 for ; Wed, 22 Jan 2003 22:43:53 -0800 (PST) (envelope-from lyndon@orthanc.ab.ca) Received: from orthanc.ab.ca (localhost4 [127.0.0.1]) by orthanc.ab.ca (8.12.6/8.12.6) with ESMTP id h0N6hqo9080996 for ; Wed, 22 Jan 2003 23:43:52 -0700 (MST) (envelope-from lyndon@orthanc.ab.ca) Message-Id: <200301230643.h0N6hqo9080996@orthanc.ab.ca> From: Lyndon Nerenberg {VE6BBM} To: freebsd-current@freebsd.org Subject: Another take on adduser Organization: The Frobozz Magic Homing Pigeon Company X-Mailer: mh-e 6.1+cvs; nmh 1.0.4; Emacs 21.2 Date: Wed, 22 Jan 2003 23:43:52 -0700 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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