- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: User login sets env variable, but where from?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-11-2005 09:29 PM
тАО10-11-2005 09:29 PM
User login sets env variable, but where from?
I've tried the usual suspects of /etc/profile and $HOME/.profile neither have this env set.!?
I even tried resetting the env variable to what I want in /etc/profile and it doesn't appear to have any effect. Or is being over written later on ?
Can someone suggest where else I could look? And or explain the login process?
Thanks in advance,
Russ.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-11-2005 09:38 PM
тАО10-11-2005 09:38 PM
Re: User login sets env variable, but where from?
a quick hint :
check in home dir if
exist file named ".shrc" or ".kshrc".
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-11-2005 09:47 PM
тАО10-11-2005 09:47 PM
Re: User login sets env variable, but where from?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-11-2005 09:48 PM
тАО10-11-2005 09:48 PM
Re: User login sets env variable, but where from?
add a set -x to the first line in the /etc/profile
# su - user_name
check the output and remove the set -x again. It will give you some hints where to look.
Hope this helps,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-11-2005 09:49 PM
тАО10-11-2005 09:49 PM
Re: User login sets env variable, but where from?
What is your shell? (ksh, csh, sh, bash?)
echo $SHELL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-11-2005 09:53 PM
тАО10-11-2005 09:53 PM
Re: User login sets env variable, but where from?
(those are named in manpages login, environ)
Are you users' login shells C shell compatibles?
Then look for /etc/csh.login or $HOME/.login
Other shells source their own initialization files (e.g. bash would look for .bash_profile)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-11-2005 10:02 PM
тАО10-11-2005 10:02 PM
Re: User login sets env variable, but where from?
If I do an su - username, the environment sets correctly, If I simply open a term window and check the env's they are wrong.
So using the set -x (thanks) I can see the /etc/profile gets read.
I guess my new qestion is why is the /etc/profile not getting read on login. AND/OR where is the environment for this machien being set??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-11-2005 10:07 PM
тАО10-11-2005 10:07 PM
Re: User login sets env variable, but where from?
Can you grep for it in /etc/rc.config.d/* just in case it's a system env var.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-11-2005 10:14 PM
тАО10-11-2005 10:14 PM
Re: User login sets env variable, but where from?
maybe you are using a X windows and ".dtprofile" (or something like that)
override other settings?
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-11-2005 10:29 PM
тАО10-11-2005 10:29 PM
Re: User login sets env variable, but where from?
vi $HOME/.Xresources
*loginShell:True
restart X/CDE ...
xterm,dtterm or hpterm do not read the systems or users .profile by default.