Operating System - HP-UX
1833788 Members
2686 Online
110063 Solutions
New Discussion

Re: Changing 'root' Password

 
Dan Matlock_1
Regular Advisor

Changing 'root' Password

Maybe I am missing something here but when I changed 'root' password on trusted system, I can't telnet directly in as 'root' w/new passwd anymore. I can 'ssh' in no problem. What changed or better yet what do I have to change to fix this. Kind of like it this way thou.
3 REPLIES 3
Con O'Kelly
Honored Contributor

Re: Changing 'root' Password

Hi Dan

It doesn't really sound like something thats affected by a password change.
My guess is that you have an /etc/securetty file which affects direct logins as root. SSH does not use this file.

To disable direct root logins via SSH you need to set the PermitRootLogins parameter to 'no' in sshd_config file.

Cheers
Con
Dan Matlock_1
Regular Advisor

Re: Changing 'root' Password

I also thought someone created my /etc/securetty file, but they don't exsist. More curious as to why, but I do like the result. I just tried this on a known working dev. server, and sure enough that when I run: passwd root and make the change, I can't telnet directly in as root.
Dan Matlock_1
Regular Advisor

Re: Changing 'root' Password

thanx for the feedback