Chinaunix

标题: 看不到文件 [打印本页]

作者: yuandeshen    时间: 2012-03-19 11:13
标题: 看不到文件
home下有个文件temp,我直接用ls ,可以看到temp下的文件,

但是我cd tmp进入目录ll,看不到任何文件,如下图所示


temp.jpg (18.2 KB, 下载次数: 53)

temp.jpg

作者: taojie2000    时间: 2012-03-19 11:17
回复 1# yuandeshen


    在temp 目录下 你 ls 一个文件名  看显示什么
作者: yuandeshen    时间: 2012-03-19 12:13
回复 2# taojie2000



   

看不到属性
作者: yuandeshen    时间: 2012-03-19 14:18
本帖最后由 yuandeshen 于 2012-03-19 14:26 编辑

补充一点,可以用root看到文件,但是用clliu这个用户就无法看见。然后我把这个目录下的文件转移到另一个目录,clliu这个用户也不能看到
作者: chenyx    时间: 2012-03-19 14:20
你先进入/home/clliu,然后执行ls -ld temp
结果贴上来
作者: yuandeshen    时间: 2012-03-19 14:28
回复 5# chenyx


   
作者: chenyx    时间: 2012-03-19 14:31
不应该啊,clliu用户是那个temp目录的owner,有权限看到temp下的内容的
作者: taojie2000    时间: 2012-03-19 14:37
回复 6# yuandeshen


    目录下 那用户新建个文件  能看到吗?
作者: yuandeshen    时间: 2012-03-19 14:56
本帖最后由 yuandeshen 于 2012-03-19 14:59 编辑

回复 8# taojie2000


    看不到,
作者: yuandeshen    时间: 2012-03-19 14:56
回复 7# chenyx


    对啊,我也搞不清楚,我把这些文件copy到其他地方,clliu这个用户也看不到
作者: chenyx    时间: 2012-03-19 15:03
不应该啊,你在用户自己的家里面放文件,用户还看不到,那不是出鬼了
[chenyx@localhost ~]$ ll temp
总计 4.0K
-rwx------ 1 root root 1.4K 03-19 15:11 hosts
[chenyx@localhost ~]$ ll -ld temp
drwx------ 2 chenyx chenyx 4.0K 03-19 15:11 temp

作者: taojie2000    时间: 2012-03-19 15:08
回复 9# yuandeshen


    该目录是你自己创建的吗?  还是某些程序的?   

    这玩意奇怪...
作者: yuandeshen    时间: 2012-03-19 15:08
回复 12# taojie2000

对啊,你看我的截图,我就是用那个用户创建的


   
作者: yuandeshen    时间: 2012-03-19 15:09
回复 11# chenyx


只有那个目录下才这样

   
作者: hardie    时间: 2012-03-20 10:05
lsattr




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