LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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-02-2010, 03:14 PM   #1
steve francis
LQ Newbie
 
Registered: Apr 2010
Posts: 12

Rep: Reputation: 0
How can I reset my permissions to solve Nautilus problem?


The problem:

When I click on a folder under the Places menu or start File Manager, the File Manager window appears. When I then click on any file or folder to open it, File Manager just freezes.

I then have to force quit and receive the error message "File Manager not responding".

When I force quit my desktop items are missing!

Some additional information:

(a) GNOME commander works fine.

(b) If I open up Terminal and just type nautilus, I get the error message
** (nautilus:5550): WARNING **: Unable to add monitor: Not supported
and then I have to force quit the file browser.

(c) I found out that nautilus does not hang when I type
gksudo nautilus

Solutions already attempted:

(1) I tried reinstalling Nautilus using this code:
sudo apt-get remove nautilus
sudo apt-get install nautilus
This succeeded in uninstalling and reinstalling Nautilus but the File Browser still hangs when I double click on a file within it.

(2) Typing the following command in root did not solve the problem.
sudo chmod 700 /home/me
 
Old 04-02-2010, 03:32 PM   #2
mreschke
LQ Newbie
 
Registered: Mar 2010
Distribution: Arch, Ubuntu, LFS
Posts: 18

Rep: Reputation: 4
Reset nautilus

Installing and re-installing nautilus won't really do anything because your config files are still there. Try re-setting nautilus to it's default settings by deleting its config files. 'rm -rf ~/.nautilus'
 
Old 04-02-2010, 03:46 PM   #3
steve francis
LQ Newbie
 
Registered: Apr 2010
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by mreschke View Post
Try re-setting nautilus to it's default settings by deleting its config files. 'rm -rf ~/.nautilus'
I opened up terminal from my user desktop and entered
rm -rf ~/.nautilus
then I ran Nautilus and it still hung.

Should I type "sudo" before that command?
 
Old 04-02-2010, 04:02 PM   #4
steve francis
LQ Newbie
 
Registered: Apr 2010
Posts: 12

Original Poster
Rep: Reputation: 0
Actually, using Gnome Commander to look at the permissions for Nautilus, they are rwxrwxrwx (that is, 777).

There are no files in the folder .Nautilus, just another folder called metafiles
 
Old 04-02-2010, 05:12 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,723

Rep: Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547
The permissions for /home/<username>/ : 751 → drwxr - xr - x

The hidden files, the config files for 'nautilus' :
/home/<username>/.gconf/apps/nautilus
/home/<username>/.gconf/apps/metacity

ls -aR | grep nautilus
.. will show, and I looked into ~.gconf/apps/ and saw metacity.
I don't know, which file, causes the problems, but new default
configurations will be written after you delete them.
.....
 
1 members found this post helpful.
Old 04-02-2010, 05:36 PM   #6
steve francis
LQ Newbie
 
Registered: Apr 2010
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
The hidden files, the config files for 'nautilus' :
/home/<username>/.gconf/apps/nautilus
/home/<username>/.gconf/apps/metacity
I deleted these two files and the .nautilus folder and rebooted. Unfortunately the problem isn't solved.

With regards to your permissions suggestion:

If I open terminal and type
gksudo nautilus
then enter my password, Nautilus starts up and works without a problem.

Within Nautilus, I can then browse to 'home'.

If I right click on home and the Permissions tab, I get

Owner: root
Folder access: Create and delete files
File access: ---

Group: root
Folder access: Access files
File access: ---

Others
Folder access: Access files
File access: ---

Is that to be expected?

If I go back to the Nautilus window and click on home and then right click on my username folder, I get

Owner: me
Folder access: Create and delete files
File access: ---

Group: me
Folder access: None
File access: ---

Others
Folder access: None
File access: ---

Is that to be expected?

If I go back to the Nautilus window and click on home and then left click on my username folder and then on Desktop, then Nautilus hangs!

I've removed all my files from the Desktop in case it was a filename with a bad character. This had no effect.
 
Old 04-02-2010, 05:46 PM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,723

Rep: Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547
I never saw 'nautilus' hang or freeze.

But may be try the command : nautilus
in the terminal, and watch the terminal text,
to see if it's showing some errors.

.....
And by the way : /home/ itself is owned by root.

.....

Last edited by knudfl; 04-02-2010 at 05:49 PM.
 
Old 04-02-2010, 05:55 PM   #8
steve francis
LQ Newbie
 
Registered: Apr 2010
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
I never saw 'nautilus' hang or freeze.
But may be try the command : nautilus
in the terminal, and watch the terminal text,
to see if it's showing some errors.
Nautilus hangs until I force quit. In terminal all I can see is
me@mypc:~$ nautilus
Killed
me@mypc:~$

Quote:
Originally Posted by knudfl View Post
And by the way : /home/ itself is owned by root.
Thanks. Please may I ask if my quoted permissions for home and username are the 'default' permissions?
 
Old 04-02-2010, 06:14 PM   #9
10110111
Member
 
Registered: Jun 2008
Location: St.-Petersburg, Russia
Distribution: (B)LFS, Ubuntu, SliTaz
Posts: 402

Rep: Reputation: 51
Seems some or all of your $HOME files are owned by root. Try this to set your $HOME to be owned by you:
Code:
sudo chown your_username -R $HOME
where your_username is your user name.
 
Old 04-02-2010, 06:35 PM   #10
steve francis
LQ Newbie
 
Registered: Apr 2010
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by 10110111 View Post
Seems some or all of your $HOME files are owned by root. Try this to set your $HOME to be owned by you:
Code:
sudo chown your_username -R $HOME
where your_username is your user name.
Thanks for your suggestion. Before I do this, can I clarify something, please?

knudfl said
Quote:
Originally Posted by knudfl View Post
And by the way : /home/ itself is owned by root.
Should 'home' be owned by 'root' or 'your_username' ? - I don't quite understand
 
Old 04-02-2010, 06:36 PM   #11
mreschke
LQ Newbie
 
Registered: Mar 2010
Distribution: Arch, Ubuntu, LFS
Posts: 18

Rep: Reputation: 4
Steve,

The permissions you stated are correct. /home should be root:root 755, and your normal users /home/user would be user:user 755. I doubt that permission are your problems, but just to get things on the right track, run these commands (substituting your username for 'user' below)

sudo chown root:root /home
sudo chown user:user /home/user -R
sudo chmod 755 /home
sudo chmod 755 /home/user
sudo chmod u+r /home/user -R
sudo chmod u+w /home/user -R

This insures that all your /home/user files have at least R and W for your username

When you run nautilus as sudo or gksudo you are running as the root user, so instead of using the normal nautilus config locations of /home/user/.nautilus or /home/user/.gconf... you are using /root/.nautilus and /root/.gconf... So I would guess that the root config files are good, and your user config files might be causing a freeze.

BEST Troubleshooting solution
As a quick test you can try creating a brand new user on your linux machine, then logging into gnome with that new user (all new config files). You could use this new user to see what default permissions are too.

ALSO, I have seen nautilus freeze quite a bit, but it's usually only for a minute or so. Try letting it sit for a few minutes (5 or 10), don't click around just let it sit. If it hangs for a few minutes, kill it, logout then back into reset your desktop, open nautilus again and click somewhere else (open a different folder), try to narrow down what folder is causing it.

I don't think this error is related, but you should google around and try to fix it anyway:
(nautilus:5550): WARNING **: Unable to add monitor: Not supported

this should not happen, by simply typing 'nautilus &' in the terminal after it crashes should restore all desktop icons and functionality.
 
1 members found this post helpful.
Old 04-03-2010, 12:46 AM   #12
steve francis
LQ Newbie
 
Registered: Apr 2010
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by mreschke View Post
Steve,
I doubt that permission are your problems, but just to get things on the right track, run these commands (substituting your username for 'user' below)

sudo chown root:root /home
sudo chown user:user /home/user -R
sudo chmod 755 /home
sudo chmod 755 /home/user
sudo chmod u+r /home/user -R
sudo chmod u+w /home/user -R

This insures that all your /home/user files have at least R and W for your username
When I type in
Code:
sudo chown user:user /home/user -R
I get the response
Code:
chown: cannot access `/home/user/.gvfs': Permission denied
When I type in either of
Code:
sudo chmod u+r /home/user -R
sudo chmod u+w /home/user -R
I get the response
Code:
chmod: cannot access `/home/user/.gvfs': Permission denied
So I typed in
Code:
ls -ld ~/.gvfs
which returned
Code:
dr-x------ 2 user user 0 2010-04-03 06:20 /home/user/.gvfs
Is this a problem?

Nautilus still not working...
 
Old 04-03-2010, 01:18 AM   #13
10110111
Member
 
Registered: Jun 2008
Location: St.-Petersburg, Russia
Distribution: (B)LFS, Ubuntu, SliTaz
Posts: 402

Rep: Reputation: 51
Quote:
Code:
chown: cannot access `/home/user/.gvfs': Permission denied
This is OK. At least i have the same on my system, and nautilus works properly. Try the "BEST Troubleshooting solution" suggested by mreschke
 
Old 04-03-2010, 03:35 AM   #14
widda
Member
 
Registered: Jun 2009
Location: Uluru
Distribution: Ubuntu 9.04
Posts: 167

Rep: Reputation: 31
thanks mreschke, i'm so looking for things to try..my thread in here on video display size is a new try at an old stubborn problem, and in the process have searched for ways to change permissions, but failed so far.
 
Old 04-03-2010, 03:52 AM   #15
widda
Member
 
Registered: Jun 2009
Location: Uluru
Distribution: Ubuntu 9.04
Posts: 167

Rep: Reputation: 31
access `/home/x/.gvfs': Permission denied
-laptop:~$ sudo chmod u+r /home/d -R
chmod: cannot access `/home/xUh oh, back to square one like other guy/.gvfs': Permission denied
-laptop:~$
 
  


Reply

Tags
gnome, nautilus


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 do I reset permissions? Security problem M$ISBS Linux - Security 6 02-02-2008 03:41 AM
Reset permissions / GDX^ Debian 10 11-28-2007 08:46 AM
how to solve problems with permissions? tuffsach Linux - Newbie 2 10-10-2007 04:50 AM
reset default permissions for /etc tpariel Linux - General 1 08-17-2006 01:47 PM
Reset permissions spaceballs Slackware 8 03-02-2005 02:45 PM


All times are GMT -5. The time now is 05:52 AM.

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