LinuxSir.cn,穿越时空的Linuxsir!

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

符号文件怎么去写属性

[复制链接]
发表于 2007-12-14 10:34:20 | 显示全部楼层 |阅读模式
现在有一个符号连接:
ll /usr/bin/java
lrwxrwxrwx 1 root root 32 2007-12-14 18:30 /usr/bin/java -> /usr/lib/jvm/java-6-sun/bin/java

如果我用chmod去掉写其属性的话,那么去掉属性的文件其实是其指向的文件,那么如何才能去掉符号连接本身的属性呢?
发表于 2007-12-14 12:05:42 | 显示全部楼层
man chmod 中有如下的说明:

  1.        chmod never changes the permissions of symbolic links; the chmod system
  2.        call  cannot change their permissions.  This is not a problem since the
  3.        permissions of symbolic links are never used.  However, for  each  sym-
  4.        bolic link listed on the command line, chmod changes the permissions of
  5.        the pointed-to file.
复制代码
回复 支持 反对

使用道具 举报

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

本版积分规则

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