I've installed a service which runs as another user (for security reasons I don't want it to run as root) and this user account is locked (i.e. can't login). Obviously now when I run commands to query this service from my user account, the command line tools run as my user and the service is not running as me and so errors are returned. Currently I'm having to use
sudo -H -u username command in order to use the command line tools.
How do I make a service running as a user accessible to another user? I've tried adding my user account to the same group but no luck.