LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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
 
LinkBack Search this Thread
Old 06-03-2008, 10:13 AM   #1
caseybea
LQ Newbie
 
Registered: Jun 2008
Posts: 1

Rep: Reputation: 0
RHEL5 login: /etc/profile not being used when login via X/ksh


OK folks, I'm stumped. Help? (Note: seasoned unix admin, not newbie)

Situation:

OLD SERVER: RHEL4. All logins and shells and use of /etc/profile works like a charm, as expected. All the necessary $PATH and other variables get set the way we need.

NEW SERVER: RHEL5. All logins work as expected, with one very odd exception: If the user is logging in via X, *and* if the users' shell is KSH, then it appears that /etc/profile is not being used.

PURPOSE: "New server" going to be replacement for "old server". Additionally, user login directories are automounted, so they are 100% the same between the two hosts. User accounts in question do not have private profiles, kshrc's, or anything like that.

MORE FUN: On the new server, if I do any type of standard terminal-based login (any shell applies), the /etc/profile mechanisms seem to work great. even for KSH users-- no problems.

TO REITERATE: Again, on the new server, if the users log in via X (we have lots of X-based apps... ugh) - their $PATH set in /etc/profile works like a charm if they use any other shell- until I come to ksh. When it's a ksh user, the only $PATH set is the absolute bare minimum and in our situation, tons of programs will not function because environment variables and paths are not set.

SO--- If logging in via X, and user has KSH-- how the heck can I enable /etc/profile? X and any other shell WORKS, and ksh (if not via X) works.

I am totally stumped, and haven't been able to figure this out. It makes no sense either, since other shells behave, and also since any other login type ALSO behaves, even with ksh.

Last edited by caseybea; 06-03-2008 at 11:22 AM. Reason: better subject line
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PAM, pam_tally, and locking out users after 3 failed login attempts in RHEL5 frail.knight Linux - Security 10 03-17-2011 04:06 PM
RHEL5 braceexpand in KSH not working the same as RHEL4 HELP! kcarmi01 Programming 4 03-13-2008 07:36 PM
RHEL5 braceexpand in KSH not working the same as RHEL4 HELP! kcarmi01 Linux - Newbie 0 03-12-2008 07:44 PM
Debian ksh doesn't read profile Shentar Linux - General 1 09-13-2005 05:29 PM


All times are GMT -5. The time now is 02:54 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration