LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 04-26-2009, 12:21 PM   #1
PClOStinspace
Member
 
Registered: Jun 2008
Location: Bracknell, UK
Distribution: Ubuntu 13.10 Saucy
Posts: 152

Rep: Reputation: 19
Started Firefox as root, now lost my profile


I have acidentally started FF as root, now when I start FF I have no bookmarks, no history, session save/restore does not work and the forward, back, refresh and stop buttons on the tool bar have greyed out and don't respond(tooltips stillappear though)

Is there something basic I've broken here, or will it need a clean FF instal?

Thanks
 
Old 04-26-2009, 03:39 PM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
Starting Firefox as root shouldn't permanently damage anything. All that happens generally is that it creates a new default profile in root's home directory (/root). Since root processes run under a different environment to other users, your regular user's profile should remain untouched.

Make sure that you've completely shut down the root instance of Firefox (you can use pkill firefox as root to kill all running processes if necessary). If the root instance somehow failed to shutdown completely then running the startup command will just bring up a new window of that instance. Once you're sure you've killed it completely, you can try starting it again as your regular user. If that doesn't bring it back with your regular profile, try running "firefox -ProfileManager" to select from available profiles. You can also check in ~/.mozilla/firefox to confirm the existence of your profiles.
 
Old 04-26-2009, 03:53 PM   #3
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware -current, 14.1
Posts: 1,075

Rep: Reputation: 189Reputation: 189
Actually, depending on how you started FF as root, you may have inadvertently changed the permissions of your .mozilla/firefox folder - (I'm speaking from experience x2 here).

To check the permissions:

$ ls -la .mozilla and $ ls -la .mozilla/firefox

To correct the permissions, as root:

# chown -R <username> .mozilla

cheers,
 
Old 04-26-2009, 04:23 PM   #4
PClOStinspace
Member
 
Registered: Jun 2008
Location: Bracknell, UK
Distribution: Ubuntu 13.10 Saucy
Posts: 152

Original Poster
Rep: Reputation: 19
Smile

Quote:
Originally Posted by mrclisdue View Post
Actually, depending on how you started FF as root, you may have inadvertently changed the permissions of your .mozilla/firefox folder - (I'm speaking from experience x2 here).

To check the permissions:

$ ls -la .mozilla and $ ls -la .mozilla/firefox

To correct the permissions, as root:

# chown -R <username> .mozilla

cheers,

Spot on m8, that has sorted it.

Thanks for the short and working solution.

Just out of interest, Why does this cause the toolbar buttons to go all funky, I understand the isues with history and bookmarks, that makes sense
 
Old 04-26-2009, 04:26 PM   #5
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware -current, 14.1
Posts: 1,075

Rep: Reputation: 189Reputation: 189
It may have something to do with your themes being stored in your profile. Since the permissions are probably something like 0600, and have been changed to root, your user doesn't even have read rights....

cheers,
 
  


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
Started nautilus as root....problems started Chaosbringer SUSE / openSUSE 0 11-05-2008 04:00 AM
Can't get Firefox started meo_beo Linux - Newbie 2 09-22-2008 10:53 PM
Firefox profile davholla Linux - Software 3 07-03-2006 10:55 PM
Firefox profile object Fedora 2 02-18-2004 12:15 AM
netscape profile lost westside Linux - Software 1 07-15-2003 10:32 AM


All times are GMT -5. The time now is 04:52 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration