Author Topic: Installer Permissions Problem  (Read 902 times)

curious

  • Wayfarer
  • *
  • Posts: 9
    • View Profile
Installer Permissions Problem
« on: March 10, 2006, 12:47:56 am »
Hi,

I tried to install on Ubuntu 5.10.

Initially when I ran the installer, it couldn\'t create opt/planeshift.

When I ran the installer as root, it installed OK, but as a normal user I didn\'t have permission to run the updater or start planeshift etc.  I didn\'t want to risk running planeshift as root.

I tried installing it as a normal user, to a folder in my home folder.  There was an error at the end of the installation and the scripts weren\'t in the planeshift folder (updater etc.)

Where am I supposed to install it and with what permissions?  Are there going to be any problems if I don\'t install it in the default location? ie something expects it to be there, and doesn\'t work properly if it\'s not?


Thanks,
Curious


PS. I am a bit new to Linux, attempting to divest myself of Windows.
PPS. I did this last night, hopefully I am remembering the details properly.

Darkblade

  • Hydlaa Resident
  • *
  • Posts: 143
    • View Profile
(No subject)
« Reply #1 on: March 10, 2006, 01:12:10 am »
The usual command that I\'m familiar with is chmod +x, which would allow all users to excute that program/file.
It\'s done by going into the command line, a console, and typing chmod +x [whatever the ps file is].


To actually install planeshift, you have to be under root, and to execute the file, you\'ll need to set the permissions so that your user (normal) can execute it, like using the command above.
Second option would be to include your normal user within the \'games\' group, as the installer is supposed to set the permissions for the games group as well as whoever installed it.

As far as I know, there shouldn\'t be any problems if you install PS to a different folder than the default one, heck, mine is anything but default.
Crazy am I. Not responsable for crazyness that ensues.

Xordan

  • Crystal Space Developer
  • Forum Addict
  • *
  • Posts: 3845
  • For God and the Empire
    • View Profile
(No subject)
« Reply #2 on: March 10, 2006, 01:21:54 am »
You can install PS as root or as your normal user. To install into your /opt dir then you generally need to install the game as your root user. During the install process you have the option to manually set permissions, the owner and the group that the files will belong to. Make sure when installing as root that you alter these options to fit whatever users or groups that you wish to be able to run the program with. Alternately, if you\'ve installed as root using the default permissions, create a \'games\' group if it doesn\'t already exist and add your user to it. That should give you all the permissions you need.

curious

  • Wayfarer
  • *
  • Posts: 9
    • View Profile
(No subject)
« Reply #3 on: March 10, 2006, 02:09:23 am »
Thanks for the help, I\'ll have another go installing it.

I\'ve gotta say, this is a great project.


Curious

curious

  • Wayfarer
  • *
  • Posts: 9
    • View Profile
(No subject)
« Reply #4 on: March 10, 2006, 08:44:36 pm »
Problem solved.

In case anybody else needs to know what I did:

1. Install PS as root.
2. Add normal user to the games group.
3. Restart

Seems pretty straight-forward doesn\'t it?

Now I just need to figure out my graphics problem, it seems similar to the problem in the \"Problems with graphics engine\" thread, so I\'ll try following those suggestions.


Thanks once again,
curious

lanser

  • Hydlaa Citizen
  • *
  • Posts: 447
  • No Longer Mordraugion Settings AD
    • View Profile
(No subject)
« Reply #5 on: March 10, 2006, 09:32:26 pm »
It is far safer to just install ps as user in your home dir which is even more straightforward :)
1. Install PS
2. Play
Hokinon Korere
Wandering Yliakum searching for lost memories...

Zinnius Zann
Right hand to a Queen

curious

  • Wayfarer
  • *
  • Posts: 9
    • View Profile
(No subject)
« Reply #6 on: March 17, 2006, 09:31:05 am »
Hi lanser,

Thanks for the tip.  I did, however have trouble with the install when I ran it as my normal user.  It might have been OK after I executed scriptwrapper.sh or whatever it was called.  I think that it  was what the installer failed on.


curious