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

用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

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值