Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Synology package running as root?
25-02-2017, 03:39
Post: #1
Synology package running as root?
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 --nohup

Would 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/appData

That would be much more secure for the java process to run with much less privilege.

Keep up the good work!
Find all posts by this user
Quote this message in a reply
25-02-2017, 08:23
Post: #2
RE: Synology package running as root?
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.)
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)