Added check for Ubuntu to change the shell to /usr/sbin/nologin