How do I add users on Ubuntu Server?

I need to add a user. Then list the available groups on the system. Then add the user to one of the groups. Then set the password.

Related tags: Linux

$> sudo useradd -d /home/ksnyder -m ksnyder -s /bin/bash
$> sudo cat /etc/groupcat
$> sudo usermod -a -G users ksnyder
$> sudo passwd ksnyder

Rating: 1

Propose a different solution...