Can the /etc/passwd file have a script instead of shell for login-shell on RedHat Enterprise Linux 6.4
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.
Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.