Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

ldrd
1,197 PointsCan't create a user 'mike' because console tell me that it is already exist ? Problem Solved )
Hi, I have a problem. After printing "sudo adduser mike" and pressing enter, adduser told me that user "mike" already exist. What I'm doing wrong ? Thank You
4 Answers
William Li
Courses Plus Student 26,865 PointsFrom Teacher's Note.
Before getting started, or if you are revisiting this video, use the following command to prepare your system to create a new user.
curl -L trhou.se/patch01 | bash
If you receive an error when creating a new user stating that mike is already a user, the above command will remove the user so you can create him again.

ldrd
1,197 PointsThank you for answers, I tried another name option as mike1, after this everything is started working as it shown on video.
William Li
Courses Plus Student 26,865 PointsLada Rodzhers yes, if you look at the content of the script.
#!/bin/bash
echo "==========================================================="
echo "= We are about to ask for your password ="
echo -e "= The default password is \033[38;5;81mmike the frog\033[0m ="
echo "==========================================================="
# This removes the user mike if exists
sudo -k
sudo -- sh -c "/bin/rm -r /home/mike ; /usr/sbin/deluser mike" &> /dev/null
echo "==========================================================="
echo "= Update Successful ! ="
echo "==========================================================="
All it does is to remove the mike user, which solves the problem that prevents you from creating a new user mike; but you don't need this script if you're creating a new user account with a username other than mike
.

Shane Meikle
13,188 PointsHave you tried entering a username that wasn't Mike to see if the error would follow that as well?
ldrd
1,197 Pointsldrd
1,197 PointsThank You I redid this part, and the issue got resolved.