Cloning a user

Charles Swiger cswiger at mac.com
Mon Sep 22 19:11:07 UTC 2014


On Sep 22, 2014, at 11:48 AM, Dave Babb <dcbdbis at 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



More information about the freebsd-questions mailing list