From owner-freebsd-doc@FreeBSD.ORG Wed Feb 11 01:10:12 2004 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 68AD416A4CE for ; Wed, 11 Feb 2004 01:10:12 -0800 (PST) Received: from riffraff.plig.net (riffraff.plig.net [195.40.6.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4194D43D1F for ; Wed, 11 Feb 2004 01:10:12 -0800 (PST) (envelope-from marcs@draenor.org) Received: from localhost (localhost [127.0.0.1]) by riffraff.plig.net (Postfix) with ESMTP id 1AC33FA37F; Wed, 11 Feb 2004 09:10:11 +0000 (GMT) Received: from riffraff.plig.net ([127.0.0.1]) by localhost (riffraff.plig.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 57497-01-7; Wed, 11 Feb 2004 09:10:10 +0000 (GMT) Received: by riffraff.plig.net (Postfix, from userid 3010) id 15B7EFA354; Wed, 11 Feb 2004 09:10:10 +0000 (GMT) Date: Wed, 11 Feb 2004 09:10:10 +0000 From: Marc Silver To: zzerver@hotmail.com Message-ID: <20040211091010.GB48408@draenor.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Virus-Scanned: at plig.net cc: freebsd-doc@FreeBSD.org Subject: Re: help on adduser X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Feb 2004 09:10:12 -0000 On Wed, Feb 11, 2004 at 12:48:13AM -0800, zzerver@hotmail.com wrote: > i got a free shells server on freebsd, i offer free access to my > server to enyone, the amount of request for new shells has been to > heavy for me and i can keep up with adding new users automaticly, i > write a shell (sh) script that takes care of everything for me, i > create a new user 'newuser' ...i promote 'newuser' to 'wheel' ...then > i try to assign 'free.sh' as default shell for 'newuser' so when some > body logs as 'newuser' runs my script, then my script will create the > new user on my system ...but unfurtunatly freeBSD do not letme assign > my script as shell, what am doing wrong? ...if there is any way i can > let some body or some how automaticly add users to my system....its > any already made script, program? or ??? please help. I stand to be corrected, but adding it to /etc/shells should do the trick. You should however be aware of the implications of exactly what you're doing. Your script is going to need root privileges in order to add the new account, and as such if your script isn't _perfect_ as well as completely secure, you'll most likely soon find yourself with a compromsied machine. In my opinion, it would be safer to simply add them yourself, or modify the script for your own use to speed up the user creation process. Cheers, Marc