Every time when i poweron the pc, some proccess are started with the system. Some of them are Anydesk and SQL. I had disable sql from start alongside the system with systemctl disable mysql, so i think that i need to do the same with anydesk. But why these programs make this? Even if i dont start the app/program, they will be there, eating resources from the start… WHY THIS HAPPEN!!!

Edit: Something i forgot to put: why they have root permissions? this happen no wonder the system i install these programms, they have the same behaviour

  • Björn@swg-empire.de
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    11 hours ago

    Well behaved services would usually run on a special user that exists just for that service. Either systemd would run the service using the specified user or the service would start as root to do privileged operations like opening specific ports and then run subprocesses as the more limited user.

    • SteveTech@aussie.zone
      link
      fedilink
      arrow-up
      5
      ·
      edit-2
      12 hours ago

      Systemd can also create a temporary user, with DynamicUser. But I so very rarely see that being used.

      the service would start as root to do privileged operations like opening specific ports

      You can also add the CAP_NET_BIND_SERVICE capability to do this without root.

      IMO, there’s usually no reason to use root in a systemd service, it’s just ignorant developers.