Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 04-14-2004, 07:13 AM   #1
LQ Newbie
Registered: Apr 2004
Posts: 6

Rep: Reputation: 0
Duplicate users accounts

Hello ,

Does anyone knows how to duplicate a user account ? With a script or a program.....

My goal is to create users based on a existent user, so i donīt have to onfigure the new users, that way i just have to change username and password.

Thanks in advanced....
Old 04-14-2004, 02:14 PM   #2
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
What attributes do you want to duplicate? Most distros have a /etc/skel directory that forms the basis for a users home directory.
Old 04-19-2004, 06:34 AM   #3
LQ Newbie
Registered: Apr 2004
Posts: 6

Original Poster
Rep: Reputation: 0

My distro also have the etc/skel, but what i want itīs to duplicate a user that already exists. I do that my making a copy of his home directory to the one of the new user, because i need do duplicate the KDE configuration.

Imagine :

I have a user called zuser, i configure it(KDE,...). Then i want to make a copy of this user to create another 10 new users based on zuser. What i do is to create the user, i call it guest1, then i erase is home directory and copy the contents of zuser home to guest1, #cp -rpd /zuser/. /guest1.

Hor can i do it automatically for the 10 users (just give the username for each one).

Thanks, and i hope you understand my english :-)
Old 04-19-2004, 06:38 AM   #4
Senior Member
Registered: Oct 2001
Location: Bristol UK
Distribution: Slackware, Ubuntu
Posts: 1,057

Rep: Reputation: 43
Copy .kde .kderc and .qt from /home/zuser to /etc/skel - when you create a new user from that point on, their default KDE will be the same as that of zuser (unless zuser changes something *after* you've copied the files over!!)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
qmail -- new accounts can't receive mail, but old accounts can b:z *BSD 1 07-13-2005 12:42 AM
super users and accounts ,and xf86config- i have a few question back-off Slackware 6 06-14-2004 02:30 AM
save and restore Users and accounts, settings mail etc. jmanjohn61 Linux - Newbie 4 01-12-2004 05:43 PM
Transfering many users accounts from a FreeBSD 4.4 box to another one stepbysteph *BSD 1 11-09-2003 12:26 PM
I can not login to any local users accounts, except root. jbirtwell Linux - General 7 08-25-2003 03:33 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:14 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration