[fpc-devel] Linux Binary - Socket Output affected by SystemCtl, HELP!

Nikolai Zhubr n-a-zhubr at yandex.ru
Wed Jan 29 18:42:38 CET 2020


29.01.2020 19:04, Ozz Nixon via fpc-devel:
> cat /etc/test.txt
> <null>
> ls -alrt /etc/test.txt
> -rw-r--r-- 1 root root 0 Jan 29 10:54 /tmp/test.txt

Make sure there is no naming confusion (such as e.g. /tmp/test.txt and 
/etc/test.txt unintentionally intermixed)

Another point is that a binary running from systemd context might have 
somewhat different access rights as compared to running from an 
interactive shell, so that might lead to some files being unreadable and 
that might potentially also lead to changed behaviour.
Actually systemd allows you to set a user and group you want for the 
service, like e.g.:


A don't remember what it sets by default.
(And certaily, root/root is generally not a safe practice, but just for 
a test...)


More information about the fpc-devel mailing list