From owner-freebsd-questions@FreeBSD.ORG Thu Sep 28 12:39:09 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 738B216A403 for ; Thu, 28 Sep 2006 12:39:09 +0000 (UTC) (envelope-from nvass@teledomenet.gr) Received: from matrix.teledomenet.gr (dns1.teledomenet.gr [213.142.128.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8ED0A43D4C for ; Thu, 28 Sep 2006 12:39:06 +0000 (GMT) (envelope-from nvass@teledomenet.gr) Received: from iris ([192.168.1.71]) by matrix.teledomenet.gr (8.12.10/8.12.10) with ESMTP id k8SCcdEY017672; Thu, 28 Sep 2006 15:38:45 +0300 From: Nikos Vassiliadis To: john@cruzweb.net Date: Thu, 28 Sep 2006 15:35:23 +0300 User-Agent: KMail/1.9.1 References: <4518BCCE.5050902@cruzweb.net> <200609271124.19682.nvass@teledomenet.gr> <451A9483.2010200@cruzweb.net> In-Reply-To: <451A9483.2010200@cruzweb.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200609281535.23737.nvass@teledomenet.gr> Cc: freebsd-questions@freebsd.org, Derek Ragona Subject: Re: Creating New Users over Telnet/SSH X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Sep 2006 12:39:09 -0000 On Wednesday 27 September 2006 18:10, John Cruz wrote: > Nikos Vassiliadis wrote: > > On Tuesday 26 September 2006 18:29, Derek Ragona wrote: > > [snip] > > No, you can force a default shell without modifications. > > Check out login.conf(5) and shell variable. > > > > However, the original post implies little FreeBSD experience. > > Why do you want to automate such a procedure? > > You said it's going to be for a networking class, that is a limited > > a number of users, right? > > > > sdf is a public access Unix system and has to do this automatically, > > you don't have to. smj@sdf.lonestar is a seasoned administrator, > > who has tampered the OS in a number of ways. > > > > Just my 2 cents, Nikos > > That's basically what I was asking, could this be something easily done > with a script that could be a fun learning experience, or would it > require major OS customization and wouldn't be worth the time or > trouble. Thanks for your input, Nikos. It's not very difficult to do. I would suggest starting your scripting adventures from something else. Something that will not have to do with system administration or something that will not be executed by unknown users with superuser power. Perhaps you can keep the script to yourself 'till you feel it's read for "production" use. You can write the script and then try to break it with invalid input... Once you would have learned where/how it breaks, you will be able to correct it. Start your reading from the sh manual page... HTH, Nikos