openhab / openhabian

openHABian - empowering the smart home, for Raspberry Pi and Debian systems
https://community.openhab.org/t/13379
ISC License
818 stars 251 forks source link

Frontail service: exchange user #316

Closed ThomDietrich closed 3 years ago

ThomDietrich commented 6 years ago

Related to https://github.com/openhab/openhab-linuxpkg/issues/108 Turns out using the user openhab as the user for the frontail service was a bad idea. We should switch to one of the default system users. @mhaack what do you think?

CC @BClark09

mhaack commented 6 years ago

@ThomDietrich I have no strong opinion on that. It might help to mitigate https://github.com/openhab/openhab-linuxpkg/issues/108, but other components like homegear or node red also run with the openhab user. There is no guarantee to solve that.

mstormi commented 4 years ago

still relevant ? If no please close.

ThomDietrich commented 4 years ago

@BClark09 what's the latest on the openHAB side of things?

mstormi commented 4 years ago

pinging @BClark09

mstormi commented 4 years ago

@BClark09 openhab user still in use. What about making frontail PartOf=openhab2.service in systemd ?

BClark09 commented 4 years ago

Sorry, I've let this slip. I agree that using the openhab user might not be the best approach for services that aren't directly associated with the openhab2 package, but I'm not sure having a list of overrides in different systemd files is very maintainable.

I think the best approach is to use a different user, but the easiest fix, and one that will help the majority of existing users is the one I really should have implemented a long time a go discussed in openhab/openhab-linuxpkg#108

mstormi commented 4 years ago

, but I'm not sure having a list of overrides in different systemd files is very maintainable.

Well that just applies to openHABian, and for anything not-openhab2 that's no packages you would need to fiddle that into but just files we place during installation anyway, or am I wrong there ? And is there more than frontail.service ?

mstormi commented 4 years ago

@BClark09 does closing openhab/openhab-linuxpkg#108 mean this now works and I can close it, too?

BClark09 commented 3 years ago

The issue fixed in linuxpkg was about the errors caused when another service uses the openhab user.

Ideally, these services should use a default or new user to manage their permissions. So there is still something to improve on openHABian's end I think.

ecdye commented 3 years ago

If I understand this correctly. What you are saying is that we should use a new user for frontail perhaps even just a new user called frontail?

If so then it should be an easy fix right?

mstormi commented 3 years ago

That's how I, too, understood it. just go for it

mstormi commented 3 years ago

upps, wrong button