Visit Jeremy's Blog.
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 09-19-2013, 10:56 AM   #1
LQ Newbie
Registered: Dec 2009
Location: Montreal, Canada
Distribution: Gentoo, Debian, CentOS
Posts: 6

Rep: Reputation: 0
How can I bypass bash_profile and have it load from a different location?

I have centos installed.

We have an application that uses the bash_profile from here:


I want to create a user that will bypass the home/.bash_profile and use the one in the directory listed above. How can I do this?

Thank You for any help, I am a new junior linux admin, got tired of Micro$oft, been through 2 MS audits, switched to Linux, and am loving it
Old 09-19-2013, 11:01 AM   #2
Senior Member
Registered: Oct 2008
Distribution: Debian Jessie / sid
Posts: 1,471

Rep: Reputation: 444Reputation: 444Reputation: 444Reputation: 444Reputation: 444
create a wrapper script, and have it source /usr/omni/.bash_profile
. /usr/omni/.bash_profile
application arg1 arg2


bash, linux command, profile

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
How to bypass 'Grub' after deleting the Linux partition, so that Windows XP can load? Marion D Poff Linux - Software 11 03-15-2011 03:52 PM
[SOLVED] Constant errors in .bash_profile and startx does not load automatically mmoi5 Linux - Newbie 7 09-04-2010 10:16 AM
[SOLVED] Constant errors in .bash_profile and startx does not load automatically mmoi5 Linux - Newbie 1 09-04-2010 06:33 AM
.bash_profile location chow-stl Slackware 5 07-21-2005 07:19 AM > Forums > Linux Forums > Linux - Newbie

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