文件名: abc
权限:-rwxrwxrwx
壳: 克什
我以该文件所有者的用户身份登录。
文件内容
AccessTime = 20130424-161120 ActualShmKeyDec = 1090650862 ActualShmKeyHex = 0x410202ee Dev = 4457198 Inode = 64770 FtokShmKeyDec = 1090650862 FtokShmKeyHex = 0x410202ee LastBootTime = 2013-04-24--11:41 UptimeMins = 4:30,-3--users UptimeSecs = 16253.96
AccessTime = 20130424-170309 ActualShmKeyDec = 1090650862 ActualShmKeyHex = 0x410202ee Dev = 4457198 Inode = 64770 FtokShmKeyDec = 1090650862 FtokShmKeyHex = 0x410202ee LastBootTime = 2013-04-24--11:41 UptimeMins = 5:22,-3--users UptimeSecs = 19362.82
AccessTime = 20130424-173741 ActualShmKeyDec = 1090650862 ActualShmKeyHex = 0x410202ee Dev = 4457198 Inode = 64770 FtokShmKeyDec = 1090650862 FtokShmKeyHex = 0x410202ee LastBootTime = 2013-04-24--11:41 UptimeMins = 5:57,-2--users UptimeSecs = 21434.49
AccessTime = 20130424-180537 ActualShmKeyDec = 1090650862 ActualShmKeyHex = 0x410202ee Dev = 4457198 Inode = 64770 FtokShmKeyDec = 1090650862 FtokShmKeyHex = 0x410202ee LastBootTime = 2013-04-24--11:41 UptimeMins = 6:25,-1--users UptimeSecs = 23111.03
AccessTime = 20130424-191315 ActualShmKeyDec = 1090650862 ActualShmKeyHex = 0x410202ee Dev = 4457198 Inode = 64770 FtokShmKeyDec = 1090650862 FtokShmKeyHex = 0x410202ee LastBootTime = 2013-04-24--11:41 UptimeMins = 7:32,-1--users UptimeSecs = 27168.95
AccessTime = 20130425-101909 ActualShmKeyDec = 1090650862 ActualShmKeyHex = 0x410202ee Dev = 4457198 Inode = 64770 FtokShmKeyDec = 1090650862 FtokShmKeyHex = 0x410202ee LastBootTime = 2013-04-24--11:41 UptimeMins = 22:38,-2--users UptimeSecs = 81522.99
AccessTime = 20130425-124617 ActualShmKeyDec = 1090650862 ActualShmKeyHex = 0x410202ee Dev = 4457198 Inode = 64770 FtokShmKeyDec = 1090650862 FtokShmKeyHex = 0x410202ee LastBootTime = 2013-04-24--11:41 UptimeMins = 1-day--1:05 UptimeSecs = 90350.71
AccessTime = 20130430-161311 ActualShmKeyDec = 1090650862 ActualShmKeyHex = 0x410202ee Dev = 4457198 Inode = 64770 FtokShmKeyDec = 1090650862 FtokShmKeyHex = 0x410202ee LastBootTime = 2013-04-28--06:01 UptimeMins = 2-days--10:12 UptimeSecs = 209527.13
现在,当我尝试删除此文件时......我收到此错误。
rm: cannot remove `abc': Permission denied
我无法删除该文件有什么原因吗?
答案1
要删除文件,您必须修改包含的内容目录不再列出该文件。看来您对该目录没有 w 权限。
在这种情况下,您无法创建和删除文件,您只能修改/删除文件的内容。