Hi Vilius, the artemis-service executable is for windows while the best option to run ActiveMQ Artemis as service on linux is using systemd. Your example LGTM indeed yout service configuration includes the `User` and `Group` settings, can you share the SELinux denial message?
Basic SELinux Troubleshooting in CLI https://access.redhat.com/articles/2191331 Regards, Domenico On Mon, 27 Dec 2021 at 20:24, Vilius Šumskas <v.sums...@advantes.tech.invalid> wrote: > I'm trying to run "/var/lib/artemis/bin/artemis-service start" script. > > -- > Vilius > > -----Original Message----- > From: Justin Bertram <jbert...@apache.org> > Sent: Monday, December 27, 2021 8:22 PM > To: users@activemq.apache.org > Subject: Re: running Artemis under non-root user > > Can you clarify how you're trying to run Artemis? I assume you're not just > running the `artemis` command from the bin directory. > > > Justin > > > On Mon, Dec 27, 2021 at 6:34 AM Vilius Šumskas > <v.sums...@advantes.tech.invalid> wrote: > > > Hello, > > > > I‘m trying to configure Artemis 2.20.0 to run under non-root user. So > > far searching on Google produced zero results 😐 > > > > There is a mention of ARTEMIS_USER env variable in broker startup > > script, so I’ve tried to set ARTEMIS_USER=‘myuser‘ in artemis.profile. > > It still runs under root for some reason. > > > > I have also tried to use systemd configuration file from here > > https://medium.com/@hasnat.saeed/setup-activemq-artemis-on-ubuntu-18-0 > > 4-76bb4975308b but still no go. As soon as systemd detects that the > > process runs under root instead of specified user SELinux blocks the > > execution (as expected). > > > > Is there a way to run Artemis under non-root user, and if yes, how? > > > > -- > > Best Regards, > > > > Vilius Šumskas > > Advantes technologies > > IT manager > > >