diary/Kojima

・覚え書き

chown/chgrp の -h オプション

シンボリックリンクの所有者やグループを変更する場合は、-h オプションを指定して参照を抑制しないと、 シンボリック自体ではなくリンク先の所有者やグループを変更してしまう。

ちなみに chmod はシンボリックリンクのパーミッションは操作できないらしい

chmod  never changes the permissions of symbolic links; the chmod system
call cannot change their permissions.  This is not a problem  since  the
permissions  of  symbolic  links are never used.

# しばらくハマっていた。。。



トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2021-12-17 (金) 16:35:42