Why needs the Twonkyserver root rights ?

Linux and UNIX specific discussions
Post Reply
chris12
Posts:2
Joined:Wed Jan 07, 2009 1:29 pm
AV Hardware:Playstation 3
Why needs the Twonkyserver root rights ?

Post by chris12 » Wed Jan 07, 2009 1:52 pm

I need to start the server under root rights.
It does not work under a useraccount.
I think that can be a security problem.

Greets chris

Mak69
Posts:1
Joined:Sun Jan 11, 2009 9:23 pm
AV Hardware:EVCM-F running debian lenny + TwonkyMedia Server + D-Link DSM-320RD

Re: Why needs the Twonkyserver root rights ?

Post by Mak69 » Mon Jan 12, 2009 5:24 pm

I'm running TwonkyMedia Server without root privileges.
Check out the owner and group assigned to Twonky directory

ls -l /parentdir/TwonkyDir (write the correct directory)

and eventually change them with the command (as root)

chown username:usergroup /parentdir/TwonkyDir

This would solve the problem to run Twonky server from a non root user.
I had another problem scanning media. If you're storing your media on a dir like this (..as I'm doing)

/var/MyMedia/

where /var has root:root owner and /var/MyMedia has user:user owner, the only way to allow TwonkyMedia scanning is to create a soft link in the user's home dir in this way


cd /home/user
ln -s /var/MyMedia/ MyMedia


and to setup Twonky to scan for media in /home/user/MyMedia.

Hope this can help you
Marco

Post Reply