![]() |
|
Synology package running as root? - Printable Version +- MinimServer Forum (https://forum.minimserver.com) +-- Forum: MinimServer (/forumdisplay.php?fid=1) +--- Forum: Support (/forumdisplay.php?fid=4) +--- Thread: Synology package running as root? (/showthread.php?tid=3896) |
Synology package running as root? - zormuf - 25-02-2017 03:39 Hello, I've started using the synology package and I have noticed that it triggers the process to run as root on the NAS: Code: root 1040 1 8 11:30 ? 00:00:17 /var/packages/java8/target/ejdk1.8.0_121/linux_arm_sflt/jre/bin/java -jar /volume1/@appstore/MinimServer/lib/mserver.jar --noprompt --nohupWould it be possible to have it run as a dedicated user? For example, the also excellent BubbleUPNP synology package does it perfectly: Code: bubbleu+ 31167 1 12 11:29 ? 00:00:35 /var/packages/java8/target/ejdk1.8.0_121/linux_arm_sflt/jre/bin/java -Xss256k -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true -jar BubbleUPnPServerLauncher.jar -nologstdout -logFileMaxSize 250000 -dataDir /var/services/homes/bubbleupnp/appDataThat would be much more secure for the java process to run with much less privilege. Keep up the good work! RE: Synology package running as root? - simoncn - 25-02-2017 08:23 It used to be like this but it caused complexity of various kinds and it prevented MinimStreamer from using the preinstalled ffmpeg to transcode AAC files. (For some reason, ffmpeg won't do this unless it is running as root.) |