Linuxのgroupmodのコマンド
Linuxのgroupmodのコマンドは、グループ識別コードまたは名前を変更します。
あなたはグループの識別コードまたは名前を変更する必要がある場合は、ジョブを完了するためにgroupmodの命令を使用することができます。
文法
groupmod [-g <群组识别码> <-o>][-n <新群组名称>][群组名称]
パラメータ:
- -g <グループID>グループIDを使用するように設定。
- -oグループ識別コードの再利用。
- グループの名前を設定-n <新しいグループ名>は、使用したいです。
例
グループ名を変更します。
[[email protected] ~]# groupadd linuxso [[email protected] ~]# tail -1 /etc/group linuxso:x:500: [[email protected] ~]# tail -1 /etc/group linuxso:x:500: [[email protected] ~]# groupmod -n linux linuxso [[email protected] ~]# tail -1 /etc/group linux:x:500: