Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
After install linux and configured a user to what I want (e.g.
Desktop settings, Firefox settings etc.) - how can I copy this entire setup to a newly create user?
This is totally depending upon permissions. But only root can assign such permissions to users, and not a user himself.
You can try the above commands as specified by Tinkster, they are really helpful. Else you can study a bit about permissions with usermod and group commands and you will figure out the solution on your own. What i am trying to tell you is that either you copy complete files from a user to other user's directory...Or you can put several users in a single group so that file accessing becomes easier.
On a side note, /etc/skel is a sort of default user profile location. When a new user account is created, the contents of /etc/skel get copied to the new user's /home profile.
I agree with Slow Coder, if you want these settings to automatically apply for all new users, as they are created. /etc/skel is what you want to look at.
You might want to compare the differences between the model you want to use and the /etc/skel/ contents. Maybe you don't want to include everything, such as ~/.mozilla/ or ~/.thumbnails/, but want ~/.kde, ~/.vimrc, ~/.mplayer, etc.
If you are root-user, open rootfolder and ctrl+h show the hidden files and folders. Then copy .config folder.
In another window open your new-user folder and ctrl+h show the hidden files and folders and you see .config folder too. In this folder paste the .config folder you previsously copied. And click Merge and Replace when it prompts you to choose.
That's it. Log out as root and log in as the user you created.
can I copy this entire setup to a newly create user?
Quote:
Originally Posted by michalng
After install linux and configured a user to what I want (e.g.
Desktop settings, Firefox settings etc.) - how can I copy this entire setup to a newly create user?
Appreciate any advise.
If you are root-user, open rootfolder and ctrl+h show the hidden files and folders. Then copy .config folder.
In another window open your new-user folder and ctrl+h show the hidden files and folders and you see .config folder too. In this folder paste the .config folder you previsously copied. And click Merge and Replace when it prompts you to choose.
That's it. Log out as root and log in as the user you created.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.