FreeTAKTeam / FreeTAKHub-Installation

FreeTAKHub-Installation
Eclipse Public License 2.0
33 stars 29 forks source link

In order to relieve permission issues, switch FTS to user-space #113

Open phreed opened 3 months ago

phreed commented 3 months ago

Currently FTS installs as root into a root owned directory and FTS processes run as root.

This makes it difficult to administer the services as the base user. It is possible to perform most administration tasks via sudo. e.g.

This works but it requires working as root which is generally discouraged. To reduce the need to use sudo the following changes will be made:

phreed commented 3 months ago

It is not completely possible to eliminate the need to run the installer with sudo.

That said, reducing the need to run any step as root is a good thing.

brothercorvo commented 3 months ago

we can run the installer with SUDO but then run FTS with the new created user

phreed commented 3 days ago

I had the opportunity to study up on systemd. Rather than running the installer as root the application can use 'systemctl --user ...' as the 'fts' user, rather than 'sudo systemctl ...'.

brothercorvo commented 2 days ago

Have you tested that?

phreed commented 2 days ago

I have tested the approach on another similar system.