[PLUG] adding user accounts in bulk

Paul Heinlein heinlein at madboa.com
Sat Jan 3 16:44:01 UTC 2004


On Sat, 3 Jan 2004, Michael Rasmussen wrote:

> cp /etc/skel/\.* /home/$USERNAME
> chown -R $USERNAME /home/$USERNAME

Using tar will pick up symlinks, directories, etc...

  tar -cC /etc/skel . | tar -xC /home/$USERNAME

though the -C switch is specific to GNU tar.

-- Paul Heinlein <heinlein at madboa.com>




More information about the PLUG mailing list