Day-01- Kodekloud 100 days challenge

a. Create a user named mariyam on App server 3 within the Stratos Datacenter.

b. Assign a unique UID 1232 and designate the home directory as /var/www/mariyam.

I used the command sudo useradd -u 1232 -d /var/www/mariyam -m mariyam
i ma getting error - user ‘mariyam’ does not exist on App Server 3
Can you pls guide me to resolve the issue , Attached the screenshot FYI

And the error message is absolutely right – you created the user on the wrong host. If you look at your graphic, you’ll see that you ran useradd on the jumphost, not App Server 3. If you look at the list of servers (there’s a link in the same page as what you screen shot), you’ll see this:

So you need to ssh into stapp03, and do the command there.

1 Like

@sravangoudboosa for the task you posted, you would first need to run the following ssh command to get into the right server for the task:

ssh banner@stapp03

You would be prompted for banner’s password, and you should look up the password in the link that @rob_kodekloud has attached.

Cheers.

Thnq , I followed the steps as you suggested and it worked out.

Thnq , I followed the steps as you suggested and it worked out.