From owner-freebsd-questions Fri Apr 5 6:17:11 2002 Delivered-To: freebsd-questions@freebsd.org Received: from dns.perimeter.co.za (dns.perimeter.co.za [196.25.164.254]) by hub.freebsd.org (Postfix) with ESMTP id 2D09E37B419 for ; Fri, 5 Apr 2002 06:17:06 -0800 (PST) Received: from PATRICK (loopback.mipjhb [209.212.102.245] (may be forged)) by dns.perimeter.co.za (8.11.1/8.11.1) with SMTP id g35EGx505033; Fri, 5 Apr 2002 16:16:59 +0200 (SAST) (envelope-from bsd@perimeter.co.za) Message-ID: <016401c1dcac$49aaa3d0$b50d030a@PATRICK> From: "Patrick O'Reilly" To: , , "Ben Kadish" References: <5.1.0.14.0.20020405074521.029a37b8@mail.happcontrols.com> Subject: Re: Redistributing adduser's dotfiles to users Date: Fri, 5 Apr 2002 16:15:06 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 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 ----- Original Message ----- From: "Ben Kadish" > #!/bin/sh > > for user in /home > do > cp /usr/share/skel/.* /home/$user > chown $user.group /home/$user/.* > done > > That's my suggestion. > The trick which will trip up this script is that the skeleton files in /usr/share/skel/ are named dot.profile and dot.bashrc, etc. So the 'cp' needs to be a little smarter to actually rename the file, something like this: cp /usr/share/skel/dot.profile /home/$user/.profile I've posted another reply to johann's question which will address this problem :) Regards, Patrick O'Reilly. ___ _ __ / _ )__ __ (_)_ __ ___ _/ /____ __ / __/ -_) _) / ~ ) -_), ,-/ -_) _) /_/ \__/_//_/_/~/_/\__/ \__/\__/_/ http://www.perimeter.co.za To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message