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
總結
以上是生活随笔為你收集整理的linux find 权限不够,超级用户find: `/home/pipi/.gvfs': 权限不够的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 0592是哪里的区号
- 下一篇: linux编写一个简单的端口扫描程序,小