From owner-freebsd-questions Fri Jul 26 23:26: 8 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A6E6137B400 for ; Fri, 26 Jul 2002 23:26:05 -0700 (PDT) Received: from ircd2.lomag.net (ircd2.lomag.net [209.133.9.7]) by mx1.FreeBSD.org (Postfix) with SMTP id 1897F43E6A for ; Fri, 26 Jul 2002 23:26:05 -0700 (PDT) (envelope-from epsilon@ircd2.lomag.net) Received: (qmail 21955 invoked by uid 1024); 27 Jul 2002 06:26:04 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 27 Jul 2002 06:26:04 -0000 Date: Sat, 27 Jul 2002 02:26:04 -0400 (EDT) From: c0llisi0n To: freebsd-questions@freebsd.org Subject: adduser/useradd via the command line Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, Here is the problem, I'd like to use adduser (or pw useradd) to add a user and (fun part) their password via the command line and not interactive mode. This is needed for a php script (which calls system()). My other plan was to parse master.passwd manually, but... Anyways, I've seen what I'm requesting done before but couldn't locate the script. So, if anyone has any ideas it would be greatly appreciated. Lastly, I am aware that I shouldn't be having the password in the command line, but (sadly) I'll take the risk and do my best to secure it. And yes, I have read the man pages, but they seemed somewhat cryptic. Thanks again. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message