Users and groups using simple operation

Here Insert Picture Description
To enter this command in command mode
useradd (create a user account name)
-d (home directory)
/ Home placed in this directory
r1 (user)
Here Insert Picture Description
passwd (password)

Here Insert Picture Description
Here Insert Picture Description
Set r2 r3 user and password

Here Insert Picture Description
Check / etc / passwd find this three rows corresponding to the user.

Here Insert Picture Description
Check / etc / shadow to find this three rows corresponding to the user's Here Insert Picture Description
user ID r1 is set to 608, set the time for the October 30, 2018

Here Insert Picture Description
Create a GID of 701, a group named user group accounts renshi of.

Here Insert Picture Description
R1 r2 r3 added into the group renshi.

Here Insert Picture Description
R1 is set for the group administrator

Here Insert Picture Description
R3 remove a user from the group

Here Insert Picture Description
Delete User r3

Guess you like

Origin blog.csdn.net/nnj99/article/details/89319301