Remote User Logon-Linux Enterprise Application-Linux server application information. For details, refer to the following section. Some time ago, it was strange to find that some users cannot log on to our sam9260 server while remotely logging on to the tty terminal. However, after a while, this Unlogged user can log on again normally. When the user cannot log on, no error is prompted, and only login incorrect is prompted.
However, login on our linux pc server is completely normal, and the user configuration file on our 9260 server is completely copied from the pc. I didn't find the cause at first. Today I accidentally thought that a file may have an error. This file is the/etc/securetty file!
#/Etc/securetty: list of terminals on which root is allowed to login.
# See securetty (5) and login (1 ).
Console
# For people with serial port les
TtyS0
# For devfs
Tts/0
# Standard les
Tty1
Tty2
Tty3
Tty4
Tty5
Tty6
Tty7
...
# To use the root account to log on to telnet
Pts/0
Pts/1
Pts/2
Pts/3
...
In order to log on with the root account, you need to open the pts terminal. To open this pts terminal, you need to use the following command
/Bin/mount-t devpts/dev/pts
This is the file system required to activate remote tty terminals.
In the/etc/securetty file, only two pts/0 pts/1 are allowed, so at most two root users can log on to our sam9260 server through the tty terminal. Therefore, even if your user password is correct, you will obtain login incorrect.
Now the/etc/securetty file has been modified. Four root users can log on at the same time. The system is normal!
Note: If you are using a normal account to log on to telnet, there will be no limit on the number of terminals.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service