LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 03-21-2004, 08:16 AM   #1
maxw_cc
LQ Newbie
 
Registered: Mar 2004
Posts: 2

Rep: Reputation: 0
ksh93 not reading $HOME/.profile!!!


Hi folks!

I am kind of frustrated with this ... I just downloaded and installed
the rpm for ksh93 from rpmfind.net.

I am running under Red Hat 8.0. and KDE. The thing is that I created a
user
#useradd -s /bin/ksh student

and I created under ~student:

.profile
VISUAL=emacs
export VISUAL

then I logged out and logged back in as user 'student'
and did:

$set | grep VI

and NOTHING was displayed!!!!!

The curious thing is that it works when I do as 'student':

$su - student
...
$set | grep VI
VISUAL=emacs

WHY could this be happening!!! What else do I need to make it work?

Thank you very much in advance!

Max
 
Old 03-21-2004, 10:03 AM   #2
maxw_cc
LQ Newbie
 
Registered: Mar 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Now I think ksh93 is indeed reading .profile, the problem
was that the terminal was forking a normal subshell not a login shell.

I haven't found yet the way of how to fix this for gnome. But I tried
adding --ls to the options for starting 'konsole' and it worked!

What still bothers me is WHY when I log in graphically gdm doesn't
start a login shell like IT SHOULD. I mean when I log in graphically
gdm should know which my login shell is, and read my .profile at that
very first time, so that when I start any subshell I will have my
.profile env variables already set.

The curious thing is that it does indeed read .bash_profile when
logging in graphically, when the login shell is bash not ksh!

I wonder if there's something I can set to make it work correctly.?

Thanks a lot in advance,

Max
 
  


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
KDE 1.4 HOME profile peterman9898 Linux - Software 0 11-19-2005 12:12 PM
reading /home/ on HDD in USB caddy xc_gumby Linux - General 1 10-29-2005 01:02 PM
/etc/profile VERSUS /home/.bash_profile carbono Linux - Newbie 12 10-12-2005 09:23 AM
Reading other user's home directory with Samba zupidupi Linux - Networking 7 04-14-2005 01:53 AM
.profile not be source when using ksh93. NEED HELP!!!! michaeldm9 Linux - General 0 08-28-2003 08:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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