LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-18-2014, 10:01 AM   #1
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Rep: Reputation: 51
cannot access .gvfs: Permission denied


hi

On my Wheezy I have the following permissions for .gvfs in the user home directory:
Code:
root@wheezy:/home/user# ls -la
ls: cannot access .gvfs: Permission denied
total 9008
drwxr-xr-x 20 user user    4096 Jun 18 16:48 .
drwxr-xr-x  5 root root    4096 Jan 20 11:33 ..
drwx------  3 user user    4096 Jan 22 11:21 .adobe
-rw-------  1 user user     283 Jun 18 16:48 .bash_history
-rw-r--r--  1 user user     220 Jun  5  2013 .bash_logout
-rw-r--r--  1 user user    3392 Jun  5  2013 .bashrc
drwxr-xr-x  7 user user    4096 Jun 16 16:47 .cache
drwxr-xr-x 17 user user    4096 May 26 13:45 .config
-rw-r--r--  1 user user      12 Jan 30 10:30 date.txt
drwx------  3 user user    4096 Jun  5  2013 .dbus
dr-xr-xr-x  3 user user    4096 Jun 18 16:39 Desktop
-rw-r--r--  1 user user      35 Jun 18 16:48 .dmrc
drwxr-xr-x  2 user user    4096 Jun  5  2013 .fontconfig
drwx------  3 user user    4096 Jan 15 15:39 .gconf
drwx------  3 user user    4096 Jun  5  2013 .gftp
drwx------  3 user user    4096 Jan 23 18:06 .gnome2
d?????????  ? ?    ?          ?            ? .gvfs
drwx------  3 user user    4096 Jun  5  2013 .local
drwx------  3 user user    4096 Jan 17 10:38 .macromedia
drwx------  4 user user    4096 Jun  5  2013 .mozilla
-rw-r--r--  1 user user    2533 Jun  5  2013 panel
-rw-r--r--  1 user user     675 Jun  5  2013 .profile
-rw-------  1 user user     256 Jun  5  2013 .pulse-cookie
drwx------  2 user user    4096 Jun  5  2013 .ssh
drwx------  4 user user    4096 Jun  5  2013 .thumbnails
-rw-------  1 user user     710 May 26 16:06 .viminfo
drwxr-xr-x  2 user user    4096 Jan 15 15:28 .wicd
-rw-------  1 user user      53 Jun 18 16:48 .Xauthority
-rw-------  1 user user    2569 Jun 18 16:49 .xsession-errors
-rw-------  1 user user    4652 Jun 18 16:48 .xsession-errors.old

root@wheezy:/home/user# chown user:user .gvfs
chown: cannot access `.gvfs': Permission denied
Knows anyone howto solve this problem?
 
Old 06-18-2014, 10:06 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,656

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by cccc View Post
hi
On my Wheezy I have the following permissions for .gvfs in the user home directory:
Code:
root@wheezy:/home/user# ls -la
ls: cannot access .gvfs: Permission denied
d?????????  ? ?    ?          ?            ? .gvfs
Knows anyone howto solve this problem?
If you put that error into Google, you would find MANY explanations and solutions...did you try that?

The 'error' is because the .gvfs is a fuse-filesystem mount point, and this is a well known and well documented 'bug'. You can 'fix' it by unmounting that mountpoint (IF it's mounted and IF you can...again, this is a BUG), and changing permissions:
Code:
umount /path/to/.gvfs
find . -inum 554009 -exec rm{} \;
rm -rf .gvfs
..or you can ignore it. Your choice.
 
2 members found this post helpful.
Old 04-06-2015, 06:30 AM   #3
VHS2DVD
LQ Newbie
 
Registered: Apr 2014
Posts: 12

Rep: Reputation: Disabled
Thumbs up Found thread using Google

Quote:
Originally Posted by TB0ne View Post
If you put that error into Google, you would find MANY explanations and solutions...did you try that?

The 'error' is because the .gvfs is a fuse-filesystem mount point, and this is a well known and well documented 'bug'. You can 'fix' it by unmounting that mountpoint (IF it's mounted and IF you can...again, this is a BUG), and changing permissions:
Code:
umount /path/to/.gvfs
find . -inum 554009 -exec rm{} \;
rm -rf .gvfs
..or you can ignore it. Your choice.
I did "put that error into Google" and I did find MANY explanations and solutions including yours. That's why I logged in to answer your point. I did exactly as above. The find . -inum 554009 -exec rm{} \; returned null. rmdir .gvfs worked.

I do not tolerate mysterious directories on my file system that could be Linux bugs or perhaps an attempted invasion by a hacker. Anyway I am not a conspiracy theorist.

Last edited by VHS2DVD; 04-06-2015 at 06:31 AM. Reason: close quotation mark omitted
 
Old 03-20-2021, 02:31 PM   #4
Francewhoa
LQ Newbie
 
Registered: Jul 2009
Location: Powell River, British Columbia, Canada
Distribution: Debian 10 Buster
Posts: 7

Rep: Reputation: 0
Thanks @VHS2DVD This is to confirm that the resolution in your comment #2 worked at https://www.linuxquestions.org/quest...1/#post5189960


Quote:
Originally Posted by TB0ne View Post
Code:
umount /path/to/.gvfs
find . -inum 554009 -exec rm{} \;
rm -rf .gvfs



We face the same challenge here with a Debian 10 Buster. For our challenge we needed to adapt the first command. Below are the three commands that we used.



Command 1

Code:
  umount /path/to/gvfs
Notice in this command 1 above that we removed the dot before "gvfs".


Command 2

Code:
 find . -inum 554009 -exec rm{} \;

This command 2 above removed the corrupted "gvfs" mount. Then somehow "magically" recreated a fresh new "gvfs" folder with the appropriate permissions. Joy In turn, the errors are gone from the logs.


Command 3


Code:
rm -rf .gvfs
We ran this 3rd command but it was not needed. As the ".gvfs" file was not there before or after any of the three commands above.

Last edited by Francewhoa; 03-20-2021 at 02:33 PM.
 
Old 03-20-2021, 04:55 PM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,656

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by Francewhoa View Post
Thanks @VHS2DVD This is to confirm that the resolution in your comment #2 worked at https://www.linuxquestions.org/quest...1/#post5189960
Great..except it wasn't VHS2DVD.
Quote:
We face the same challenge here with a Debian 10 Buster. For our challenge we needed to adapt the first command. Below are the three commands that we used.

Command 1
Code:
  umount /path/to/gvfs
Notice in this command 1 above that we removed the dot before "gvfs".

Command 2
Code:
 find . -inum 554009 -exec rm{} \;
This command 2 above removed the corrupted "gvfs" mount. Then somehow "magically" recreated a fresh new "gvfs" folder with the appropriate permissions. Joy In turn, the errors are gone from the logs.

Command 3
Code:
rm -rf .gvfs
We ran this 3rd command but it was not needed. As the ".gvfs" file was not there before or after any of the three commands above.
So...the same three commands as posted seven years ago? Glad they still worked.
 
  


Reply

Tags
.gvfs, permission denied, wheezy



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
Permission Denied when trying to access USB device dmoyamendez Linux - Newbie 3 11-02-2011 11:21 AM
Permission Access Denied jec25 Linux - Newbie 4 02-10-2010 05:11 PM
du gives error : "du: cannot access `./.gvfs': Permission denied"du: cannot access `. MihirSahasrabudhe Linux - Security 4 12-29-2009 11:10 AM
Help: Access permission denied wegadnie Linux - Newbie 7 11-03-2008 09:18 PM
error: failed to stat /home/username/.gvfs: Permission denied ? Shadowmeph Linux - General 2 09-22-2008 05:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 02:53 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
Open Source Consulting | Domain Registration