[
https://issues.apache.org/jira/browse/SOLR-9754?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Christine Poerschke updated SOLR-9754:
--------------------------------------
Component/s: scripts and tools
> No shell specified in the su call
> ---------------------------------
>
> Key: SOLR-9754
> URL: https://issues.apache.org/jira/browse/SOLR-9754
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Components: scripts and tools
> Affects Versions: 5.5.3
> Environment: Ubuntu Linux 16.04 LTS
> Reporter: Anton Boritskiy
>
> The tarball version downloaded from
> [here|http://www.apache.org/dyn/closer.lua/lucene/solr/5.5.3]
> has problem inside the {{bin/init.d/solr}} file.
> the very last lines of the file look like
> {code}
> ...
> if [ -n "$RUNAS" ]; then
> su -c "SOLR_INCLUDE=\"$SOLR_ENV\" \"$SOLR_INSTALL_DIR/bin/solr\" $SOLR_CMD"
> - "$RUNAS"
> else
> SOLR_INCLUDE="$SOLR_ENV" "$SOLR_INSTALL_DIR/bin/solr" "$SOLR_CMD"
> fi
> {code}
> the solr sturt up just breaks when {{solr}} user has {{/bin/false}} shell
> assigned to it.
> Suggested change is to make that file look like
> {code}
> ...
> if [ -n "$RUNAS" ]; then
> su -s "/bin/sh" -c "SOLR_INCLUDE=\"$SOLR_ENV\"
> \"$SOLR_INSTALL_DIR/bin/solr\" $SOLR_CMD" - "$RUNAS"
> else
> SOLR_INCLUDE="$SOLR_ENV" "$SOLR_INSTALL_DIR/bin/solr" "$SOLR_CMD"
> fi
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]