Create a User failed

image

For some security reasons xFusionCorp Industries security team has decided to use custom Apache users for each web application hosted there rather than its default user. Since this is going to be the Apache user so it shouldn’t use the default home directory. Create the user as per requirements given below:

a. Create a user named kirsty on the App server 3 in Stratos Datacenter.

b. Set UID to 1948 and its home directory to /var/www/Kirsty

Team, please let me know why it is failed. I have set home directory properly

[root@stapp03 ~]# useradd kirsty -d /var/www/kristy -u 1948
[root@stapp03 ~]# id kirsty
uid=1948(kirsty) gid=1948(kirsty) groups=1948(kirsty)
[root@stapp03 ~]# cat /etc/passwd | grep kirsty
kirsty:x:1948:1948::/var/www/kristy:/bin/bash

kindly ignore…I have mentioned wrong home directory,instead of /var/www/kirsty gave as /var/www/kristy