6行目: | 6行目: | ||
;-e | ;-e | ||
:The date on which the user account will be disabled | :The date on which the user account will be disabled | ||
;-L | |||
:Lock a user's password | |||
$ usermod -G sudo hoge | $ usermod -G sudo hoge | ||
$ usermod -l new_name | $ usermod -l new_name |
2019年3月1日 (金) 10:53時点における版
オプション
- -G
- A list of supplementary groups
- -l
- The log in name of the user will be changed. Nothing else is changed
- -e
- The date on which the user account will be disabled
- -L
- Lock a user's password
$ usermod -G sudo hoge $ usermod -l new_name