From owner-freebsd-questions@FreeBSD.ORG Fri Jan 16 11:45:26 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 837CA106567F for ; Fri, 16 Jan 2009 11:45:26 +0000 (UTC) (envelope-from jonathan+freebsd-questions@hst.org.za) Received: from hermes.hst.org.za (onix.hst.org.za [209.203.2.133]) by mx1.freebsd.org (Postfix) with ESMTP id B17728FC24 for ; Fri, 16 Jan 2009 11:45:24 +0000 (UTC) (envelope-from jonathan+freebsd-questions@hst.org.za) Received: from sysadmin.hst.org.za (sysadmin.int.dbn.hst.org.za [10.1.1.20]) (authenticated bits=0) by hermes.hst.org.za (8.13.8/8.13.8) with ESMTP id n0GBUvbN074938 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 16 Jan 2009 13:30:57 +0200 (SAST) (envelope-from jonathan+freebsd-questions@hst.org.za) From: Jonathan McKeown Organization: Health Systems Trust To: freebsd-questions@freebsd.org Date: Fri, 16 Jan 2009 13:45:16 +0200 User-Agent: KMail/1.9.7 References: <49706606.6060304@zedat.fu-berlin.de> In-Reply-To: <49706606.6060304@zedat.fu-berlin.de> X-Face: $@VrUx^RHy/}yu]jKf/<4T%/d|F+$j-Ol2"2J$q+%OK1]&/G_S9(=?utf-8?q?HkaQ*=60!=3FYOK=3FY!=27M=60C=0A=09aP=5C9nVPF8Q=7DCilHH8l=3B=7E!4?= =?utf-8?q?2HK6=273lg4J=7Daz?=@1Dqqh:J]M^"YPn*2IWrZON$1+G?oX3@ =?utf-8?q?k=230=0A=0954XDRg=3DYn=5FF-etwot4U=24b?=dTS{i X-Spam-Score: -4.135 () ALL_TRUSTED,AWL,BAYES_00 X-Scanned-By: MIMEDefang 2.61 on 209.203.2.133 Subject: Re: How to copy only skeleton files while creating a existing user's homes directory? 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: Fri, 16 Jan 2009 11:45:27 -0000 On Friday 16 January 2009 12:48:38 O. Hartmann wrote: > Hello, > I have the following situation: > > Users are stored in OpenLDAP. I need to create homes directories on new > machine memebers in the pool of workstations and do not want the usage > of an automated creation of loggin in user via pam_mkhomedir. Creation > should be done manually. > My question: is it possible to use a FreeBSD tool/command like 'pw(8)' > only for copying and initiating an existant user's home? > > I tried simply pw useradd USER -m -b /homes/ for that purpose, but pw > errors me saying the user USER already exists (is a OpenLDAP user). Try usermod instead of useradd. Jonathan