Cloning/replicating user profile ?

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

Cloning/replicating user profile ?

Postby vincentm77 » Feb 22nd, '20, 17:51

Hi everyone,

I am an "administrator" for a group of user on a Mageia7 system.

I regularly need to add some new user(s), and I would like each new user to have a well-defined configuration on his Mageia Desktop: e.g. shortcuts for LibreOffice on his Desktop, a few specific programs in the taskbar, a preconfigured email client etc....

My question is:

How can I create/define a profile for a "standard" user, which would the basis for any further user added to the system ?

My problem is that I don't want to simply add a new user each time I need to, and have to tweak all the specific features I want all my users to have...

I guess i could copy the content of the /home of a user into the /home of a new user, but then problems certainly would arise because of permissions...

Thank you !
Vincent
vincentm77
 
Posts: 59
Joined: Sep 5th, '13, 16:56

Re: Cloning/replicating user profile ?

Postby doktor5000 » Feb 22nd, '20, 19:08

You may want to read up on /etc/skel. E.g. useradd adds all files inside there to new user home folders by default, see -k description in the useradd man page.

Another option is to write a script, which is run once the user logs in for the first time, and creates/copies everything you need in the new home folder.
You can also combine those two approaches.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18052
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron