Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools

Matthew Whittington
Matthew Whittington
10,308 Points

SUDO adduser only one or two names allowed

every time i use add user it says "only one or two names allowed" i cant get any further

3 Answers

James Barnett
James Barnett
39,199 Points

The correct syntax is

sudo useradd username

Or alternatively:

sudo useradd -p password username
Matthew Whittington
Matthew Whittington
10,308 Points

The tutorial showed the usage of adduser, i assume this is obsolete?

James Barnett
James Barnett
39,199 Points

It turns out that on Debian-based systems that's a perl script that wraps around useradd to simplify the process.

source: http://linuxers.org/article/differences-between-useradd-and-adduser-commands

James Barnett
James Barnett
39,199 Points

I've updated my answer, sudo useradd username works fine as well.

Still not sure where you are running into difficulties, can you post the commands you are using and time-index in the video you are getting stuck.

Matthew Whittington
Matthew Whittington
10,308 Points

The error seems to have fixed itself for no reason.