Page 1 of 1

[Solved] Unimus service under regular user

Posted: Mon Mar 21, 2022 11:05 am
by nick147
Hello,

I would like to know, is it possible to run unimus service under regular user, not root on Debian?

Code: Select all

 ps aux | grep unimus
root       17730  0.6  2.1 15670736 1409004 ?    Ssl  Mar17  35:28 /usr/bin/java -Xms256M -Xmx768M -Djava.security.egd=file:/dev/./urandom -jar /opt/unimus/Unimus.jar
If answer is Yes, how to correctly do it?

Thanks.

Re: [Solved] Unimus service under regular user

Posted: Mon Mar 21, 2022 4:34 pm
by Tomas
nick147 wrote:
Mon Mar 21, 2022 11:05 am

I would like to know, is it possible to run unimus service under regular user, not root on Debian?

If answer is Yes, how to correctly do it?
Hi. Yes, this is possible. However, parts of Unimus will not work when running as a non-root user. On Linux, a raw-type socket is required when sending ICMP packets, and only root can create raw sockets. Since Unimus needs to send out ping packets to the network, it needs to run as root.

If you are OK with parts of the application not working, we have an article on our Wiki that shows how to run Unimus as non-root: https://wiki.unimus.net/display/UNPUB/R ... s+non-root

Please note this is not recommended (nor supported) by us, as it can create exceptions and errors in the application due to failed actions because of lack of permissions. Basically, any features of Unimus that require sending our ICMP packets will not work and will throw errors.