Find the answer to your Linux question:
Results 1 to 6 of 6
hey im trying to install Americas army aka armyopp250 and when it gets to Please enter installation path /usr/local/games/armyops i click install and it says no write permissions to /usr/local/games ...
  1. #1
    Just Joined!
    Join Date
    Mar 2010
    Posts
    8

    usr/local HELP!

    hey im trying to install Americas army aka armyopp250 and when it gets to

    Please enter installation path

    /usr/local/games/armyops

    i click install and it says

    no write permissions to /usr/local/games

    im on ununtu what do i do?

  2. #2
    Linux Newbie JosePF's Avatar
    Join Date
    Jun 2010
    Posts
    225
    hello,
    you have to give write permisions.

    For example:
    sudo chmod a+rw /usr/local/games

    I hope this help you
    Regards

  3. #3
    Linux Newbie TaZMAniac's Avatar
    Join Date
    Jan 2009
    Posts
    247
    Are you installing from a .deb package or from source.
    If it's a .deb package it should ask you for your user password to install it. This gives you permissions need to add files owned by root.

    If you are installing from source then after the make command you should use the following command;
    sudo make install

    The sudo command will also ask for your user password and then give temporary super user privileges that allows files to be added to that folder.

    Changing permissions of a folder owned by root is not recommended as it can cause issues with the files in that folder not to mention it could open up a security hole.

  4. #4
    Linux Newbie JosePF's Avatar
    Join Date
    Jun 2010
    Posts
    225
    Quote Originally Posted by TaZMAniac View Post
    Are you installing from a .deb package or from source.
    If it's a .deb package it should ask you for your user password to install it. This gives you permissions need to add files owned by root.

    If you are installing from source then after the make command you should use the following command;
    sudo make install

    The sudo command will also ask for your user password and then give temporary super user privileges that allows files to be added to that folder.

    Changing permissions of a folder owned by root is not recommended as it can cause issues with the files in that folder not to mention it could open up a security hole.
    With all due respect, i'm agree with you but I think that's what he says must be a script installer.
    Moreover, /usr/local/ games folder is not a critic folder and change their permissions can be as dangerous as running a script with root permissions and chmod without -R is not recursive so it does not affect the files inside.

  5. #5
    Just Joined!
    Join Date
    Mar 2010
    Posts
    8
    Quote Originally Posted by JosePF View Post
    hello,
    you have to give write permisions.

    For example:
    sudo chmod a+rw /usr/local/games

    I hope this help you
    Regards
    THAT SIMPLE CODE MADE IT SO SIMPLE!
    Thankyou

  6. #6
    Linux Enthusiast Bemk's Avatar
    Join Date
    Sep 2008
    Location
    Oosterhout-NB, Netherlands
    Posts
    522
    As long as you change the permissions back now, you should be fine.

    I agree that /usr/local/games isn't the most critical directory on the system, but it is owned by root, and it should stay that way. As long as a file is owned by root, while only granting common users reading permissions, nothing will bad can happen to the file, as long as people aren't stupid enough to do normal work as root.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...