Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-11-2008, 09:11 PM   #1
Registered: Dec 2007
Location: Vietnam
Distribution: Slackware, Xubuntu, Puppy, WinXP
Posts: 38

Rep: Reputation: 15
some commands cant run under normal user

I'm using Slackware. When i login as root, i can do everthing, run every commands. But if i login as normal user, i cant run some commands

i.e: cant run konqueror from terminal with normal user, always receive: no command found.

But I can run Konqueror from menu, why ?
Old 01-11-2008, 09:28 PM   #2
Registered: Nov 2003
Location: USA
Distribution: Ubuntu
Posts: 102

Rep: Reputation: 15
Probably you have different values for your "PATH" environment variable between users.
This could happen a bunch of different ways.

Do a
 $ which konqueror
as root.

Note the output.

Now right click on the menu item you said you can use, and check the properties. Somewhere in there there should be the command that gets run, and it will probably have the same path as the output from the command above.

To fix this for your user, you need to modify your shell's environment.

If you use bash, check out your ~/.bash_profile file.
In there there will be a line like...
Go ahead and add a ":" and the new path you found, close and open your terminal again, and see if you can't run konqueror.

Good luck!

Edit: Optionally, you could just echo your path variable as root, and copy that exact output to your .bash_profile.

 $ echo ${PATH}

Last edited by wildcat22; 01-11-2008 at 09:30 PM.


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
Running super user commands as normal user mickyg Linux - Security 5 10-14-2005 08:25 PM
can,t run kde as normal user. little_ball Slackware 1 12-29-2004 11:13 AM
Warcraft 3 Won't Run Anymore For Normal User GT_Onizuka Linux - Games 5 01-25-2004 12:05 PM
Run ipchains as normal user? jlangelier Linux - Newbie 1 07-27-2003 02:56 AM
How to run Arson as a normal user Mojojo Linux - Software 0 07-10-2003 06:36 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:55 AM.

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