LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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

Reply
 
Search this Thread
Old 07-27-2012, 08:07 PM   #1
sabresong
Member
 
Registered: Feb 2011
Location: Asheville, NC, USA
Distribution: Fedora 19
Posts: 35
Blog Entries: 1

Rep: Reputation: 2
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?
 
Old 07-27-2012, 10:14 PM   #2
John VV
Guru
 
Registered: Aug 2005
Posts: 12,664

Rep: Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682
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
 
Old 07-28-2012, 04:42 AM   #3
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,229

Rep: Reputation: 286Reputation: 286Reputation: 286
Quote:
Originally Posted by sabresong View Post
... 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 View Post
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 View Post
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.
 
Old 07-28-2012, 06:26 PM   #4
sabresong
Member
 
Registered: Feb 2011
Location: Asheville, NC, USA
Distribution: Fedora 19
Posts: 35
Blog Entries: 1

Original Poster
Rep: Reputation: 2
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to run daemon process being a normal user [not root user]. narendra1310 Linux - Software 1 10-26-2009 09:48 AM
how to give root privileges to normal user? caedo Linux - Newbie 11 08-28-2008 03:15 PM
user application execute commands with root privileges lbdgwgt Linux - Software 2 01-17-2007 07:51 AM
how to run root command having normal user permission ravi.patil Linux - Newbie 7 05-21-2006 02:21 PM
Can you connect to internet as normal user without run pppd as root ? nasty_daemon Linux - Networking 2 09-13-2005 01:43 AM


All times are GMT -5. The time now is 12:29 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration