Linux ~Group and User~

Manage group and user
1. useradd [User name]
Create new user.

<Option>
-c [Comment] : input comment
-g [Group name] : designate primary group
-d [Home directory] : designate home directory
-u [User ID number] : designate user ID number.
2. usermod [User name]
Modify user account.

<Option>
-c [Comment] : input comment
-g [Group name] : designate primary group
-l [User name] : Change existing user name
-u [User ID number] : change user ID number.
3. userdel [User name]
Delete user account.

<Option>
-r : Delete home directory
4. groupadd [Group name]
Create new group

<Option>
-g [group ID number] : Input group ID number
5. groupmod [Group name]
Change new group

<Option>
-n : Change existing group name
-g  : Change existing group ID number
6. groupdel [Group name]
Delete existing group

That’s all for this topic. If you think this article is beneficial for you, I would be glad if you click below icon for my motivation.
ブログランキング・にほんブログ村へ

コメント