useradd -G sudo,docker alice

Category: Administration

useradd -G sudo,docker alice

Create user and add to supplementary groups

Creates a new user and adds them to multiple groups. Being in 'sudo' allows admin commands; 'docker' allows Docker access.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.