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 04-13-2011, 12:28 PM   #1
LQ Newbie
Registered: Apr 2011
Posts: 3

Rep: Reputation: 0
Can't run another application with other RHEL 4 Linux User

Hi All,

Im Pab, just like to know, How can I allow a new user to run specific software like sqlplus.


I have an oradb@database user where i can execute sqlplus /nolog command, but when i created a new user named allan@database the bash says....-bash:sqlplus: command not found.

Old 04-13-2011, 01:47 PM   #2
Senior Member
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,093

Rep: Reputation: 197Reputation: 197
Sounds like a PATH problem. Run these commands as both oradb and allan and post the output

$ echo $PATH
$ which sqlplus
Old 04-13-2011, 01:47 PM   #3
Senior Member
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Hi Pab,

The reason you are getting that error message is because the location from where that command runs is not added to his profile's search path.

For example if that command runs from /etc/init.d/ then do the following:

export PATH

This will add path /etc/init.d in his profile. To make these changes permanently edit his .bash_profile file which will be located under his home directory. You might not be able to see it with ls -l, just type ls -A to see .bash_profile file and then edit it using vi or vim. Put the above mention code related to path at the bottom of his .bash_profile, thats it!!!


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
Can a user application run entirely in kernel-mode? pmil Linux - General 4 12-18-2009 08:52 AM
have a startup application run as a different user hafio Red Hat 1 02-23-2008 10:09 PM
Run a visual application as super user nightrider Linux - Newbie 8 11-09-2007 12:01 PM
Force an application to run only for my user purefan General 1 04-12-2005 10:30 AM
Run an application under a user on startup? wichmann_uwe Linux - General 1 01-23-2004 04:07 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:32 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration