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 11-23-2012, 09:45 AM   #1
kedarp
Member
 
Registered: Jul 2012
Location: Pune, India
Distribution: Mageia 4
Posts: 182

Rep: Reputation: 22
Change the directory permissions


Hello,

I have a directory .mozilla in my home folder with only root access to it and the sub directories and files. Firefox is not starting due to it.
How can I change the permissions of all the folder and its contents at once?
 
Old 11-23-2012, 09:49 AM   #2
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,797
Blog Entries: 4

Rep: Reputation: 285Reputation: 285Reputation: 285
You should not modify permission of .mozilla, as it's by default set to drwx------ i.e. 700.
Once share the detailed problem or if any error message you get when you try to invoke mozilla.
 
Old 11-23-2012, 11:06 AM   #3
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: /root
Distribution: Slackware & BSD
Posts: 1,206

Rep: Reputation: 230Reputation: 230Reputation: 230
Quote:
Originally Posted by kedarp View Post
Hello,

I have a directory .mozilla in my home folder with only root access to it and the sub directories and files. Firefox is not starting due to it.
How can I change the permissions of all the folder and its contents at once?
Default perm on /home/user/.mozilla is 755 not 700 because the application will search that for user-based configuration, it needs the reading bit '4'; thus you may reset that to--

Code:
sudo chmod 755 ~/.mozilla
Although, firefox may run if at all okay since it has all that it needs from /usr/lib/mozilla which files also are 644 perms. If your firefox did not run it could be for another reason. Try open a terminal and launch firefox typing--

Code:
/usr/bin/firefox <Enter>
the terminal will spout some useful debug information which may lead you to a solution.

Hope that helps.
 
Old 11-23-2012, 01:30 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
au contraire...
Code:
[mherring@herring_lap ~]$ ls -al |grep moz
drwx------  4 mherring users      4096 May 27 04:33 .mozilla
IMHO, the only issue is the ownership. My example above is how things should be---to wit: I have full privileges on MY folder (e-mail, browser, whatever) and NOONE else has any privileges. 700 is correct.

same answer here:
Code:
[mherring@herring_lap ~]$ ls -al |grep thun
drwx------  3 mherring users      4096 May 27 07:00 .thunderbird
to the original question:
Code:
in your home folder:
chmod -R 700 .mozilla
better yet:
chmod -R 700 /home/username
 
Old 11-27-2012, 09:03 AM   #5
kedarp
Member
 
Registered: Jul 2012
Location: Pune, India
Distribution: Mageia 4
Posts: 182

Original Poster
Rep: Reputation: 22
Quote:
You should not modify permission of .mozilla, as it's by default set to drwx------ i.e. 700.
As permissions of .mozilla are 700 by default, I didn't change.

For now, I am starting firefox using sudo and it is working fine.

But when I try to start it from menu, i.e. from my account, it
gives me a message that it is unable to create a profile.
 
Old 11-27-2012, 09:08 AM   #6
pan64
Senior Member
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 4,508

Rep: Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221
you should change the owner of that folder to yourself, it should not be set to root
 
1 members found this post helpful.
Old 11-27-2012, 09:29 AM   #7
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,797
Blog Entries: 4

Rep: Reputation: 285Reputation: 285Reputation: 285
Permission of .mozilla is 700 by default. You shouldn't alter it.
In the meantime, once move .mozilla directory to any other name like .mozilla.old
Code:
mv .mozilla .mozilla.old
Then invoke firefox again from command line (as you're doing using sudo). It will automatically create a new and fresh .mozilla in your home directory, including a new profile file inside it. If it work, you can then try to invoke it from menu.

Last edited by shivaa; 11-27-2012 at 09:33 AM.
 
1 members found this post helpful.
Old 12-02-2012, 12:39 PM   #8
kedarp
Member
 
Registered: Jul 2012
Location: Pune, India
Distribution: Mageia 4
Posts: 182

Original Poster
Rep: Reputation: 22
Quote:
Originally Posted by pan64 View Post
you should change the owner of that folder to yourself, it should not be set to root
Thanks a lot, this solution worked perfectly. And was the real cause of the problem.

Quote:
In the meantime, once move .mozilla directory to any other name like .mozilla.old

Code:

mv .mozilla .mozilla.old
I tried this one too. This one also worked, creating directory .mozilla in home directory.
 
Old 12-02-2012, 01:16 PM   #9
pan64
Senior Member
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 4,508

Rep: Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221
great!
if you really want to say thanks just press YES (bottom right corner)
 
Old 12-03-2012, 12:26 AM   #10
kedarp
Member
 
Registered: Jul 2012
Location: Pune, India
Distribution: Mageia 4
Posts: 182

Original Poster
Rep: Reputation: 22
Oops... Had forgotten. Done.

Last edited by kedarp; 12-03-2012 at 12:35 AM.
 
  


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
How to change the permissions the whole directory? pratikvimal Linux - Newbie 10 06-12-2009 10:13 AM
Permissions change when I mount a directory AmdMhz Linux - Newbie 2 02-04-2009 03:36 PM
How do I change directory permissions ? cwolf78 Linux - Software 3 05-05-2005 12:15 PM
can't change directory permissions walterbyrd Debian 7 07-24-2004 01:20 PM
How do I Change directory permissions? Stevetgn Linux - Newbie 8 06-09-2004 12:09 AM


All times are GMT -5. The time now is 07:34 PM.

Main Menu
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