LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 04-13-2011, 12:28 PM   #1
pablo143
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.

Scenario:

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.

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

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


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

Rep: Reputation: 476Reputation: 476Reputation: 476Reputation: 476Reputation: 476
@ 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:

PATH=$PATH:/etc/init.d/
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!!!
 
  


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
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


All times are GMT -5. The time now is 11:23 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration