Phác Chí Huấn
New member
What is the command to create user in Linux server?
Answer
To add a new user: Use the
command useradd test
(“test” is the new user’s name). Use sudo useradd test if you lack the proper privileges. To create a user with a home directory: Use sudo useradd -m test or sudo useradd -m -d /test test to change the default directory.
Answer
To add a new user: Use the
command useradd test
(“test” is the new user’s name). Use sudo useradd test if you lack the proper privileges. To create a user with a home directory: Use sudo useradd -m test or sudo useradd -m -d /test test to change the default directory.