From owner-freebsd-questions@FreeBSD.ORG Mon Sep 22 19:11:07 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B3DA65CD for ; Mon, 22 Sep 2014 19:11:07 +0000 (UTC) Received: from mail-in7.apple.com (mail-out7.apple.com [17.151.62.29]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8B88F8BE for ; Mon, 22 Sep 2014 19:11:06 +0000 (UTC) Received: from mail-out.apple.com (mail-out.apple.com [17.151.62.51]) (using TLS with cipher RC4-MD5 (128/128 bits)) (Client did not present a certificate) by mail-in7.apple.com (Apple Secure Mail Relay) with SMTP id 2B.79.31401.94470245; Mon, 22 Sep 2014 12:11:06 -0700 (PDT) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from relay2.apple.com ([17.128.113.67]) by local.mail-out.apple.com (Oracle Communications Messaging Server 7.0.5.30.0 64bit (built Oct 22 2013)) with ESMTP id <0NCB00KVDH5S52Q0@local.mail-out.apple.com> for freebsd-questions@freebsd.org; Mon, 22 Sep 2014 12:11:05 -0700 (PDT) X-AuditID: 11973e16-f793b6d000007aa9-9f-54207449d7f8 Received: from [17.149.238.212] (Unknown_Domain [17.149.238.212]) (using TLS with cipher AES128-SHA (128/128 bits)) (Client did not present a certificate) by relay2.apple.com (Apple SCV relay) with SMTP id 4F.95.19003.64470245; Mon, 22 Sep 2014 12:11:03 -0700 (PDT) Subject: Re: Cloning a user From: Charles Swiger In-reply-to: <54206EFE.2020300@comcast.net> Date: Mon, 22 Sep 2014 12:11:04 -0700 Message-id: <64800696-2AB1-4B0E-9C17-D76AE07880BE@mac.com> References: <54206EFE.2020300@comcast.net> To: Dave Babb X-Mailer: Apple Mail (2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ISHz4cZ5/AyD8LyUGzkBw0C8nUBYzMqxgFilJz EiuN9BILCnJS9ZLzczcxgoKtodB5B+OxZVaHGAU4GJV4eH+0yIcIsSaWFVfmHmKU4GBWEuHl 9VIIEeJNSaysSi3Kjy8qzUktPsQozcGiJM4bXyYdIiSQnliSmp2aWpBaBJNl4uCUamBU3b7e /sbfMw92BE2e98x033qv23f2rwzc9qjOIudj+nLj6SxJ7940ypn5Cfuv1P2y95O087QoowUs 7CvefflbWnapjznBW8z91W+dNx3BC9W9r4bkLRA2X9knPE0i96TS2ahj2rkJdlNXKXW5Z6rK B9n0/Xw6NSH9SavjkXk7Lpr6ZF3bPH+DEktxRqKhFnNRcSIAwYkreDICAAA= Cc: FreeBSD - X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Sep 2014 19:11:07 -0000 On Sep 22, 2014, at 11:48 AM, Dave Babb wrote: > I am setting up a new system for a municipality. I want to setup one user's home dir, their desktop, .profile, dir tree, etc....then clone it to all the other users I need to setup. email is not a part of this cloning process. I am trying to avoid the labor setting up each user's desktop individually..... Utilities like pw and useradd will support -m and -k flags to create the user's home dir from a template or "skeleton", usually /etc/skel, /usr/share/skel, or similar. Set that directory up to contain whatever files or subdirectories you'd like each new user to have by default. Regards, -- -Chuck