From owner-freebsd-isp Fri Jul 18 03:47:18 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id DAA14870 for isp-outgoing; Fri, 18 Jul 1997 03:47:18 -0700 (PDT) Received: from viking.easynet.fr (root@viking.easynet.fr [195.114.64.6]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id DAA14865 for ; Fri, 18 Jul 1997 03:47:13 -0700 (PDT) Received: from viking (hal@viking.easynet.fr [195.114.64.6]) by viking.easynet.fr (8.7.5/8.7.3) with SMTP id MAA01708 for ; Fri, 18 Jul 1997 12:46:30 +0200 Message-ID: <33CF4986.64306E22@easynet.fr> Date: Fri, 18 Jul 1997 12:46:30 +0200 From: Michael Hallgren Organization: Easynet France X-Mailer: Mozilla 3.0Gold (X11; I; Linux 2.0.0 i586) MIME-Version: 1.0 To: freebsd-isp@FreeBSD.ORG Subject: Re: Adduser Plus Script... References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-isp@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Patrick McConnell wrote: > > The adduser script already does this, at least the one that came with > 2.2.2-R. All you have to do is set up /usr/share/skel the way you want a > new user's home dir to be. Mine sets up a new user with ~/public_html, > perm 755. I would still recommend that you learn to use Perl, though. You > will probably find it invaluable to you as a sys admin. This is just excellent. Is it possible also, to let adduser create a file named the login of the added user, and create a softlink back to the added users directory? Cheers Michael > > Patrick > > On Thu, 17 Jul 1997, Daniel O'Callaghan wrote: > > > > > On Wed, 16 Jul 1997, Marcin Pasek wrote: > > > > > I am looking for a Perl Script that would Add users, setup directories > > > with Public_html and index and set the appropriate RIGHT... > > > > /usr/sbin/adduser is a perl script. It is not too hard to modify, to get > > it to mkdir and chmod and chown. Buy a book on perl. You'll find > > yourself wanting to do *lots* of scripts, and you won't always find them > > on this list. > > > > Danny > > > > > > -- > Patrick McConnell (patrick@interlog.com) > Finger info: http://www.interlog.com/~patrick/finger > > "640k ought to be enough for anybody." > -Bill Gates, 1981 -- Michael Hallgren, Easynet France Write : http://www.loria.fr/tex Play : http://www.perl.com/perl