Operating System - HP-UX
1833678 Members
4255 Online
110062 Solutions
New Discussion

Re: Can't login as root via Console;

 
SOLVED
Go to solution
OFC_EDM
Respected Contributor

Can't login as root via Console;

I have a system where I want to restrict root login by creating a /etc/securetty file.

Before creating the file I connected to the server via the GSP console using Telnet. And attempted a root login. I cannot login as root. I have to login as a user and su to root.

This is the behaviour I want. BUT!! I don't know why it's working. THERE ISN'T a /etc/securetty file on the system.

FYI: It's a basic HP-UX 11.11 system.

Any ideas what else could be restricting root login??
The Devil is in the detail.
13 REPLIES 13
Arunvijai_4
Honored Contributor

Re: Can't login as root via Console;

Hello,

If this is a trusted system, and if you would have tried with wrong password, root account might have disabled. To enable it again,

# /usr/lbin/modprpw -k root

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Steve Steel
Honored Contributor

Re: Can't login as root via Console;

Hi

Its not trusted or su would not work

What message do you see

Check root .profile and /etc/profile for a test


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
OFC_EDM
Respected Contributor

Re: Can't login as root via Console;

It's not a trusted system.

I've checked the /.profile and the /etc/profile for tests and nothing.

Same profiles as on my other systems where they can login as root from the console.

Also I've quadruple checked that I'm using the correct password.
The Devil is in the detail.
Robert-Jan Goossens
Honored Contributor
Solution

Re: Can't login as root via Console;

Kevin,

Do you use a special character (#,@ etc) in your root password string ?

Regards,
Robert-Jan

OFC_EDM
Respected Contributor

Re: Can't login as root via Console;

Yes we do.

The ! symbol is used but would that cause an issue?
The Devil is in the detail.
OFC_EDM
Respected Contributor

Re: Can't login as root via Console;

I'm going to test the symbol idea and reset the password to something simple and see if that works.
The Devil is in the detail.
OFC_EDM
Respected Contributor

Re: Can't login as root via Console;

Also use the @ symbol in the passwd.
The Devil is in the detail.
OFC_EDM
Respected Contributor

Re: Can't login as root via Console;

Took out the special characters and I can login via the console as root.

Is there a fix for this?

I'd like to be able to use the special characters.
The Devil is in the detail.
John Dvorchak
Honored Contributor

Re: Can't login as root via Console;

There is no fix,that I am aware of, for the special character in root's password from the console. This is a throw back to the old days of Teletype machines for terminals instead of the nice electronic devices we have today.
Sorry, but this is something that we Admins have been dealing with since the 1970's.
Good luck.
If it has wheels or a skirt, you can't afford it.
Jeff_Traigle
Honored Contributor

Re: Can't login as root via Console;

You shouldn't need to abandon all special characters. @ and # are problematic. See the following thread:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=805657
--
Jeff Traigle
erics_1
Honored Contributor

Re: Can't login as root via Console;

Kevin,

Also see the reference in the passwd manpage to avoid using @ and #.

Eric
James R. Ferguson
Acclaimed Contributor

Re: Can't login as root via Console;

Hi Kevein:

Have a look at the 'getty(1M)' manpages for the discussion of special characters to avoid during login.

Regards!

...JRF...
Shal
New Member

Re: Can't login as root via Console;

Hi,

You can also use backslash (\) before the special characters.. just a workaround though

Rgds,
Shal