Operating System - HP-UX
1833417 Members
3421 Online
110052 Solutions
New Discussion

securetty/root login at console

 
Bryan_6
Frequent Advisor

securetty/root login at console

All,

I realize there have been quite a few posts regarding this subject, but I seem to be having a problem for which I couldn't find any information.

I have set up my securetty file to restrict root login access exclusively to the console (the only line in the file is 'console' w/o quotes). However, when I try to login as root at the console, I get login incorrect. I've played with permissions on securetty which didn't help. I'm running a TCB environment and using HP's web console. It seems this is a trivial problem, but I can't see why it's failing. Does anyone have any ideas?
5 REPLIES 5
Sridhar Bhaskarla
Honored Contributor

Re: securetty/root login at console

Hi,

What is the syntax of /etc/securetty?. It should be just "console". I have seen people putting "/dev/console".

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Bryan_6
Frequent Advisor

Re: securetty/root login at console

All I have in there is console.
Sridhar Bhaskarla
Honored Contributor

Re: securetty/root login at console

Oops.. Lately I have been such a _

You did mention that console is only the line.

Do a "cat -v /etc/securetty" and see if there are any spaces before or after the word console.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Darren Prior
Honored Contributor

Re: securetty/root login at console

Hi Bryan,

Could you login successfully as root before you put the securetty file into place?

regards,

Darren.
Calm down. It's only ones and zeros...
Bryan_6
Frequent Advisor

Re: securetty/root login at console

Alright, I just realized what I did wrong (talk about being a _!). I recently changed root password and, being the security-conscious kinda guy that I am, put in a bunch of 'special' characters, including the '@' symbol . Since I have no control over my terminal settings until after I login, and being that HPUX thinks the '@' symbol is something other than the '@' symbol (isn't it delete?), all my login attempts as root on the console failed. Once I changed this, it worked.

Thanks anyways for the different clues...