Debian – Obtaining the user's home directory for a daemon application running as root in linux
help me find the optimal solution. I have a compiled application (written in Go if it matters). The application should run as a daemon in Linux and write logs to the user's home directory. The problem is that the daemon…