xeoma install as non-root uid?

Xeoma Software

Moderators: Admin_N, Administrator, Admin_P, Admin_K

xeoma install as non-root uid?

Postby ltgcc » Mon Dec 27, 2021 11:57 pm

Good day. I hope the holidays finds everyone well.

Previous versions of xeoma (on debian and other linux) I understand that not 'installed' could be run as a non-root user. However, if installed as a server, xeoma had to be installed and run as root. In reading other posts from the last year or so I have the impression that this shortcoming has been rectified?

Can Xeoma be installed and run as a service using say, a uid/gid of xeoma:xeoma ?

thank you.
ltgcc
 
Posts: 7
Joined: Wed Aug 12, 2020 4:56 pm

Re: xeoma install as non-root uid?

Postby Admin_K » Thu Dec 30, 2021 1:36 pm

Hello!

If you use Xeoma's installation tools, then it could be installed with the 'root' permissions.

But you can also create your own autostart script to run Xeoma where you can specify all necessary permissions.
Admin_K
 
Posts: 342
Joined: Tue Apr 07, 2015 2:20 pm

Re: xeoma install as non-root uid?

Postby wcurtiss » Fri Feb 11, 2022 7:42 pm

Hi, could either of you explain how to do this on Ubuntu? Thanks.
wcurtiss
 
Posts: 9
Joined: Sun Jun 11, 2017 8:00 am

Re: xeoma install as non-root uid?

Postby ltgcc » Sat Feb 12, 2022 4:42 am

I ended up not going this direction. I've sort of decided that in general the fight to non-root is an uphill trench battle that's just not worth the fight anymore. Plus, as far as a given specific app (such as xeoma) every time you upgrade or have to re-install, you have to non-root it again and again and again. Life is too short.

OK, down off the soapbox. Here's the approach I was going to use.
[b]
NOTE: I HAVE NOT ACTUALLY DONE ANY OF THIS. SO ALL CONCEIVABLE AND INCONCEIVABLE DISCLAIMERS APPLY. YMMV. I TAKE NO RESPONSIBILITY FOR ANYTHING AT ALL
AS ALWAYS DO YOUR OWN DUE DILIGENCE!!
YADAYADA ETC AND SO FORTH.[/b]

Here's the approach I was going to use.

* create system user and group xeoma/xeoma. I put the 'home' as /opt/xeoma

* Install xeoma something like this:

[code]./xeoma.app -install -hiddenmode \
-installdir /opt/xeoma \
-programdir /opt/xeoma/bin \
-noscan \
-startdelay 10 \
-log[/code]

Note that for some reason that makes sense to somebody somewhere the xeoma executable is put in /root/bin/Xeoma/xeoma. YMMV.

* correct the ownerships:
[code]
# chown -R xeoma:xeoma /opt/xeoma[/code]

here's the key (one of them anyway). Set up the systemd unit to run as xeoma/xeoma:

/etc/systemd/system/XeomaCoreService.service
[code]
[Unit]
Description=XeomaCore
After=syslog.target

[Service]
Type=simple
[b]User=xeoma
Group=xeoma[/b]
PIDFile=/var/run/XeomaCore.pid
ExecStart='/root/bin/Xeoma/xeoma' -service -startdelay 10
Restart=always
KillMode=process

[Install]
WantedBy=multi-user.target[/code]

Good luck!
ltgcc
 
Posts: 7
Joined: Wed Aug 12, 2020 4:56 pm

Re: xeoma install as non-root uid?

Postby Admin_K » Thu Mar 24, 2022 3:45 pm

[quote="wcurtiss"]Hi, could either of you explain how to do this on Ubuntu? Thanks.[/quote]

Hi,

If you'd like to edit autostart script, you can find it here:

Autostart script for Linux
Depending on the operating system in use, autostart script can be found in:
etc/init.d
etc/init
/etc/systemd/system/

If you need to edit the script (for example, to increase delay before start) you need to do that with admin rights. Xeoma server must be off, otherwise the changes won’t be saved.

Xeoma settings paths can be checked here: [url]https://felenasoft.com/xeoma/en/articles/settings/[/url]
Admin_K
 
Posts: 342
Joined: Tue Apr 07, 2015 2:20 pm


Return to Xeoma - General discussion

Who is online

Users browsing this forum: No registered users and 11 guests

cron