Can't run command under /bin/false user
Setting the default shell to /bin/false
means that su
will switch user, and then execute
/bin/false -c /opt/tomcat/bin/startup.sh
You can use the -s
option to su
to override the setting in /etc/passwd
, but this is only permitted if the calling user is root, or the existing entry in /etc/passwd
is listed in /etc/shells
.