# useradd -m commonuser
# echo 123 | passwd commonuser --stdin
useradd nginx -s /sbin/nologin -M
groupadd nginx
useradd -g nginx -d /home/nginx nginx
passwd nginx
userdel -r test1
# useradd -m commonuser
# echo 123 | passwd commonuser --stdin
useradd nginx -s /sbin/nologin -M
groupadd nginx
useradd -g nginx -d /home/nginx nginx
passwd nginx
userdel -r test1