LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 01-11-2008, 08:11 PM   #1
mocqueanh
Member
 
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, 08:28 PM   #2
wildcat22
Member
 
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
Code:
 $ 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...
Code:
 PATH=/sbin/:/usr/sbin/
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.

Code:
 $ echo ${PATH}

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:41 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration