5

chown修改软链接宿主失败

 2 years ago
source link: https://www.lujun9972.win/blog/2019/06/10/chown%E4%BF%AE%E6%94%B9%E8%BD%AF%E9%93%BE%E6%8E%A5%E5%AE%BF%E4%B8%BB%E5%A4%B1%E8%B4%A5/index.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

chown修改软链接宿主失败

在AIX上直接使用 chown 修改软链接文件的宿主发现不成功, chown 命令也没有提示错误

chown默认并不是修改软链接本身的宿主,而是 修改它们所指向的文件

使用 chown-h 选项

sudo chown mqm:mqm -h xxxx

关于 -h 的说明为:

If the file is a symbolic link, change the user ID and/or the group ID of the link itself.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK