Change Group Ownership of Symbolic Links in Unix or Linux改变组所有权的符号链接在Unix或Linux
chgrp can be used to change group ownership of files and directories in almost all UNIX-variant platforms, including Linux such as Fedora Core, Ubunto and etc. However, if you try to change the group membership of a symbolic link, the group ownership of its referenced or linked file is changed instead. chgrp可以用来改变组所有权的文件和目录在几乎所有的Unix变平台,包括Linux ,如浅顶软呢帽核心, ubunto等,不过,如果你试图改变该集团的成员一个符号链接,该集团的所有权其引用或连结的档案是不是改变了。
This is the default behavior of chgrp command, where dereference option is used by default so that all changes will affect the referent of each symbolic link, rather than the symbolic link itself.这是默认行为chgrp命令,其中dereference选项是默认使用的,使所有的变化会影响指涉每个符号链接,而非符号链接本身。
To change the group ownership of symbolic link, simply use the -h or –no-dereference flag to the chgrp command.要改变组所有权的符号链接,只需使用- h或-无dereference国旗向chgrp命令。
Example:例如:
chgrp -h new_group symbolic_link_name chgrp - H的new_group symbolic_link_name
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 重要说明 :这是一个机器翻译网页是“按原样”提供的担保。 Machine translation may be difficult to understand.机器翻译可能很难理解。 Please refer to请参阅 original English article英文原版的文章 whenever possible.只要有可能。
Share and contribute or get technical support and help at分享和贡献,或取得技术的支持和帮助,在 My Digital Life Forums 我的数字生活论坛 . 。
Related Articles相关文章
- Create Symbolic Links, Hard Links and Directory Junctions in Vista with MKLINK创建符号链接,硬链接和目录路口,在Vista与mklink
- Add Take Ownership Option To Files and Folders Context Menu in Vista新增的所有权,选择文件和文件夹的上下文菜单在Vista
- Refresh Linux or Unix Path Environmental Variables with rehash刷新的Linux或Unix路径环境变数与翻版
- How to Take Ownership and Grant Permissions in Windows Vista如何采取所有权和授予权限,在Windows Vista
- Running Google Earth on Suse Linux with VMware Google地球运行在SuSE Linux上使用VMware
- (Enhance) Concurrent Capable and Big vg Format Volume Group in AIX Unix (加强)并行能力和大vg格式货量组在AIX操作系统的Unix
- Auto Shutdown and Restart Apache HTTPD Service Daemon at Preset Time自动关机和重新启动的Apache的httpd服务的守护进程在预设时间
- Change User Name on Linux改变使用者名称在Linux上
- How to Mount USB Disk Drive in UNIX or Linux如何挂载的USB磁盘驱动器在UNIX或Linux
- Change and Reset MySQL root Password改变和重置MySQL的root密码


















