user
Add user to group
usermod -aG docker www-data
Create user
useradd --no-create-home --shell /bin/false node_exporter
Block user
Delete user
Change user password
Delete user
List local users
cat /etc/passwd | grep "/home" |cut -d: -f1
User info
List logged in users
List logged in users
List logged in users
History of logins
History of failed logins
Chnage user password
Add user to a group
usermod -a -G <group> <username>
Add new user
Add new user (Debian)
Add new service user
useradd -c -s /sbin/nologin <username>
Add new user and set password (for script)
adduser --no-create-home --gecos "" --disabled-password svc_testshell
chpasswd <<<"svc_testshell:P@ssword"
Last login attempts
last (/var/log/wtmp)
lastlog (/var/log/lastlog)
aulastlog (/var/log/audit/audit.log)
Last bad login attempts