Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-27-2012, 08:07 PM
|
#1
|
Member
Registered: Feb 2011
Location: Asheville, NC, USA
Distribution: Fedora 19
Posts: 36
Rep:
|
Installed application with root privileges, need to run as normal user
I messed up, and I'm trying to find a solution before resorting to uninstalling the application and reinstalling it properly. It's a game, Planeshift, installed via its installer script. I installed it without reading the README first, which I absolutely know is rather a stupid thing to do, but there it is. Now it won't run unless I run it as root or using sudo.
I did go back and read the README, and saw that I could have set the permissions manually during install, so I tried changing them from the command line, but that didn't work. The game got installed to /usr/bin.
The only similar thing I've been able to find via Google was here on LQ, and inly suggested setting the permissions of the folder to 0755. I was under the impression that that was the default for /usr/bin in Kubuntu, but tried that anyway, but it didn't work.
Is there a way to make it work as a normal user, or will I have to reinstall the application?
|
|
|
07-27-2012, 10:14 PM
|
#2
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,710
|
Quote:
Google was here on LQ, and inly suggested setting the permissions of the folder to 0755.
|
so you ran chmod on /usr/bin ???
not good
hopefully you did not royally mess up the system
but i am guessing here that you only needed to change the user group for the game ONLY
A guess here so....
but is the game a shell script to start the game ????
as in is the file in /usr/bin a text file
if so you most likely only need to run
( on the SHELL *.sh only if it is one ?? )
Code:
su -
chown root:users TheNameOfTheScript
chmod +x heNameOfTheScript
|
|
|
07-28-2012, 04:42 AM
|
#3
|
Senior Member
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230
|
Quote:
Originally Posted by sabresong
... The game got installed to /usr/bin. ...
|
It is unlikely that the entire game was installed to /usr/local/bin/.
Usually only the executable file that launches the game (or most any other app) will be installed to /usr/local/bin/.
The rest of the game was most likely installed to /usr/local/games/, or possibly just /usr/local/.
Quote:
Originally Posted by sabresong
setting the permissions of the folder to 0755
|
Never change permissions on system files unless you really know what you are doing.
Quote:
Originally Posted by sabresong
I installed it without reading the README first
|
If you read the README and INSTALL files for the game, they should tell you how to install, uninstall, and run the game.
These files, or the game's website, should also list whatever dependencies are needed for the game.
|
|
|
07-28-2012, 06:26 PM
|
#4
|
Member
Registered: Feb 2011
Location: Asheville, NC, USA
Distribution: Fedora 19
Posts: 36
Original Poster
Rep:
|
Thanks for your responses. The problem was solved with chown, but the application wasn't, in fact, entirely installed to /usr/bin. I had to change /opt/PlaneShift as well. I also checked the permissions on /usr/bin, and they seem to be set correctly, so I don't think I broke anything. I think I need to learn more about permissions, groups and ownership. Again, thank you.
|
|
|
All times are GMT -5. The time now is 08:54 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|