Minor bug in ColdFusion 10 Linux Startup Scripts
Running ColdFusion 10 on Linux you might run into an issue when checking the server status, if your ColdFusion user account has a default shell of
/sbin/nologin (this is how your account should be setup for security purposes). So for example when you run:
You get this output
This account is currently not available.
If open up the file
/etc/init.d/coldfusion_10 in an editor you will see that when ColdFusion invokes the status command on linux it doesn't pass a shell to use, so it tries to use
/sbin/nologin which ofcourse fails.
To fix this look for this line:
CFSTATUS='su $RUNTIME_USER -c "cd $CF_DIR/bin; $JAVA_EXECUTABLE -classpath $CLASSPATH $JVM_ARGS_NODEBUG com.adobe.coldfusion.bootstrap.Bootstrap -status"'
su command with
$SUCMDFILE -s /bin/sh - the
CFSTATUS='$SUCMDFILE -s /bin/sh $RUNTIME_USER -c "cd $CF_DIR/bin; $JAVA_EXECUTABLE -classpath $CLASSPATH $JVM_ARGS_NODEBUG com.adobe.coldfusion.bootstrap.Bootstrap -status"'
This was also a problem in prior versions of ColdFusion as well, but it also failed when you tried to start, stop or restart. So it's great they have fixed it for start, stop, restart but they missed the status command.
I have filed this as a bug with Adobe: Bug #3325996
- ColdFusion 10 Security Enhancements Presentation - June 7, 2012
- Upcoming CFML Conferences in April 2017
- CFSummit 2016 Slides
- Securing Legacy CFML - dev.Objective() 2016 Slides
- My CFSummit 2015 Slide Decks
- Adding Chrome Custom Search for CFDocs
- Disable Flash Remoting on ColdFusion Servers
- HackMyCF Adds SSL/TLS Scanner
- IncompatibleClassChangeError after ColdFusion 11 Update 5