Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 5722  / 2 Years ago, mon, november 14, 2022, 8:43:51

I have a user profile all setup with all settings the way I want them. I want to copy the entire configured profile to a new user account.


This is what I'm doing (user is already added to system):



  1. Log out, switch to terminal, service gdm stop.

  2. mkdir /home/newuser

  3. cp -a /home/olduser/* /home/newuser/

  4. chown newuser:newuser /home/newuser -R

  5. service gdm start


Then I log in as newuser. When I log in, the desktop looks like a brand new user profile and not the customized profile that I copied.


I want everything in the new profile. The theme, where the docks are located and configured, desktop icons, Firefox favorites, etc.


Any idea why this isn't working? I am using Ubuntu 10.04


More From » users

 Answers
7

OK, I figured it out. Apparently cp /* skips dot files.



You have to explicitly copy dot files with:



cp -a /home/olduser/.* /home/newuser/


And to copy everything do both:



cp -a /home/olduser/* /home/newuser/
cp -a /home/olduser/.* /home/newuser/

[#40640] Tuesday, November 15, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
fatuatexen

Total Points: 451
Total Questions: 107
Total Answers: 110

Location: Trinidad and Tobago
Member since Thu, Apr 27, 2023
1 Year ago
fatuatexen questions
;