LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   can't launch programs as root (https://www.linuxquestions.org/questions/suse-opensuse-60/cant-launch-programs-as-root-278361/)

Error1312 01-16-2005 04:18 AM

can't launch programs as root
 
Hi all

In Suse 9.1 Pro, I can only start programs (from konsole) as normal user. If I, for example, try to run amarok as root, I get 'bash: amarok: command not found'. As normal user, it's no problem.

This is quite annoying because if I want to edit a file with 'kate', I must start is as normal user, but then I don't have permission to change anything in the files I open.

Also, I'm trying to install pango-1.8.0 for the moment. At the beginning of the install, it tries to run the command 'glib-mkenums'. I run the compilation as root, so it says it can't find that command.
I can run it as normal user, but then it says I don't have permission to execute this. So, basically, I can't install this program (and many others) , unless I can make sure root finds all it commands, like the normal user does.

Can anyone help me out. I guess it has something to do with the PATH or the shells.
Thx in advance.

rjlee 01-16-2005 07:35 AM

SuSE requires you to use
Code:

sux -c command
rather than su. This will keep certain environment variables that you need to use to run programs as root with SuSE's security settings.

Error1312 01-16-2005 07:59 AM

I've just tried this, but it doesn't work. 'Command not found', it says.

vwpbl 02-10-2005 11:28 AM

voidwhereprohibitedbylaw
 
I did not try this sux -c method.. as I did not know about it at the time, but I too was having difficulty compiling PANGO 1.8.0 and getting the glib-mkenums problem, having SuSE 9.2 professional. I was using the regular su command to act as root. I logged off of my regular user entirely and logged into my root user and tried it and was successful in compiling pango.


All times are GMT -5. The time now is 04:56 AM.