Admin

User Administration

Add Users

$ useradd <username>

Make a Group

$ groupadd <groupname>

Make a User into a SuperUser

$ usermod -g wheel <username>

Get Information on a User

$ id <username>

Add User to Group

$ usermod -aG <groupname> <username>

Lock User Account

$ usermod -L <username>

Example: Web Admin Group

Setting up a user that can run a limited subset of commands with sudo, add a user to that group.

Secure Shell (SSH)

Generate a Key (on Control Station)

$ ssh-keygen

Copy the SSH key to a Workstation

$ ssh-copy-id <workstation_ip_or_localname>

Use SSH Agent for Persistent Key Usage

Last updated

Was this helpful?