In uClinux, add the user name and password for Telnetd login.

Source: Internet
Author: User
Tags addgroup
In uClinux, add the user name and password for Telnetd login-Linux general technology-Linux programming and kernel information. The following is a detailed description. Method 1:

When compiling the Kernel, make menuconfig, open Tinglogin, select adduser (mainly used to create the user's password), and addgroup (otherwise, an error will be reported during compilation, which is used in the adduser program ), login (required for login), login;/etc/securetty (Security report, can be left blank. When the entered login user name is not the user name, a prompt will be prompted, because linux telnetd generally does not allow root login. If the user needs to set root login, it will prompt, but the user can still log on successfully), passwd (login password), there are some encryption options available below, in this way, the password set by the user is encrypted in/etc/passwd. Of course, the system has the default encryption method, so you can choose not.

After the compilation is complete, the user will prompt to enter the user name and password when logging on via telnet, but the user name is root (there will be an error message on the terminal, but login is not affected), password (default password, encrypted, so I do not know ). In this case, you need to use adduser to create a user and password, and fill in the password you know under/etc/passwd with the encrypted password to the root password location, so that you can log on. After you know the password, you can disable adduser and addgroup in make menuconfig. Note: To enable your password to remain the value you set after the terminal is started, you must modify it in passwd under \ uClinux-dist-v4 \ vendors \ AnalogDevices \ BF561-EZKIT \ before compilation.

Method 2:

After you know the user name and password under the encrypted/etc/passwd, you can directly

Select login in Core Applications, so that you can enter the root and password you know when logging on.
Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.