Unix-commands-chgrp
提供:Dev Guides
chgrp-Unix、Linuxコマンド
NAME
*chgrp* -グループの所有権を変更します。
概要
chgrp [Options]... {Group | --reference=File} File...
説明
'chgrp’コマンドは、指定された各ファイルのグループ所有権をグループ(グループ名または数値グループIDのいずれか)に変更するか、既存の参照ファイルと同じグループに一致させます。
オプション
Tag | Description |
---|---|
-c—changes | Verbosely describe the action for each File whose group actually changes. |
-f—silent—quiet | Do not print error messages about files whose group cannot be changed. |
-f—no-dereference | Act on symbolic links themselves instead of what they point to. Only available if the 'lchown' system call is provided. |
--reference=FILE | Use the group of the reference FILE instead of an explicit GROUP. |
-v—verbose | Verbosely describe the action or non-action taken for every File. |
-R—recursive | Recursively change the group ownership of directories and their contents. |
例
oracleadminをデータベースディレクトリの所有者にするには
$ chgrp oracleadmin/usr/database
link:/cgi-bin/printpage.cgi [__印刷]