HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Strange behaviour from hpterm
Operating System - HP-UX
1833949
Members
1845
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
02-21-2007 06:54 AM
02-21-2007 06:54 AM
Strange behaviour from hpterm
Hello admins,
I'm having a problem with hpterm. When I start it and I run "who am i", I get the following:
pp073000@sgmps2a[/usr/users/pp073000]> who am i
???? pty/ttys8 Feb 21 14:48
It seems that the shell doesn't know who I am. If I run "whoami", it works.
The problem is that I want to run the ldappasswd command from an hpterm and it uses the "who am i" command.
OS is HPUX 11.11 using CDE.
Thanks!
Rikk
I'm having a problem with hpterm. When I start it and I run "who am i", I get the following:
pp073000@sgmps2a[/usr/users/pp073000]> who am i
???? pty/ttys8 Feb 21 14:48
It seems that the shell doesn't know who I am. If I run "whoami", it works.
The problem is that I want to run the ldappasswd command from an hpterm and it uses the "who am i" command.
OS is HPUX 11.11 using CDE.
Thanks!
Rikk
Carpe Diem
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2007 09:37 AM
02-21-2007 09:37 AM
Re: Strange behaviour from hpterm
Is this local or via Reflections or similar.
Does the problem change if you start hpterm with a -ls option ?
Could wtmp etc be corrupted ? just some thoughts.
ps all users and what shell ?
Does the problem change if you start hpterm with a -ls option ?
Could wtmp etc be corrupted ? just some thoughts.
ps all users and what shell ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2007 02:29 PM
02-21-2007 02:29 PM
Re: Strange behaviour from hpterm
Try a 'real' telnet from your PC or another box. Does who work correctly now? Does the problem occur with just one user or are all users affected? These questions are leading up to a common conclusion: who uses /var/adm/wtmp which is easily corrupted with bad connections. Use the last command to see if there are problems in the wtmp file:
last -50
or for the problem user:
last -50 probuser
If you see orphaned sessions, this may be the problem. A new wtmp file is needed (reboot).
Also check the environment with the set command. Check that logname command works:
logname
Also verify that $LOGNAME and $USER are set to the user's login name.
Finally, the terminal emulators in CDE (xterm, dtterm and hpterm) run a "no login" session which has a number of funny side effects. To get hpterm (and the others) to really login, do this in every user's HOME directory:
echo "*loginShell:true" >> $HOME/.Xdefaults
Now each terminal will run the user's profiles like a normal login and the shell for the window will have a - in front (like: -sh) indicating a login shell.
Bill Hassell, sysadmin
last -50
or for the problem user:
last -50 probuser
If you see orphaned sessions, this may be the problem. A new wtmp file is needed (reboot).
Also check the environment with the set command. Check that logname command works:
logname
Also verify that $LOGNAME and $USER are set to the user's login name.
Finally, the terminal emulators in CDE (xterm, dtterm and hpterm) run a "no login" session which has a number of funny side effects. To get hpterm (and the others) to really login, do this in every user's HOME directory:
echo "*loginShell:true" >> $HOME/.Xdefaults
Now each terminal will run the user's profiles like a normal login and the shell for the window will have a - in front (like: -sh) indicating a login shell.
Bill Hassell, sysadmin
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP