From liberty on Tue, 18 Jan 2000
hi ; !
I can t make a "root" login from a computer to the linux computer with telnet , but I can make it with another name user , and after i can make "su" command .... do you know this problem or security,? thanks
That's the way it's supposed to work. The normal login services check for a file named /etc/securetty and will refuse to accept a direct root login from any terminal/device that is not listed there.
Depending on the exact distribution and version it may be possible to simply rename that file if you insist on over-riding this policy and allowing root logins from anywhere. In other cases you might have to edit one or more of the "service" files under /etc/pam.d/ to remove the lines that refer to the PAM securetty module.
In general it is better to accept this policy and use 'su' Indeed it is even better to disable telnet and replace it with 'ssh' (which generally doesn't impose this restriction, though it can be configured to do so).
1 | 2 | 3 | 5 | |||||
5 | 6 | 7 | 8 | 9 | ||||
10 | 11 | 13 | 14 | 15 | 16 | 17 | ||
18 | 19 | 20 | 21 | 22 | 23 | 24 | ||
26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | |
34 | 36 | 37 | 38 | 39 | 42 | 41 | ||
42 | 43 | 44 | 45 | 46 | 47 | 48 |