From owner-freebsd-doc@FreeBSD.ORG Wed Feb 11 23:02:44 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 3822416A4CE for ; Wed, 11 Feb 2004 23:02:44 -0800 (PST) Received: from riffraff.plig.net (riffraff.plig.net [195.40.6.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1254B43D1D for ; Wed, 11 Feb 2004 23:02:44 -0800 (PST) (envelope-from marcs@draenor.org) Received: from localhost (localhost [127.0.0.1]) by riffraff.plig.net (Postfix) with ESMTP id 2874BFA539; Thu, 12 Feb 2004 07:02:43 +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 24450-01-6; Thu, 12 Feb 2004 07:02:38 +0000 (GMT) Received: by riffraff.plig.net (Postfix, from userid 3010) id BC110FA54B; Thu, 12 Feb 2004 07:02:38 +0000 (GMT) Date: Thu, 12 Feb 2004 07:02:38 +0000 From: Marc Silver To: zzerver@hotmail.com Message-ID: <20040212070238.GA48712@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: hi ...a question ... 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: Thu, 12 Feb 2004 07:02:44 -0000 On Wed, Feb 11, 2004 at 09:04:42PM -0800, zzerver@hotmail.com wrote: > Am running a free server of shells in freeBSD 4.9, the amount of > people solicitading new accounts has been too much that i can not > handle them by me, so i wrote this .sh program to do it for me, my > code its secure as much i can tell, i understand the risk involve and > decide to do it anyways, soo i create a new group call 'shellauto', > add new user 'newuser' promote to 'wheel', then i modify etc/shells to > accept my new shell, so when some body logs to my server as 'newuser' > the server run my .sh (freeshell.sh), everything works goodl but my > question is ...how can i give my script root previlages ? so can > addusers without me? also if there is a way to type a command directly > to shell (bash) so i can define quotas of 1mb, and background procees > to 3?? that way i can include those commands to my freeshell.sh > ...thanks! Firstly, you're addressing the wrong forum. In future, you should mail these questions to freebsd-questions@freebsd.org That said, I would suggest using something like sudo (/usr/ports/security/sudo) to give your program root access for specific programs. Cheers, Marc