On an older RedHat EL 4.6 server, /etc/passwd has a script instead of a shell in the login-shell field. This was for security reasons, so the user could not get into bash.
For example: user:x:520:501:comment:/home/:/usr/local/bin/online_users.sh
Is it possible to do on a Red Hat EL 6.4 server? I tried it, but the user gets access denied when she tries to log in. Do I need to set something else up? The user will always be using /bin/bash shell.