On 12/11/2019 9:17 AM, rhys J wrote:
When I try to su solr, using the password mentioned here:
https://lucidworks.com/post/securing-solr-basic-auth-permission-rules/, i
get an authentication failure.
That page talks about setting up authentication for HTTP access to the
Solr API. It has nothing at all to do with the OS user created by the
service install script.
When the service install creates the OS user for the service, it is
created in such a way that its password is disabled. You can't use a
password for that user. On my Linux machine with a Solr service
installed, the hashed password entry in /etc/shadow is * - an asterisk.
Here is an excerpt from the man page for shadow:
---
If the password field contains some string that is not a valid result of
crypt(3), for instance ! or *, the user will not be able to use a unix
password to log in (but the user may log in the system by other means).
---
I'm trying to chase down a bug, and I need to be able to see the results of
some commands from the user solr's perspective.
If you do the su as root, you won't need a password. Or you can use
sudo to do what you need.
Thanks,
Shawn