首页 > 代码库 > `/root/.gvfs': Permission deniedcd

`/root/.gvfs': Permission deniedcd

oracle用户使用df -h时报错 

[oracle@cqltjcpt1 ~]$ df -h 
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup-LogVol02
                       47G  4.8G   40G  11% /
tmpfs                 127G  260K  127G   1% /dev/shm
/dev/sda1              98M   46M   48M  50% /boot
/dev/mapper/VolGroup-LogVol00
                     1008M   34M  924M   4% /tmp
/dev/mapper/VolGroup-LogVol01
                       40G  176M   38G   1% /u01

df: `/root/.gvfs‘: Permission denied

/dev/sr0              3.4G  3.4G     0 100% /mnt
[oracle@cqltjcpt1 ~]$ df: `/root/.gvfs‘: Permission deniedcd 


红帽官方说这是个bug

Bug 447314 - df shows /root/.gvfs permission denied

Status:	CLOSED CURRENTRELEASE
Aliases:	 None (edit) 
Product:	Fedora
Component:	gvfs (Show other bugs)
Version(s):	9
Platform:	All Linux
Priority:	low Severity: medium
Target Milestone:	---
Target Release:	---
Assigned To:	Tomá Batek
QA Contact:	Fedora Extras Quality Assurance
URL:	
Whiteboard:	
Keywords:	
Depends On:	
Blocks:	
 	 Show dependency tree / graph



以下是本bug的solution,切换至root用户执行

[oracle@cqltjcpt1 ~]# su - root
[oracle@cqltjcpt1 ~]#umount /root/.gvfs
[root@cqltjcpt1 ~]# rm -rf /root/.gvfs

切换至oracle用户,继续查看 

[oracle@cqltjcpt1 ~]$ df -h 
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup-LogVol02
                       47G   14G   31G  31% /
tmpfs                 127G  680K  127G   1% /dev/shm
/dev/sda1              98M   46M   48M  50% /boot
/dev/mapper/VolGroup-LogVol00
                     1008M  263M  695M  28% /tmp
/dev/mapper/VolGroup-LogVol01
                       40G  176M   38G   1% /u01
/dev/sr0              3.4G  3.4G     0 100% /mnt


本文出自 “O Record” 博客,请务必保留此出处http://evils798.blog.51cto.com/8983296/1420847