Add new users under ubuntu and kick out online users

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

Add new users under ubuntu and kick out online users
Add a new project to SVN under Ubuntu
[python] python2 and python3 under ubuntu
Ubuntu creates users adduser and useradd
Install and deploy Gerrit under Ubuntu
Redis installation under ubuntu and windows
Install nodejs and npm under Ubuntu 16.04
Coexistence of CUDA8.0 and CUDA9.0 under Ubuntu 16.04
Compile and install QEMU under Ubuntu
51 MCU program development and download under Ubuntu
Installation and uninstallation of CUDA under Ubuntu 16.04
How to add users to Sudoers in Ubuntu
DLNA/UPnP Server installation and configuration under Ubuntu 12.04
Configure node js and npm under Ubuntu 14.04
Installation of pulseaudio and API usage under Ubuntu 12.04
Steps to add toolkit for Matlab_Linux under ubuntu
Kaldi installation and configuration graphic tutorials under Ubuntu
Audio and video editing tool stack under ubuntu
How to add and delete users on CentOS 8