HP-UX - logname command is not working
Asked by M. Sukumar
Q. When I logged into my server, I got these error
logname: could not get login name
I am not getting what is the problem for not executing these logname command in /etc/profile, and also I checked my /etc/utmp /etc/utpmx files are not corrupted. Skumar further tell us that he login over ssh, and he has tried the full path /usr/bin/logname, and permission are also good, but it is not working. Remaining commands like who , who am i , all are working properly. Further command 'echo $LOGNAME' giving him correct output.
A. Since files are /etc/utmp /etc/utpmx files are not corrupted, problem is basically related to sshd server. By setting UsePrivilegeSeparation from:
UsePrivilegeSeparation Yes
To
UsePrivilegeSeparation No
should fix the problem. Change the values in sshd_config file and restart the network. Please note that UsePrivilegeSeparation - specifies whether sshd separates privileges by creating an unprivileged child process to deal with incoming network traffic. After successful authentication, another process will be created that has the privilege of the authenticated user. The goal of privilege separation is to prevent privilege escalation by containing any corruption within the unprivileged processes. The default is “yes”. Privilege Separation should be always turned on for security. You should upgrade both sshd and HP-UX with up to date patches to solve this problem.
Want to stay up to date with the latest Linux tips, news and announcements? Subscribe to our free e-mail newsletter or RSS feed to get all updates.
You can Email this page to a friend.
You may also be interested in other helpful articles:
- Solaris managing users - Gathering more information
- Security Tip: Find out current working directory of a process
- Firefox 2.0 - First impression
- Email Post Problem with wp-email plugin
- Why my server recognized only 1 CPU in an SMP server under Linux?
Discussion on This Article:
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!


I had same problem thanks for you hints
fantastic post… a massive help