1. Assign users
First log in to the root user (if using: $ sudo su), then add
$ sudo adduser jack
Enter a series of user information as prompted, press Enter without using the default value
2. Add sudo permissions to the user just assigned
$ sudo usermod -G sudo jack
3. Switch users: login user jack
$ su jack
4. Modify the user information in 1
$ sudo chfn
Repeat the steps of entering user information in 1
5. View user information (details view the information entered in the previous step)
$ vi /etc/passwd
6. View user login records
$ sudo apt install finger
$ finger jack
other:
1. View the user user1 group
$ groups user1
2. View the list of all users in the sudo group
$ cat /etc/group | grep sudo
thank:
https://askubuntu.com/questions/360284/how-do-i-change-my-display-name-on-login
http://manpages.ubuntu.com/manpages/trusty/man1/chfn.1.html
https://blog.csdn.net/ezhchai/article/details/79273741