Technically your answer is correct. The reason task failed for you is, you created a file /home/kareem manually hence that was considered as home of user kareem because in passwd home directory of user is /home/kareem. We updated checks a little to handle such scenarios and marking your answer as SUCCESS.
Thanks for your reply. Yes After I ran the command to create a user “useradd -M kareem” , I tried to copy a file to that directory to confirm that the directory does not exist.
In spite of using the command “useradd -M kareem” or with other username, the /etc/passwd still shows a /home dir for all users that were created,
Your answer is correct, this option is used to skip the home directory creation i.e in your case /home/kareem directory was not be created but you still see the default home of user in passwd and that is fine as per requirements mentioned in the question.
hello kindly anybody help me with this i was unable to understand the question.
it shows {username}: {hostname}
which hostname should i login and what should i do. @Inderpreet@munjalbarasara@swaroopcs88
Easiest way to finish this task is to ssh into the correct server and then type the command:
’ $ sudo useradd -M user’
press enter and to check type:
’ $ ls -l /home/user’
Any other commands or checks seem superfluous for this task.
Always remember man command is your friend!