nobody:x:99:99:Nobody:/:/sbin/nologin
systemd-network:x:192:192:systemd Network Management:/:/sbin/nologin
dbus:x:81:81:System message bus:/:/sbin/nologin
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
ansible:x:1000:1000::/home/ansible:/bin/bash
steve:x:1001:1001::/home/steve:/bin/bash
apache:x:48:48:Apache:/usr/share/httpd:/sbin/nologin
( yousuf:x:1018:1018::/var/www/yousuf:/bin/bash )
Can someone explain why this failed? I created the user yousuf when the home directory /var/www/yousuf and user ID of 1018 which the question asked but it failed.
first I installed httpd because httpd was not installed on appserver 2
then used this command to create the user ( useradd -u 1018 -b /var/www yousuf )
and it failed.
Any input is welcomed!!