PS3MS runs as root in Ubuntu

For help and support with issues specific to Linux/Unix
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply.

PS3MS runs as root in Ubuntu

Postby skslinux33 » Tue Jun 12, 2012 12:47 am

Hi All,

I am running Ubuntu server, non GUI.

PS3MS runs as root ?
How do I change it to run as a user?

Remember, no GUI, so I need to know which scripts I need to modify?
skslinux33
 
Posts: 5
Joined: Mon Jun 11, 2012 3:52 pm

Re: PS3MS runs as root in Ubuntu

Postby meskibob » Tue Jun 12, 2012 2:18 pm

I provide NO application support via PM or email, so please post your question to the forum per the Forum Rules.
meskibob
Moderator
 
Posts: 4784
Joined: Mon Jan 19, 2009 4:11 pm

Re: PS3MS runs as root in Ubuntu

Postby skslinux33 » Wed Jun 13, 2012 12:36 am

these are not working on ubuntu.
The init.d is run by root. there must be some way to tell it to not to run as root.
skslinux33
 
Posts: 5
Joined: Mon Jun 11, 2012 3:52 pm

Re: PS3MS runs as root in Ubuntu

Postby happy.neko » Wed Jun 13, 2012 2:26 pm

skslinux33 wrote:these are not working on ubuntu.
The init.d is run by root. there must be some way to tell it to not to run as root.

You should edit /etc/default/ps3mediaserver file. Please re-read linked post.
happy.neko
Project Member
 
Posts: 478
Joined: Fri Sep 23, 2011 5:38 pm

Re: PS3MS runs as root in Ubuntu

Postby skslinux33 » Wed Jun 13, 2012 10:48 pm

this is not working for ubuntu. i have tried the changes.
HINT: this is because /etc/init.d/ps3mediaserver has $NAME (="ps3mediaserver)


# Author: Papa Issa DIAKHATE <paissad@gmail.com>
#
PATH=/sbin:/bin:/usr/sbin:/usr/bin
DESC="PS3 Media Server"
NAME=ps3mediaserver
PS3MS_PROFILE=/etc/$NAME # 1st initialization for PS3MS_PROFILE
DAEMON=/usr/bin/$NAME
DAEMON_OPTS="console"
SCRIPTNAME=/etc/init.d/$NAME
"/etc/init.d/ps3mediaserver" 131 lines, 3965 characters
skslinux33
 
Posts: 5
Joined: Mon Jun 11, 2012 3:52 pm

Re: PS3MS runs as root in Ubuntu

Postby happy.neko » Wed Jun 13, 2012 11:09 pm

You are using outdated build. New init.d scripts are available for Ubuntu 12.04 and 11.10 only.
happy.neko
Project Member
 
Posts: 478
Joined: Fri Sep 23, 2011 5:38 pm

Re: PS3MS runs as root in Ubuntu

Postby skslinux33 » Sun Jun 17, 2012 6:33 am

i upgraded my installation to 12.4
but /etc/init.d/ps3mediaserver is unchanged.
skslinux33
 
Posts: 5
Joined: Mon Jun 11, 2012 3:52 pm

Re: PS3MS runs as root in Ubuntu

Postby happy.neko » Sun Jun 17, 2012 3:42 pm

That's strange. Delete ps3mediaserver with sudo apt-get purge ps3mediaserver, make sure you are installing from ppa:happy-neko/ps3mediaserver and then sudo apt-get update && sudo apt-get install ps3mediaserver

You should get PS3 Media Server 1.53.99-mencoder34587-2. Current version is reported in first line of debug.log (/var/log/ps3mediaserver/USER/debug.log).
happy.neko
Project Member
 
Posts: 478
Joined: Fri Sep 23, 2011 5:38 pm


Return to Linux/Unix Support

Who is online

Users browsing this forum: Yahoo [Bot] and 5 guests