PlaneShift

Support => Linux Specific Issues => Topic started by: Joshed Delerer on September 02, 2008, 06:40:34 pm

Title: psupdater.bin wants root access
Post by: Joshed Delerer on September 02, 2008, 06:40:34 pm
psupdater wants root access but when i give it still says it requires root access, ive tried both su and sudo. is there  a possible way to fix this?
Title: Re: psupdater.bin wants root access
Post by: Caarrie on September 02, 2008, 06:55:06 pm
have you installed the full game or just downloaded the updater?
Title: Re: psupdater.bin wants root access
Post by: Joshed Delerer on September 02, 2008, 06:55:51 pm
full game
Title: Re: psupdater.bin wants root access
Post by: Sen on September 02, 2008, 07:08:08 pm
As a non-Ubuntu user: what exactly is the error message and what does ls -l say about the updater files?

Sen
Title: Re: psupdater.bin wants root access
Post by: Joshed Delerer on September 02, 2008, 07:14:48 pm
As a non-Ubuntu user: what exactly is the error message and what does ls -l say about the updater files?

Sen

omega@omega-desktop:~$ su
Password:
root@omega-desktop:/home/omega# cd /home/omega/Desktop/untitled
root@omega-desktop:/home/omega/Desktop/untitled# chmod -x psupdater.bin
root@omega-desktop:/home/omega/Desktop/untitled# ./psupdater.bin

PlaneShift Updater Version 5 for linux32.

Checking for updates:
This program requires admin/root or write privileges to run. Please restart the program with these.
In windows, this means right clicking the Updater shortcut and selecting "Run as administrator".
For everyone else, login as the root user. If you don't have root access, contact someone who does and ask them nicely to run the updater!

Updater finished, press enter to exit.

and it doesnt matter if i put -l after or not, its still the same thing, or do you mean "-|"
Title: Re: psupdater.bin wants root access
Post by: Aiwendil on September 02, 2008, 07:48:34 pm
root@omega-desktop:/home/omega/Desktop/untitled# chmod -x psupdater.bin

Why that? Shouldn't the updater script have execution rights? When I take the executable bit from my psupdater.bin and the try to run it, it doesn't work too. But after a "chmod +x psupdater.bin" it works again. But I use a 64 bit gentoo, so maybe there is something about ubuntu I don't know....
Title: Re: psupdater.bin wants root access
Post by: Joshed Delerer on September 02, 2008, 07:49:38 pm
i set it like that just for the extra security from n00bs using my computer and breaking it
Title: Re: psupdater.bin wants root access
Post by: Aiwendil on September 02, 2008, 08:03:00 pm
Sorry, only guessing now....
The updater quits while checking if new updates are available. So do you have anything configured that disallows internet access for applications of the user root? You could try to install the game local as a normal user (somewhere in the home directory, but from your logs I guess you did that already). This user should be able to update planeshift without root privileges. Maybe check what user, group and permissions you set for PS during the installation. But I fear all I write here won't help you because root should always be able to update PS....
Title: Re: psupdater.bin wants root access
Post by: Joshed Delerer on September 02, 2008, 08:05:13 pm
Sorry, only guessing now....
The updater quits while checking if new updates are available. So do you have anything configured that disallows internet access for applications of the user root? You could try to install the game local as a normal user (somewhere in the home directory, but from your logs I guess you did that already). This user should be able to update planeshift without root privileges. Maybe check what user, group and permissions you set for PS during the installation. But I fear all I write here won't help you because root should always be able to update PS....

ive actually tried that, i havent found anything that disallows, nor have i set anything to do so. ive installed it as root same thing, uninstalled, reinstalled as localuser and same thing

edit: Maybe you coudl find something in it that im missing, do you have a spare computer laying aroud that you could run a livecd of Ubuntu on and check out the settings and such, its nice to have a second pair of eyes especially in something as complex and powerful as Linux


EDIT2: OOHHHH what ports do the updater and client use? maybe that could be the issue..
Title: Re: psupdater.bin wants root access
Post by: Sen on September 02, 2008, 08:13:48 pm
Try to use psupdater instead of psupdater.bin *thinks there was something....*
Title: Re: psupdater.bin wants root access
Post by: Joshed Delerer on September 02, 2008, 08:15:12 pm
Try to use psupdater instead of psupdater.bin *thinks there was something....*

root@omega-desktop:/home/omega/Desktop/untitled# ./psupdater

PlaneShift Updater Version 5 for linux32.

Checking for updates:
This program requires admin/root or write privileges to run. Please restart the program with these.
In windows, this means right clicking the Updater shortcut and selecting "Run as administrator".
For everyone else, login as the root user. If you don't have root access, contact someone who does and ask them nicely to run the updater!

Updater finished, press enter to exit.
Title: Re: psupdater.bin wants root access
Post by: apis on September 02, 2008, 08:43:24 pm
What is the output from
Code: [Select]
root@omega-desktop:/home/omega/Desktop/untitled# ls -al/me thinks you have done a chmod in error in there somewhere...
Title: Re: psupdater.bin wants root access
Post by: Aiwendil on September 02, 2008, 08:48:11 pm
Some infos from LigH in the IRC channel:

Quote
<AiwendilH> does the PS updater need any open ports in a firewall to function correctly?
<LigH> AiwendilH: No. It acts like a web browser.
<LigH> AiwendilH: If your browser needs a proxy, then the updater needs it too. But that's very rarely the case.

But I fear that doesn't help you either....
Title: Re: psupdater.bin wants root access
Post by: Joshed Delerer on September 02, 2008, 08:54:23 pm
What is the output from
Code: [Select]
root@omega-desktop:/home/omega/Desktop/untitled# ls -al/me thinks you have done a chmod in error in there somewhere...
root@omega-desktop:/home/omega/Desktop/untitled# ls -al
total 1224
drwxr-xr-x 2 omega omega    4096 2008-09-02 13:04 .(blue)
drwxr-xr-x 3 omega omega    4096 2008-09-02 14:22 ..(blue)
-rwxr-xr-x 1 omega omega     101 2008-07-21 03:41 psupdater(green)
-rwxr-xr-x 1 omega omega 1236200 2008-07-21 03:41 psupdater.bin(green)


Some infos from LigH in the IRC channel:

Quote
<AiwendilH> does the PS updater need any open ports in a firewall to function correctly?
<LigH> AiwendilH: No. It acts like a web browser.
<LigH> AiwendilH: If your browser needs a proxy, then the updater needs it too. But that's very rarely the case.

But I fear that doesn't help you either....

sadly no.. T_T
Title: Re: psupdater.bin wants root access
Post by: Aiwendil on September 02, 2008, 09:02:20 pm
lol, but your ls -la maybe helped...

are these 2 files the only files in that directory? You need at least one installed version of PS (I think newer then 4.0) to run the updater. And I think you have to run the updater from the directory in which PS is installed. If you run it with the "psupdater" script this should be done automatically. Or didn't you just post the complete output of ls -la?
Title: Re: psupdater.bin wants root access
Post by: apis on September 02, 2008, 09:03:36 pm
where is PS installed atm?
Not in the dir that you are in when you exec ./psupdater?

edit: beaten to it ;)
Title: Re: psupdater.bin wants root access
Post by: Joshed Delerer on September 02, 2008, 09:13:46 pm
lol, but your ls -la maybe helped...

are these 2 files the only files in that directory? You need at least one installed version of PS (I think newer then 4.0) to run the updater. And I think you have to run the updater from the directory in which PS is installed. If you run it with the "psupdater" script this should be done automatically. Or didn't you just post the complete output of ls -la?

are you serious? it has to be run in the same directory?? WHO DESIGNS THESE THINGS?? xD ok, i will try it again..

ok well now im getting another error, this one is probably more norm (and thank you xD, just another n00b moment)

Code: [Select]
root@omega-desktop:/home/omega/opt/PlaneShift# ./psupdater.bin

PlaneShift Updater Version 5 for linux32.

Checking for updates:
This updaterinfo.xml file is marked as inactive and will not work. Please get another one.

Updater finished, press enter to exit.


Title: Re: psupdater.bin wants root access
Post by: apis on September 02, 2008, 09:17:53 pm
edit the updaterinfo.xml and change the false to true in the <config active="false">
Title: Re: psupdater.bin wants root access
Post by: Aiwendil on September 02, 2008, 09:19:38 pm
This problem I give to other, much more experienced hands :)

http://hydlaa.com/smf/index.php?topic=32812.0 (http://hydlaa.com/smf/index.php?topic=32812.0)

EDIT: hehehe....too slow
Title: Re: psupdater.bin wants root access
Post by: Joshed Delerer on September 02, 2008, 09:21:08 pm
edit the updaterinfo.xml and change the false to true in the <config active="false">


YAY! thank you very much everyone for this obvious n00b moment, here, have cookies
(http://blog.josephhall.com/uploaded_images/bestcookies.jpg)
Title: Re: psupdater.bin wants root access
Post by: Beniel on September 04, 2008, 06:24:18 am
Lol, firefox cookies!!!