- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Root user can not logon from console
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp
Knowledge Base
Discussions
Forums
Discussions
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
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
11-26-2002 05:29 AM
11-26-2002 05:29 AM
Root user can not logon from console
The root user can not logon from console,but can logon from client by telnet.Following message appear when I logon at console:
No utmp entry. You must exec "login" from the lowest level "sh".
Thanks for any help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2002 05:34 AM
11-26-2002 05:34 AM
Re: Root user can not logon from console
Sounds like you have a messed up .profile or .kshrc/.cshrc
What did you recently change? /etc/passwd? .profiles?
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2002 05:35 AM
11-26-2002 05:35 AM
Re: Root user can not logon from console
way and still have a remnant of corruption.
The proper way to clear a corruption problem with /etc/utmp is to do the
following:
1. cp /etc/utmp /etc/utmp.040802
2. rm /etc/utmp
3. touch /etc/utmp
n4000: / # ll /etc/utmp
-rw-r--r-- 1 root root 1080 Apr 8 08:57 /etc/utmp
n4000: / # cd /etc
n4000: /etc # ll -d
dr-xr-xr-x 31 bin bin 7168 Apr 6 18:34 .
4. Use chown and/or chmod to make changes to persmissions or owners as needed.
5. init q
If that doesn't work, then:
1. cp /etc/inittab /etc/inittab.040802
2. cp /usr/newconfig/etc/inittab /etc/inittab
3. init q
If that doesn't work, then shutdown and reboot the system at your earliest
convenience.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2002 05:36 AM
11-26-2002 05:36 AM
Re: Root user can not logon from console
One approach is to fix the corrupted entries only (and keep the good part) using
/usr/sbin/acct/fwtmp , another approach is just to clean utmp (and lose
all entries).
For the latter one just login as root and recreate the file:
# /etc/utmp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2002 05:46 AM
11-26-2002 05:46 AM
Re: Root user can not logon from console
definately utmp
Also can
Copy the utmp file
# /usr/lib/acct/fwtmp < /etc/utmp > /tmp/utmp
Remake binary file
# /usr/lib/acct/fwtmp -ic < /tmp/utmp > /etc/utmp
steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2002 05:53 AM
11-26-2002 05:53 AM
Re: Root user can not logon from console
The daemon provided by the vendor seems to step on getty's toes. To resolve this,
ensure that the entry in /etc/inittab looks like this:
spbd:234:respawn:/etc/SpaceWare/spaceballd -d /dev/tty1p0 /dev/null 2>&1
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2002 06:54 AM
11-27-2002 06:54 AM
Re: Root user can not logon from console
On the console, when @ is encountered, the HPUX kernel ignores the previous entries, so you will not able to logon.
Change the root password without @ in the string.
-Venkat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2004 10:27 PM
11-17-2004 10:27 PM
Re: Root user can not logon from console
"\" will change the default meaning of "@" in HPUX.