- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: strange environment varable bahavior
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
Forums
Discussions
Discussions
Discussions
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
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
03-17-2003 07:02 AM
03-17-2003 07:02 AM
strange environment varable bahavior
I have two identical xterm windows. I am root in both windows. An "env" shows my environments to be identical. The SHELL var is /sbin/sh. In each shell I do "su - oracle8". I become the oracle8 user in each window but "env" shows the shell to be /usr/bin/sh for one, and /sbin/sh for the other. Can anyone explain this behavior? Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2003 07:25 AM
03-17-2003 07:25 AM
Re: strange environment varable bahavior
One screwball idea is that the .profile actually looks for specific DISPLAY variable settings but you willl need to dig deeper. Try this with another user and check the results.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2003 07:26 AM
03-17-2003 07:26 AM
Re: strange environment varable bahavior
DO this:
grep oracle /etc/passwd
then, check the login script for Oracle8 user, to see if you have any "funny" code that might switch shells on you.
And are the PATH's absolutely identical for both xterm windows?
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2003 07:42 AM
03-17-2003 07:42 AM
Re: strange environment varable bahavior
env > /tmp/session1.dat
env > /tmp/session2.dat
Then in either
diff session2.dat session1.dat
Check the /etc/passwd file and see what shell is set for the user oracle8
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2003 07:51 AM
03-17-2003 07:51 AM
Re: strange environment varable bahavior
The "-" option of su not only changes the shell, but process a complete login. This will void any previous variables.
When the "-" is left out, it only changes your UID and GID, and does not change your environment.
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2003 08:10 AM
03-17-2003 08:10 AM
Re: strange environment varable bahavior
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2003 09:31 AM
03-17-2003 09:31 AM
Re: strange environment varable bahavior
Oracle requires a non-root ID to perform administrative tasks, as well as a specific environment. Failure of either of these 2 items will cause things to fail.
I would like to re-iterate that this most likely not a system error, but user error or display error. In 15 years working with Unix, I have never heard of ths su command not processing the login when given a "-" option, and this includes beta releases of Solaris and Linux as well as production SCO, Irix, SunOS, HP-UX, AIX, and Linux.
Most likely, this is a user or terminal error. Meaining that the terminal showed the "-" after the su command, but it was actually not there. (non-displayed eras-char, eras-word, etc...) or the "-" was omitted from the su command.
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2003 11:47 AM
03-17-2003 11:47 AM
Re: strange environment varable bahavior
check your ".profile", "/etc/profile", your ".shrc" ( more accurate: "$ENV") files for the PATH set in there (maybe there is an "if" or "case" upon your "$TERM"?
Then check your Xresources: "xrdb -query > textfile".
Do you have different resources, like "*loginShell", or "*userPATH", or something like that?
And where do your sessions get their Xresources from? "$HOME/.Xdefaults" or from the root-window's RESOURCE_MANAGER property?
FWIW,
Wodisch