GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- No utmp entry. You must exec "login" from the lowe...
Operating System - HP-UX
1849586
Members
6837
Online
104044
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
Forums
Discussions
back
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
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-14-2001 04:44 PM
02-14-2001 04:44 PM
No utmp entry. You must exec "login" from the lowest level "sh".
I have the a problem on two terminals connected directly to my hpux box.
I read in another thread that the first field (id) in /etc/inittab should be four characters. The lines for the two terminals that are having some problems are only two characters.
a0:3:respawn:/usr/sbin/getty -h tty1p3 H
a1:3:respawn:/usr/sbin/getty -h tty1p4 H
After gettting the 'No utmp entry. You must exec "login" from the lowest level "sh"' the second login always works.
Looking at the man page for inittab seems to indicate that the id for each entry in inittab should be four characters long to avoid problems. I am guessing because mine are only two, they are corrupting my /etc/utmp file?
Would this be an accurate guess?
Another person posted to the same thread that to fix this problem /etc/utmp should be reset by `cp /dev/null /etc/utmp` and if that does not work do the same for /etc/utmpx
Is this ok to do while the system is running and users are logged in? Will it cause any problems?
I created/setup a terminal with SAM and it only created an entry in /etc/inittab with a two character id. If you should use a four character id why is SAM only using two?
Thanks,
- Justin
I read in another thread that the first field (id) in /etc/inittab should be four characters. The lines for the two terminals that are having some problems are only two characters.
a0:3:respawn:/usr/sbin/getty -h tty1p3 H
a1:3:respawn:/usr/sbin/getty -h tty1p4 H
After gettting the 'No utmp entry. You must exec "login" from the lowest level "sh"' the second login always works.
Looking at the man page for inittab seems to indicate that the id for each entry in inittab should be four characters long to avoid problems. I am guessing because mine are only two, they are corrupting my /etc/utmp file?
Would this be an accurate guess?
Another person posted to the same thread that to fix this problem /etc/utmp should be reset by `cp /dev/null /etc/utmp` and if that does not work do the same for /etc/utmpx
Is this ok to do while the system is running and users are logged in? Will it cause any problems?
I created/setup a terminal with SAM and it only created an entry in /etc/inittab with a two character id. If you should use a four character id why is SAM only using two?
Thanks,
- Justin
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2001 04:57 PM
02-14-2001 04:57 PM
Re: No utmp entry. You must exec "login" from the lowest level "sh".
You are right. This situation refers to utmp file corruption .
You can recreate /etc/utmp and /etc/utmpx by cp /dev/null /etc/utmp . However I dont know if doing it on a running system will affect presently logged in users. never done it. You may want to copy the existing files to saved location before trying it out.
Also two character ids in /etc/inittab is normal.
hope this helps.
You can recreate /etc/utmp and /etc/utmpx by cp /dev/null /etc/utmp . However I dont know if doing it on a running system will affect presently logged in users. never done it. You may want to copy the existing files to saved location before trying it out.
Also two character ids in /etc/inittab is normal.
hope this helps.
Learning is the Key!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2001 06:41 AM
02-16-2001 06:41 AM
Re: No utmp entry. You must exec "login" from the lowest level "sh".
This has happened to me a couple of times before, the only side-effect I've noticed of removing utmp is that after you've done it "who" will lead you to believe that there is no-one logged onto the machine. who sources utmp to see who is currently on the system - empty utmp=no-one (apparently) logged in.
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 2026 Hewlett Packard Enterprise Development LP