LinuxQuestions.org
Review your favorite Linux distribution.
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 04-13-2011, 11:28 AM   #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, 12:47 PM   #2
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,094

Rep: Reputation: 198Reputation: 198
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, 12:47 PM   #3
T3RM1NVT0R
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:

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



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

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

All times are GMT -5. The time now is 07:37 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