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 trialMatthew Whittington
10,308 PointsSUDO 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
39,199 PointsThe correct syntax is
sudo useradd username
Or alternatively:
sudo useradd -p password username
Matthew Whittington
10,308 PointsThe tutorial showed the usage of adduser, i assume this is obsolete?
James Barnett
39,199 PointsIt 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
39,199 PointsI'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
10,308 PointsThe error seems to have fixed itself for no reason.