LinuxSir.cn,穿越时空的Linuxsir!

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

有root不能删除的文件?

[复制链接]
发表于 2007-3-17 00:16:40 | 显示全部楼层 |阅读模式
Gentoo / # su
Gentoo / # rm share.old/ -fr
rm: 无法删除 “share.old//omf/file-roller/file-roller-zh_CN.omf”: 权限不够
rm: 无法删除 “share.old//omf/file-roller/file-roller-C.omf”: 权限不够
rm: 无法删除 “share.old//file-roller/glade/file-roller-extract.glade”: 权限不够
rm: 无法删除 “share.old//file-roller/glade/file-roller.glade”: 权限不够
rm: 无法删除 “share.old//gnome/help/file-roller/C/legal.xml”: 权限不够
rm: 无法删除 “share.old//gnome/help/file-roller/C/figures/file-roller_uparrow.png”: 权限不够
rm: 无法删除 “share.old//gnome/help/file-roller/C/figures/file-roller_main_window.png”: 权限不够
rm: 无法删除 “share.old//gnome/help/file-roller/C/figures/file-roller_leftarrow.png”: 权限不够
rm: 无法删除 “share.old//gnome/help/file-roller/C/figures/file-roller_rightarrow.png”: 权限不够
rm: 无法删除 “share.old//gnome/help/file-roller/C/figures/file-roller_home.png”: 权限不够
rm: 无法删除 “share.old//gnome/help/file-roller/C/file-roller.xml”: 权限不够
rm: 无法删除 “share.old//gnome/help/file-roller/zh_CN/figures/file-roller_uparrow.png”: 权限不够
rm: 无法删除 “share.old//gnome/help/file-roller/zh_CN/figures/file-roller_main_window.png”: 权限不够
rm: 无法删除 “share.old//gnome/help/file-roller/zh_CN/figures/file-roller_leftarrow.png”: 权限不够
rm: 无法删除 “share.old//gnome/help/file-roller/zh_CN/figures/file-roller_rightarrow.png”: 权限不够
rm: 无法删除 “share.old//gnome/help/file-roller/zh_CN/figures/file-roller_home.png”: 权限不够
rm: 无法删除 “share.old//gnome/help/file-roller/zh_CN/file-roller.xml”: 权限不够
rm: 无法删除 “share.old//icons/hicolor/48x48/apps/file-roller.png”: 权限不够
rm: 无法删除 “share.old//locale/am/LC_MESSAGES/file-roller.mo”: 权限不够
rm: 无法删除 “share.old//locale/be/LC_MESSAGES/file-roller.mo”: 权限不够
rm: 无法删除 “share.old//locale/bg/LC_MESSAGES/file-roller.mo”: 权限不够
rm: 无法删除 “share.old//locale/ar/LC_MESSAGES/file-roller.mo”: 权限不够
rm: 无法删除 “share.old//locale/ca/LC_MESSAGES/file-roller.mo”: 权限不够
rm: 无法删除 “share.old//locale/bn/LC_MESSAGES/file-roller.mo”: 权限不够
rm: 无法删除 “share.old//locale/az/LC_MESSAGES/file-roller.mo”: 权限不够
rm: 无法删除 “share.old//locale/br/LC_MESSAGES/file-roller.mo”: 权限不够
rm: 无法删除 “share.old//locale/bs/LC_MESSAGES/file-roller.mo”: 权限不够
rm: 无法删除 “share.old//locale/da/LC_MESSAGES/file-roller.mo”: 权限不够
rm: 无法删除 “share.old//locale/de/LC_MESSAGES/file-roller.mo”: 权限不够
rm: 无法删除 “share.old//locale/cs/LC_MESSAGES/file-roller.mo”: 权限不够
rm: 无法删除 “share.old//locale/cy/LC_MESSAGES/file-roller.mo”: 权限不够
rm: 无法删除 “share.old//locale/el/LC_MESSAGES/file-roller.mo”: 权限不够
rm: 无法删除 “share.old//locale/dz/LC_MESSAGES/file-roller.mo”: 权限不够
rm: 无法删除 “share.old//locale/bn_IN/LC_MESSAGES/file-roller.mo”: 权限不够
rm: 无法删除 “share.old//locale/en_CA/LC_MESSAGES/file-roller.mo”: 权限不够
rm: 无法删除 “share.old//applications/file-roller.desktop”: 权限不够
Gentoo / # ls -l share.old/
总计 0
drwxr-xr-x  2 root root  88 03-06 20:02 applications
drwxr-xr-x  3 root root  72 02-10 16:01 file-roller
drwxr-xr-x  3 root root  72 02-07 19:14 gnome
drwxr-xr-x  3 root root  72 03-06 20:02 icons
drwxr-xr-x 19 root root 456 03-06 20:02 locale
drwxr-xr-x  3 root root  80 03-06 20:02 omf
Gentoo / # ls -l share.old/applications/file-roller.desktop
ls: 无法访问 share.old/applications/file-roller.desktop: 权限不够

如上,是不是我的硬盘有坏道了?还是什么原因,从来没有遇到过。。。文件系统为reiserfs。。。:ask
发表于 2007-3-17 07:18:12 | 显示全部楼层
以前pandalcg在reiserfs上遇到过类似问题
回复 支持 反对

使用道具 举报

发表于 2007-3-17 08:33:49 | 显示全部楼层
加了immutable的文件根用户是不能修改、删除、重命名或链接的。
回复 支持 反对

使用道具 举报

发表于 2007-3-17 08:42:10 | 显示全部楼层
估计得修改文件属性吧。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-3-17 10:54:45 | 显示全部楼层
谢谢楼上的各位。那么要怎么修改该属性为正常值,记得以前dos下有个attrib 的命令,在这里要怎么做呢?
还有问题的开始是(不知有没有关系)我移动/usr 到一个独立分区,没有事先删除干净/usr目录,就mount分区到/usr目录,结果就这样了改名和移动操作都可以就是不能删除。。。
回复 支持 反对

使用道具 举报

发表于 2007-3-17 11:15:13 | 显示全部楼层
你是用reiserfs作为根分区吗?  我不知道 如何在/etc/fstab中引导 文件系统为reiserfs的根分区,能贴一下引导 文件吗?
还有问题的开始是(不知有没有关系)我移动/usr 到一个独立分区,没有事先删除干净/usr目录,就mount分区到/usr目录,结果就这样了改名和移动操作都可以就是不能删除。。。
直接移动 /usr到一个独立分区后,要改/etc/fstab文件,并做必要的链接后,才可行吧?

用mount分区到/usr目录,这样不妥吧?

---刚学,想的不一定对.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-3-17 12:03:14 | 显示全部楼层
Post by dgkgnrt
能贴一下引导 文件吗?.

fstab我的问题应该和这个没关系吧
Gentoo ~ # cat /etc/fstab
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
/dev/sda2                 /                            reiserfs   noatime,notail   0 0
#NOTE: The next line is critical for boot!
#proc                    /proc          proc            defaults         0 0
#sysfs                    /sys           sysfs           defaults        0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
#/dev/zzlvg/swap         swap            swap             defaults       1 1
tmpfs                    /tmp            tmpfs            defaults       0 0
tmpfs                    /dev/shm        tmpfs            nodev,nosuid,noexec  0 0
proc                     /proc           proc             defaults       0 0
sysfs                    /sys            sysfs            defaults       0 0
none                     /proc/bus/usb   usbfs            defaults       0 0
#/dev/fd0               /mnt/floppy     auto             noauto         0 0
/dev/sda3                 /usr                         reiserfs   noatime,notail   0 0
/dev/sda9                 /usr/portage                 reiserfs   noatime,notail   0 0
# <fs>                  <mountpoint>    <type>          <opts>          <dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
# Logical volumes on sda3,sda6, ... by zzl
/dev/zzlvg/distfiles      /usr/portage/distfiles       reiserfs   noatime,notail   0 0
/dev/zzlvg/movies         /root/Movies                 reiserfs   noatime,notail   0 0
/dev/zzlvg/swap            swap                        swap       defaults         1 1
# mount others by zzl  
/dev/sda5                 /mnt/win2lin                     vfat     codepage=936,iocharset=utf8 0 0
/dev/sda8                 /root/Backup                     reiserfs  noatime,notail   0 0
/dev/sdb1                 /mnt/windows/study               ntfs      nls=utf8        0 0
/dev/sdb2                 /mnt/windows/media               ntfs      nls=utf8        0 0
/dev/sdb3                 /mnt/windows/superiso            ntfs      nls=utf8        0 0
/dev/sdb4                 /mnt/windows/backup              ntfs      nls=utf8        0 0
回复 支持 反对

使用道具 举报

发表于 2007-3-17 15:19:23 | 显示全部楼层
我想看一下.准备用用reiserfs的文件系统的分区作为根分区和引导分区
多谢奉献!
回复 支持 反对

使用道具 举报

发表于 2007-3-18 06:07:42 | 显示全部楼层
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#

# <fs>                  <mountpoint>    <type>          <opts>          <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda2               /               reiserfs        defaults        0 1
/dev/hda3               none            swap            sw              0 0
/dev/hda8               /usr            reiserfs        defaults        0 0
/dev/cdroms/cdrom0      /mnt/cdrom      iso9660         noauto,ro       0 0
#/dev/fd0               /mnt/floppy     auto            noauto          0 0

# NOTE: The next line is critical for boot!
proc                    /proc           proc            defaults        0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
shm                     /dev/shm        tmpfs           nodev,nosuid,noexec    0 0
回复 支持 反对

使用道具 举报

发表于 2007-3-18 11:05:35 | 显示全部楼层
NOTE: The next line is critical for boot

critical -----在这里它是什么意思?1。批判的 2。关键的 3。严重的 4。 危险的 5。不稳定的 6。 有判断力的 7。。。。。
回复 支持 反对

使用道具 举报

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

本版积分规则

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