[SOLVED] Installed application with root privileges, need to run as normal user
Linux - NewbieThis 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.
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.
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.