免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3407 | 回复: 9
打印 上一主题 下一主题

为什么我的chmod 总是不成功 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-07-07 08:16 |只看该作者 |倒序浏览
#su\r\n#ln -s /usr/bin/file aaa\r\n  这个时候aaa的属性是 lrwxrwxrwx(777)\r\n#chmod 755 aaa\r\n  没有失败提示\r\n  这个时候aaa的属性还是lrwxrwxrwx(777)\r\n\r\n请问如何改这个文件的属性。请高手指点。

论坛徽章:
0
2 [报告]
发表于 2006-07-07 08:48 |只看该作者
软链接只是一个快捷方式,建立后其属性就是这样的,无法更改,运行或调用时会使用源文件的属性;\r\n硬连接才有和源文件一样的属性。

论坛徽章:
0
3 [报告]
发表于 2006-07-07 08:52 |只看该作者
下面是上一个版本的sample,式样我不能改啊!\r\n所以我的目的是一定要把*.so 文件属性变成755\r\n\r\n-r-xr-xr-x   1 root       sys         217088  5月 13日 2004年 libXXXXX.so.1\r\nlrwxr-xr-x   1 root       sys             34 11月 30日  15:09 libXXXXX.so -> /opt/XXXX/libXXXXX.so.1\r\n~~~~~~\r\n755

论坛徽章:
0
4 [报告]
发表于 2006-07-07 09:04 |只看该作者
you can use ln command but WITHOUT the -s option.\r\nIt should be ok!

论坛徽章:
0
5 [报告]
发表于 2006-07-07 09:28 |只看该作者
Thank you very much but when I use the comman like follows\r\n#ln /usr/bin/file aaaaaa\r\nThe system wents wrong.\r\n\r\nAnd of course it goes well with the option \"-s\"

论坛徽章:
0
6 [报告]
发表于 2006-07-07 09:57 |只看该作者
原帖由 gotolj 于 2006-7-7 09:28 发表\r\nThank you very much but when I use the comman like follows\r\n#ln /usr/bin/file aaaaaa\r\nThe system wents wrong.\r\n\r\nAnd of course it goes well with the option \"-s\"
\r\n报的是什么错啊?不会啊。\r\n
  1. mysun # ls -il snap hard soft\r\n3020786100 -rw-r--r--    2 db2inst1 db2grp1    121816 2006-06-29 14:58 hard\r\n3020786100 -rw-r--r--    2 db2inst1 db2grp1    121816 2006-06-29 14:58 snap\r\n2099751829 lrwxrwxrwx    1 root     other           4 2006-07-07 09:44 soft -> snap\r\nmysun #\r\n
复制代码

论坛徽章:
0
7 [报告]
发表于 2006-07-07 10:21 |只看该作者
when without -s\r\n# ln /usr/bin/file aaaa\r\nln: different file system

论坛徽章:
0
8 [报告]
发表于 2006-07-07 11:07 |只看该作者
哦\r\n
man ln\r\nHard links may not span file  systems and may not refer to directories.

论坛徽章:
0
9 [报告]
发表于 2006-07-07 12:02 |只看该作者
sorry , but I just want creat symbolic link.\r\nthe type like     libXXXXX.so -> /opt/XXXX/libXXXXX.so.1\r\nwhen the result without ->,  it is not satisfied the problem

论坛徽章:
0
10 [报告]
发表于 2006-07-07 12:34 |只看该作者
好了,谢谢大家,这个问题算是搞定了.\r\n\r\n跟上司谈过了,就让他这样去吧! 777
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP