RTEMS | Ignore empty user names as input (!202)

shuhua hua (@huangshuhua) gitlab at rtems.org
Thu Sep 5 08:19:13 UTC 2024




shuhua hua commented on a discussion: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/202#note_111788


Just as when we use other systems such as the Linux system, user account information is typically stored in the /etc/passwd file, with each account having a line of records that include the username, password (stored in an encrypted form), user ID, group ID, and other information. Records with a blank username are not permitted because this would cause the system to be unable to correctly identify and manage the user. 
If a user does not wish to use a username, they can set the login_check parameter to NULL in rtems_shell_init when logging into the shell. 
Currently, during system startup, when prompting the user to enter a username, some additional printouts may be appended after the username prompt. Users usually press the Enter key, which then leads to a password prompt, and pressing Enter again will lead to a prompt to re-enter the username. By incorporating a check to see if the user's input for the username is empty, the system can directly prompt the user to enter a username, thus avoiding the aforementioned operations.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/202#note_111788
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20240905/5f36e883/attachment-0001.htm>


More information about the bugs mailing list