How can I reset my permissions to solve Nautilus problem?
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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'
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
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.
.....
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
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?
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)
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.
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)
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.
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:~$
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.