LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 591|回复: 5

[已解决]更新遇到无法删除文件,文件被标记上了s位,无法去除s位也无法删除文件

[复制链接]
发表于 2009-11-4 12:48:41 | 显示全部楼层 |阅读模式
Rt

  1. CP sword-tisch # pwd
  2. /usr/portage/app-dicts/sword-tisch

  3. CP sword-tisch # chmod u-s Manifest/
  4. chmod: changing permissions of `Manifest/': Operation not permitted

  5. CP sword-tisch # chmod g-s Manifest/
  6. chmod: changing permissions of `Manifest/': Operation not permitted

  7. CP sword-tisch # chown root:root Manifest/
  8. chown: changing ownership of `Manifest/': Operation not permitted

  9. CP sword-tisch # rm -rf Manifest/
  10. rm: cannot remove directory `Manifest': Operation not permitted

  11. CP sword-tisch # ls -al Manifest/
  12. total 12K
  13. d--s-ws-w- 2     177   19552 8.0K May 15  1970 ./
  14. drwxr-xr-x 3 portage portage 4.0K May 14  2008 ../

  15. CP sword-tisch # ls -al
  16. total 40K
  17. drwxr-xr-x   3 portage portage 4.0K May 14  2008 ./
  18. drwxr-xr-x 364 portage portage  16K Nov  4 11:09 ../
  19. -rw-r--r--   1 root    root     355 May 14  2008 ChangeLog
  20. d--s-ws-w-   2     177   19552 8.0K May 15  1970 Manifest/
  21. -rw-r--r--   1 root    root     161 May 14  2008 metadata.xml
  22. -rw-r--r--   1 root    root     453 May 14  2008 sword-tisch-1.3.ebuild
复制代码


谁能帮我看下是怎么会是阿?
发表于 2009-11-4 13:45:07 | 显示全部楼层
文件系统损坏?用fsck修复一下
回复 支持 反对

使用道具 举报

发表于 2009-11-4 13:45:23 | 显示全部楼层
lsattr
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-11-4 14:00:27 | 显示全部楼层
Post by wd_afei;2042523
lsattr


CP sword-tisch # lsattr
--------------- ./ChangeLog
--------------- ./metadata.xml
-u-D-ad--jI---- ./Manifest
--------------- ./sword-tisch-1.3.ebuild
回复 支持 反对

使用道具 举报

发表于 2009-11-4 14:44:18 | 显示全部楼层
都提示你了还不会么? google 下不就知道了。。。
用 chattr 改属性,然后就可以操作了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-11-4 14:58:00 | 显示全部楼层
Post by wd_afei;2042549
都提示你了还不会么? google 下不就知道了。。。
用 chattr 改属性,然后就可以操作了


晕,我忘了,以前学过这个。。。。好了解决了,多谢多谢
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表