Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Sep 2014 12:11:04 -0700
From:      Charles Swiger <cswiger@mac.com>
To:        Dave Babb <dcbdbis@comcast.net>
Cc:        FreeBSD - <freebsd-questions@freebsd.org>
Subject:   Re: Cloning a user
Message-ID:  <64800696-2AB1-4B0E-9C17-D76AE07880BE@mac.com>
In-Reply-To: <54206EFE.2020300@comcast.net>
References:  <54206EFE.2020300@comcast.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sep 22, 2014, at 11:48 AM, Dave Babb <dcbdbis@comcast.net> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?64800696-2AB1-4B0E-9C17-D76AE07880BE>