- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: root can't login from console
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
04-22-2003 02:46 PM
04-22-2003 02:46 PM
I can login as anyother user at console and then su to root, it works.The root login also works from anywhere else.
What to why it is happening and how it could be taken care?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2003 02:52 PM
04-22-2003 02:52 PM
Re: root can't login from console
# ll /etc/securetty
If so do:
# cat /etc/securetty
If it has anything besided the word console in it, it is probably incorrect. You usually use this file to allow root access from the console only. The file should look like:
# cat /etc/securetty
console
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2003 03:10 PM
04-22-2003 03:10 PM
Re: root can't login from console
Test it.
re-create new /etc/securetty file with the word console in it.
test
echo "console" >/etc/securetty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2003 03:11 PM
04-22-2003 03:11 PM
Re: root can't login from console
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2003 03:16 PM
04-22-2003 03:16 PM
Re: root can't login from console
Can OTHER users log in from the console?
If so, log in as one of them, su - root and report results.
The most likely cause of this problem is when you went trusted root expired, but console login is supposed to work.
You do need a /etc/securetty file in order for anyone to login from the console.
You might need to boot the system into single user mode and follow the instructions above.
Single user mode:
Boot either with powerswitch or root logon that still works, shutdown -ry now
At the 10 second prompt interupt.
bo pri
Y when prompted to interact with the IPL
hpux -is for single user mode.
hpux -lm if you ever need to go into lvm mode.
In single user mode, follow the instructions in the prior post and you should be okay.
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
04-22-2003 03:22 PM
04-22-2003 03:22 PM
Re: root can't login from console
>> Yes
If so, log in as one of them, su - root and report results.
>> As earlier mentioned, can login as anyother user and su - as root.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2003 03:54 PM
04-22-2003 03:54 PM
Re: root can't login from console
Need a solution ? Problem still persists.
TIA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2003 04:01 PM
04-22-2003 04:01 PM
Re: root can't login from console
Login as other user and su to root.
#ps -ef|grep console
#kill -9 "PID of getty process for console"
Now try to login on console as root
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2003 04:17 PM
04-22-2003 04:17 PM
Re: root can't login from console
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2003 05:09 PM
04-22-2003 05:09 PM
Re: root can't login from console
How are you connecting to console?
Is console directly connected to a terminal or you are using remote console.
This is to make sure if you are using remote console you are connecting to right one.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2003 05:41 PM
04-22-2003 05:41 PM
Re: root can't login from console
Hope it helps
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2003 05:42 PM
04-22-2003 05:42 PM
Re: root can't login from console
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2003 05:47 PM
04-22-2003 05:47 PM
Re: root can't login from console
Just a crazy question for you, but when you login on the console, what does the 'tty' command return?
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2003 05:50 PM
04-22-2003 05:50 PM
Re: root can't login from console
Also, can you telnet to the box and login directly as root, or do you have the same problem there?
You mentioned that this is a trusted system. Has this problem just started recently or has it always been this way? If it just started, how long has this system been trusted?
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2003 05:58 PM
04-22-2003 05:58 PM
Re: root can't login from console
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2003 06:07 PM
04-22-2003 06:07 PM
Re: root can't login from console
Logon on the system as root by either ssh or su
and reset the root passwd as
#/usr/lbin/modprpw -k root
#/usr/lbin/modprpw -x root
Now try to logon console using new root password.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2003 06:11 PM
04-22-2003 06:11 PM
Re: root can't login from console
Just a couple of suggestions. First, try Michael Tully's advice and go ahead and create an /etc/securetty file with the 'console' entry in it. Since you are running a secure system, you probably will want to restrict root to logging in from the console anyway.
If that doesn't work, I'll repeat my previous question and ask what the 'tty' command returns when you are logged in at the system console.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2003 08:30 PM
04-22-2003 08:30 PM
SolutionCreate a /etc/securetty as suggested. one more thing, have u changed root's password recently, if so check that any @ or # like characters are there in the password. these characters in root's password give's problem. remove them and try.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2003 01:01 AM
04-23-2003 01:01 AM
Re: root can't login from console
Can you post the output of /usr/lbin/getprpw root?
Also, can you post the console line from /tcb/files/ttys, and from /tcb/files/devassign.
I'm hoping that one of these may show some form of locking, or that root is not allowed to use the console.
Furthermore I suggest that you delete /etc/securetty and check whether you can login as root at the console. This file is not required for root console access. If the file does exist and is empty or unreadable then root cannot login directly. Any entry in the file is understood to be a terminal that root may login from.
regards,
Darren
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2003 01:24 AM
04-23-2003 01:24 AM
Re: root can't login from console
On console login as another user - su to root.
cp /etc/passwd /etc/passback
vi /etc/passwd
Under the root entry insert a line and recreate the root entry but with no password.
Delete the old root entry.
exit and login as root.
if that works then create root password.
If it fails login as user - su to root and copy /etc/passback to /etc/passwd.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2003 01:29 AM
04-23-2003 01:29 AM
Re: root can't login from console
You may have overlooked that this is a trusted system, so root's entry in /etc/passwd will not have an encrypted password
regards,
Darren.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2003 01:38 AM
04-23-2003 01:38 AM
Re: root can't login from console
Good point - I missed that - oops.
I still think a re-write of the root entry will not go amiss.
When did this stop working and what had been done immediatly prior to it occuring.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2003 01:42 AM
04-23-2003 01:42 AM
Re: root can't login from console
Someone just gave a very good point here. If you ssh to the system and then su, you have a different character interpetation than on the console.
So by logging in directly as root on the console can block you from loggin in.
A very good option is to change the password to a password without special characters, and test it on the console then.
Also create a file /etc/securetty by :
echo "console" >/etc/securetty
chmod 400 /etc/securetty
Ones logged in on the console (as normal user or root), please give us the output of the "tty" command
Best Regs David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2003 07:50 AM
04-23-2003 07:50 AM
Re: root can't login from console
Thanks a lot you guys for taking time and analysing the problem. You people are marvellous.
I would like to specially thank VV Ravi Kumar and David for their excellent diagnosis.