Author Topic: Problem with permissions  (Read 954 times)

Starfire

  • Wayfarer
  • *
  • Posts: 2
    • View Profile
Problem with permissions
« on: January 10, 2008, 07:28:29 pm »
hi all
i have installed planeshift today, on a feisty kubuntu.
i downloaded the installer and ran it as root in shell. chmod +x...
but
no icons appeared on my desktop, though i said to do so.
game doesnt start with the following error

starfire@ale-laptop:~/downloads/planeshift$ planeshift
chmod: cambio dei permessi di `psc': Funzione non permessa
/home/starfire/PlaneShift/psclient: line 6: /home/starfire/PlaneShift/psc: Permesso negato
/home/starfire/PlaneShift/psclient: line 6: exec: /home/starfire/PlaneShift/psc: impossibile eseguire: Riuscito
starfire@ale-laptop:~/downloads/planeshift$

the language is italian, i'm sorry. anyone can help me?
i think it happened some big trouble with permissions, but during the installation i was asked group and user, and i gave correct answer

now i cannot remove either play planeshift.



bilbous

  • Guest
Re: Problem with permissions
« Reply #1 on: January 10, 2008, 07:47:08 pm »
Code: [Select]
which pscwill tell you where it is.
"ls -l path/to/psc" to find out what its permissions are replacing path/to with actual path given by which command.
then either chown it to your user or more probably chmod it 755. type man chown or man chmod to see usage. If you have konqueror (kde, not standard for ubuntu) you can put man:commandname in the address bar and it will nicely format it in the browser window.

vim

  • Wayfarer
  • *
  • Posts: 4
    • View Profile
Re: Problem with permissions
« Reply #2 on: January 13, 2008, 07:09:48 pm »
I think the problem is you ran the installer as root, so all the files were created with root permissions.  Just do

Code: [Select]
$ sudo chown -R starfire:starfire /home/starfire/PlaneShift/
Of course, I'm assuming starfire is your username. If not, just replace starfire:starfire with your username:groupname.

I'm also assuming the problem directory is PlaneShift.

You could also run the same command on your downloads directory just to be sure (nothing will happen in the worst case).

Finally, run

Code: [Select]
$ ls -l
to see if there are any files or directories that don't belong to you on your home folder, and if so, change their owner, too. They should all say "starfire starfire" on the third column.

Remember to only do this to the files you're supposed to own. That is, don't do this to anything outside your home directory, unless you really know what you're doing.
« Last Edit: January 13, 2008, 07:17:34 pm by vim »
~Everything for Everyone~