Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a strange root access issue - I'm able to login as root via SSH but I'm not able login to the physical machine via terminal.

Some more info:

- running CentOS 6.4
- password authentication (no SSH key)
- nothing found for root at /var/log/secure
- I'm using terminal (KVM) connected directly to the localhost machine

/etc/securetty is

console
vc/1
vc/2
vc/3
vc/4
vc/5
vc/6
vc/7
vc/8
vc/9
vc/10
vc/11
tty1
tty2
tty2
tty3
tty4
tty5
tty6
tty7
tty8
tty9
tty10
tty11

Any clue what can be wrong?

Thanks

share|improve this question

closed as not a real question by Michael Hampton, mdpc, Ward, Jenny D, RolandoMySQLDBA May 9 '13 at 15:56

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

1  
Are you SSHing in with a key or a password? What do the authentication logs say? What error do you get when attempting to log in? Are you sure you're connecting to the same machines (i.e. DNS/IP haven't changed unexpectedly)? Throw us a bone here, dude. –  ceejayoz May 8 '13 at 17:12
    
Added more info –  Adam Interact May 8 '13 at 17:28
2  
Set the root password (again) to be sure. And check the contents of /etc/securetty. –  Hauke Laging May 8 '13 at 17:32
    
Why does then SSH root access/pass works and locally not? –  Adam Interact May 8 '13 at 17:37
    
+1 for "what do the authentication logs say". –  Jenny D May 9 '13 at 7:59
add comment

3 Answers

I guess you missing KVM port in /etc/sercuretty.

Do this:

echo "ttyS*" >> /etc/securetty

where * is the port number that KVM connect to.

Then try to login.

share|improve this answer
    
I'm using Tripp Lite KVM B020-U08-19 (USB/PS version). Will check it ASAP –  Adam Interact May 8 '13 at 19:27
add comment

Is there any chance that you got a dysfonctionnal keyboard ? It could be a physical problem or simply a charset/keymap problem.

Maybe you try to use a very simple password (just for the test case) and try to type your password in place of the login, at the prompt, to see if it echoes the password you are willing to enter.

Cheers.

K.

share|improve this answer
    
Used with test user on same machine, password slightly different from root - works, so I think keyboard (or mapping) is OK. –  Adam Interact May 8 '13 at 19:20
add comment

Is there anything in /etc/security/access.conf (or in another file) that should prevent Root from gaining a local access ? Can you, from your test user, make an "su -" ?

share|improve this answer
    
/etc/security/access.conf - all related to root is commented out. Yes, I'm able to do "su -". –  Adam Interact May 8 '13 at 19:32
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.