Skip to content

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

@phreed

Description

@phreed

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.

  • edit the main FTS configuration: sudo vi /opt/FTSConfig.yaml
  • stop the FTS service: sudo systemctl stop fts.service
  • edit the FTS UI configuration: sudo vi /root/fts.venv/lib/python3.11/site-packages/FreeTAKServer-UI/config.py
  • become root: sudo su -

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:

  • create an fts user and fts group
  • install fts files with fts:fts ownership into /opt (see Install FTS into /opt instead of /root #112)
  • run (via systemd) processes with fts permissions
  • cause the installer to not need to be run with sudo
  • add the base user (probably ubuntu) to the fts group so it can perform FTS maintenance tasks

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions