Chinaunix

标题: [已解决]权限问题 [打印本页]

作者: qwer772    时间: 2013-03-18 17:38
标题: [已解决]权限问题
本帖最后由 chenyx 于 2013-03-20 13:36 编辑

   大神们  求解啊!!!  这是啥问题
作者: pix77    时间: 2013-03-18 17:45
root,还能碰到这问题
作者: qwer772    时间: 2013-03-18 17:47
:wink:  对啊   求解
作者: chenyx    时间: 2013-03-18 18:24
楼主是什么系统,我的系统上完全没有问题,没有你的那个报错
作者: qwer772    时间: 2013-03-18 18:26
红旗6.0回复 4# chenyx


   
作者: qwer772    时间: 2013-03-18 18:27
搞不懂为什么会这样.回复 4# chenyx


   
作者: chenyx    时间: 2013-03-18 18:30
没用过那个系统,怎么权限管理这么奇葩啊,root在linux的权限是最高的了
作者: qwer772    时间: 2013-03-18 18:48
对啊  太奇葩了  看样子得换个系统回复 7# chenyx


   
作者: ddd010    时间: 2013-03-19 00:10
是不是你本身就在这个桌面环境里?

你换其他目录使用下这个命令看看。
作者: qwer772    时间: 2013-03-19 12:14
还有这限制吗?  不会是系统的漏洞吧!  回复 9# ddd010


   
作者: jackiebj    时间: 2013-03-19 12:23
selinux??????
作者: qwer772    时间: 2013-03-19 14:53
不是的吧回复 11# jackiebj


   
作者: superwujc    时间: 2013-03-19 16:23
回复 1# qwer772

在我的系统上,试验如下:
  1. [root@localhost ~]# uname -a
  2. Linux localhost.localdomain 2.6.32-358.el6.x86_64 #1 SMP Fri Feb 22 00:31:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
  3. [root@localhost ~]#
  4. [root@localhost ~]#
  5. [root@localhost ~]# whoami
  6. root
  7. [root@localhost ~]#
  8. [root@localhost ~]# id
  9. uid=0(root) gid=0(root) groups=0(root) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
  10. [root@localhost ~]#
  11. [root@localhost ~]#
  12. [root@localhost ~]# ls -ld test
  13. drwxr-xr-x. 2 root root 4096 Mar 20 00:15 test
  14. [root@localhost ~]#
  15. [root@localhost ~]#
  16. [root@localhost ~]# rm -rf test
  17. rm: cannot remove `test': Operation not permitted
复制代码
何也?貌似自ext2之后的继承版文件系统有一个名为"ext2 extended file attributes",即ext2扩展文件属性的东西,是通过在inode中添加一些flags来实现的,看是否这样:
  1. [root@localhost ~]# lsattr -d test
  2. ----i--------e- test
  3. [root@localhost ~]#
  4. [root@localhost ~]#
  5. [root@localhost ~]# chattr =e test
  6. [root@localhost ~]#
  7. [root@localhost ~]#
  8. [root@localhost ~]# rm -rf test
  9. [root@localhost ~]#
  10. [root@localhost ~]#
  11. [root@localhost ~]# echo $?
  12. 0
  13. [root@localhost ~]#
复制代码
本人能够想到的就是这种情况,看楼主是否符合,若果真如此,详情参见lsattr和chattr的手册页



   
作者: starlingruoxue    时间: 2013-03-19 18:12
/root这个文件夹已经存在了?看下这个文件夹的权限
作者: hml1006    时间: 2013-03-19 18:28
加 -R 递归目录
作者: qwer772    时间: 2013-03-19 18:49
就碰到这个文件不能改,桌面上也不可以建文件,其他的可以改。其实不懂你打这些的意思 俺是新手。回复 13# superwujc


   
作者: qwer772    时间: 2013-03-19 18:51
没用滴  回复 15# hml1006


   
作者: zjhxmjl    时间: 2013-03-19 20:31
本帖最后由 zjhxmjl 于 2013-03-19 20:37 编辑
qwer772 发表于 2013-03-18 17:38
大神们  求解啊!!!  这是啥问题

请贴上如下内容:
  1. lsattr -d /root/Desktop/
复制代码

作者: qwer772    时间: 2013-03-19 21:22
回复 19# zjhxmjl


   
作者: zjhxmjl    时间: 2013-03-20 08:09
本帖最后由 zjhxmjl 于 2013-03-20 08:10 编辑
qwer772 发表于 2013-03-19 21:22
回复 19# zjhxmjl

看来你没仔细看我的回复及给你的提示!{:3_183:} (解决方法在所示图片中)
作者: zongg    时间: 2013-03-20 08:53
看看是不是有隐藏权限,lsatter /root/Desktop
作者: qwer772    时间: 2013-03-20 09:57
俺知道了  感谢大神指导! 是我不细心回复 21# zjhxmjl


   
作者: qwer772    时间: 2013-03-20 09:58
恩  是的 回复 22# zongg


   
作者: zjhxmjl    时间: 2013-03-20 10:45
回复 23# qwer772

恭喜,请将标题修改为“已解决”
   
作者: 老子是容嬷嬷    时间: 2013-03-20 11:22
是有charrt进行了限制了吧
作者: wenhq    时间: 2013-03-20 11:38
还有setfacl和getfacl别忘记了啊。




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2