红联Linux门户
Linux帮助

超级用户find: `/home/pipi/.gvfs': 权限不够

发布时间:2016-06-22 15:45:33来源:blog.csdn.net/pipisorry作者:皮皮

用sudo su命令切换成的根用户,在找某文件的时候报错:
root@ubuntu:/home/pipi# find / -perm -2000  
/sbin/unix_chkpwd 
find: `/home/pipi/.gvfs': 权限不够 


就是普通用户pipi的主目录下的一个叫 .gvfs 的目录,
dr-x------  2 pipi pipi        0  5月  6 10:06 .gvfs

d?????????  ? ?    ?         ?            ? .gvfs

permission denied on .gvfs
When attempting to use the update system I receive a unable to stat and permission denied on /home/whatever/.gvfs
When looking at it with an ls -l it looks like
????????????? ? ? ? ? ? .gvfs
you can not chown, touch, edit, remove, or do anything as the user of the home dir or as root. Both receive a permission denied.
Any suggestions?

Also, I am running OpenSuSE 11.0. I found similar issues in the beta / rc sections of the forum but I am running the actual release for 11.

A solution to remove .gvfs , odd directory:
#umount /home/useraccount/.gvfs
#find . -inum 554009 -exec rm{} \;
After that,
#rm -rf .gvfs


ps:

为什么会出现这种现象?

I think this is a "well-know" bug, reported several times. So, maybe still
not fixed:

***
Bug 467862 - By opening firefox a file ".gvfs" are created in the home
direcotry with no access rights
https://bugzilla.novell.com/show_bug.cgi?id=467862

Bug 368628 - gvfs: Random crashes
https://bugzilla.novell.com/show_bug.cgi?id=368628
***


gvfs,好像是你没用这个用户登录图形界面,用户家目录就没有它

这个目录是挂载点的话,大小为0也没有问题

系统为了安全起见不允许root用户登陆图形界面的,可以终端登陆,再查看/root文件夹,里面好像没什么东东,如果你实在想看/root 文件夹,可以修改权限,不过不建议这么做
以root登陆终端 chmod o+r /root
建议看过后改回chmod o-r /root


本文永久更新地址:http://www.linuxdiyf.com/linux/21750.html