Enter "useradd userfor2015" and press Enter to add an account named "userfor2015". By default, a group with the same name will be added and a new directory with the same name will be created in /home.
Note: The account "userfor2015" is locked at this time.
(Recommended tutorial: centos usage tutorial)
Then enter "passwd userfor2015" and press Enter.
To modify the password of user "userfor2015" (Linux does not display the password), you need to enter the same password twice.
Related video tutorial recommendations: linux video tutorial
The above is the detailed content of How to create a user in centos. For more information, please follow other related articles on the PHP Chinese website!