Regarding create non-interactive shell for user james

I think i did correct only, but task failed with error “User james does not have non-interactive shell”
image
james

[[email protected] ~]# cat /etc/passwd | grep james
[[email protected] ~]# grep james /etc/passwd /etc/shadow
/etc/passwd:james:x:999:997::/home/james:/bin/nologin
/etc/shadow:james:!!:18328::::::

can someone please check.

shell should be /sbin/nologin