LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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



Reply
 
Search this Thread
Old 06-01-2006, 03:27 PM   #1
kryptobs2000
Member
 
Registered: Dec 2003
Distribution: Slackware
Posts: 306

Rep: Reputation: 30
Can I copy all my personal settings to another account?


I have been running normally as root, I created another account but I had alot of things already set up the way I wanted them for root (firefox settings, bookmarks, gaim, xmms etc..) is there a way I can copy these over so I don't have to go and change them all manually?
 
Old 06-01-2006, 03:34 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
Generally, yes. If you run ls -A /root you'll see the directories created by applications to hold their settings. You could do the following, for example:
Code:
cp -dR /root/.mozilla /home/username && chown -R username:usergroup /home/username/.mozilla
The main problems I can think of off-hand are:
- Apps that also put stuff in other locations outside of the /root directory that are still owned by root; and
- Apps that have their conf file locations hard-coded and still try to look in /root
But it's only 5:30 am here so I haven't thought past that yet Basically, try it and see what happens...
 
Old 06-01-2006, 03:37 PM   #3
serafean
Member
 
Registered: Mar 2006
Location: Czech Republic
Distribution: Gentoo, Chakra
Posts: 871
Blog Entries: 9

Rep: Reputation: 103Reputation: 103
I think that the firefox bookmarks are in the .firefox directory in HOME. All you need to to is copy the content of the root home folder to the new account home folder (/home/"newaccountname").I think that should do it for most apps. But beware, the .**** folders are hidden ones, you'll have to either copy from command line, or allow the seeing of those folders in the browser properties.
 
Old 06-02-2006, 08:05 AM   #4
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950
Firefox is not quite that easy. The profile needs to be "registered" with firefox, so you need to have a valid profile available before you copy things over. If you don't mind overwriting the default profile then it's not so hard. You can simply copy the contents of your /root/.mozilla/firefox/xxxxx.profile/ directory INTO the new ~/.mozilla/firefox/xxxxx.default/ one. If you want the default to be there in addition to the copied profile, then you have to create a new user profile first, then overwrite it with the contents of the old profile (be sure to close the browser first).

I also assume Thunderbird works the same way, but I haven't tried it myself yet.
 
Old 06-02-2006, 01:28 PM   #5
kryptobs2000
Member
 
Registered: Dec 2003
Distribution: Slackware
Posts: 306

Original Poster
Rep: Reputation: 30
I copied basically all the hidden files from the root directory and I don't seem to have my settings for anything in my new user account, so I'm not doing something.
 
Old 06-02-2006, 02:42 PM   #6
Heimskringla
LQ Newbie
 
Registered: Feb 2005
Distribution: Slackware (-current - 2.6.16.20)
Posts: 16

Rep: Reputation: 0
Quote:
Originally Posted by kryptobs2000
I copied basically all the hidden files from the root directory and I don't seem to have my settings for anything in my new user account, so I'm not doing something.
It would be quite helpful if you could tell us exactly what you did, with the syntax of the commands used if possible.

What settings are you lacking? What are you using for your desktop environment? If you're using XFCE, for example, you'll need to do things differently than if you were using KDE.
 
Old 06-02-2006, 05:21 PM   #7
kryptobs2000
Member
 
Registered: Dec 2003
Distribution: Slackware
Posts: 306

Original Poster
Rep: Reputation: 30
I just did cp -v on everything, and I am using xfce
and it dosn't seem like I have any of my settings, for firefox, gaim, azureus etc..
 
Old 06-02-2006, 11:44 PM   #8
DeusExLinux
Member
 
Registered: May 2004
Location: Tampa, Fl
Distribution: Arch
Posts: 648

Rep: Reputation: 30
Unless you change their rights, it won't work. All the root's user files shouldn't have general user access. On a side note, you can use firefox to export your favorits to a .html file, then reimport them in your users. This creates a nifty backup, which is a good idea to have.

The other settings, I would just say to redo them. It should only take you 10 minutes. It would probably be far easier to re-set everything up than to fight users permissions.
 
Old 06-03-2006, 09:25 PM   #9
Heimskringla
LQ Newbie
 
Registered: Feb 2005
Distribution: Slackware (-current - 2.6.16.20)
Posts: 16

Rep: Reputation: 0
After you copy them, you'll need to chown and chgrp them from root. Chown them to yourself and chgrp them to users.

Edit:

Firefox is a bit more complex. Just export your bookmarks: Bookmarks -> Manage Bookmarks -> File -> Export and then type:
Code:
chown <yourusername>:users bookmarks.html
Copy that file to your home directory and then import the file from the Manage Bookmarks window.

Last edited by Heimskringla; 06-03-2006 at 09:29 PM.
 
  


Reply


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
When I try to change some personal settings in YAST hardware nothing happens riba43 Suse/Novell 1 05-05-2006 01:45 PM
Account settings mangled after update frkstein Linux - Software 0 04-25-2004 10:11 PM
Saving personal user settings obl1v1us Linux - Software 2 02-11-2004 10:52 AM
personal settings question Dr_Travis Linux - Newbie 1 05-17-2002 08:34 PM
Startup Files to Configure for personal settings AMH Linux - Newbie 1 06-05-2001 06:42 AM


All times are GMT -5. The time now is 03:51 AM.

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