The new project shares a ubuntu server, and you need to set up an account and working directory for everyone
The command is as follows:
Create user directory
Add users, and set the working directory and bash environment
Change the password, it cannot be used without changing the password
mkdir /home/test111
useradd -d /home/test111 -s /bin/bash test111
chown test111 /home/test111
passwd test111
123123
delete users:
userdel test111
Set up user groups:
Add a group testss
Add test111 to testss
groupadd -g 999 testss
gpasswd -a test11 tests
View online users:
who```
Kick out users:
Recommended Posts