helpful_snippets/Linux/users.md

222 B

Popular Linux user actions

Add nologin, no home user (for running services)

useradd --no-create-home --shell /usr/sbin/nologin user_name

Add user in group

usermod -aG group_name user_name