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 03-31-2003, 09:25 PM   #1
LQ Newbie
Registered: Mar 2003
Posts: 3

Rep: Reputation: 0
kshell in path & .bash_profile

2 questions:
1. Nothing i put in my .bash_profile is staying
ie i type PS1="ctos004 >"
export PS1

and next time it does not default to the new prompt (only works if i set it in each session)

2. I desparatey need to get the korn shell working on this thing as i have moved a bunch of scripts from an hp unix machine to the linux boxes. I tried addind /usr/bin/kshell to the path of both root and my group login (under .bash_profile) for both no workee, i tried set PATH="lalalalal" and no workee either.

I never had probs with HP unix setting up env variables and this is truly stumping me cuz everything i am doing i have looked up and according to the books and web on redhat 8.0 pro this should work?

Old 03-31-2003, 09:35 PM   #2
Registered: Mar 2003
Distribution: Fedora, Mac OSX
Posts: 362

Rep: Reputation: 30
If your .bash_profile does seem to be being processed, ensure that it is actually your login shell... Within /etc/passwd the very last parameter following your user account will specify your shell. If bash, make sure this reads ':/bin/bash'. Also, take a look at /etc/bashrc and inside /etc/profile.d for more clues as to why your environment isn't sticking.

To change your shell to something else, modify /etc/passwd and change the last line of your user account to the shell you want, i.e. :/bin/ksh or whatever. Check out /etc/shells for a list of available shells.

If hope this helps...
Old 03-31-2003, 09:55 PM   #3
LQ Newbie
Registered: Mar 2003
Posts: 3

Original Poster
Rep: Reputation: 0
bummer thanks i checked the /etc/passwd and all the users have /usr/bin/sh as the last entry in their path....i have to look more at the bashrc thing tho...its funny because whenever i try to run the .sh i get bash [filename] command not found, which as far as i know means that the OS is not recognizing the path for the korn shell...i will try to change it back to bash and then start from there thanks though!!
Old 03-31-2003, 10:15 PM   #4
LQ Newbie
Registered: Mar 2003
Posts: 3

Original Poster
Rep: Reputation: 0
update, changed passwd and all back to /usr/bin/bash as the default shell...still get the bash [filename] command not found...hmmmm got my linux ref book out now...*yawn* but time to leave work *g*


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
Adding Java to my path in the .bash_profile file .... jmax24 Linux - General 5 04-20-2004 01:14 PM
kde3.2 $PATH and .bash_profile easywebdev Slackware 2 03-29-2004 04:42 PM
bash_profile & bashrc c1p3r Linux - Newbie 0 07-15-2003 05:10 AM
.bash_profile & path Syncrm Linux - General 11 01-30-2002 01:49 PM
profile, .bash_profile & ???? ChimpFace9000 Linux - General 1 07-05-2001 04:52 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:18 AM.

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