linguini1 commented on code in PR #18396:
URL: https://github.com/apache/nuttx/pull/18396#discussion_r2809657083
##########
Documentation/platforms/sim/sim/boards/sim/index.rst:
##########
@@ -2008,24 +2008,22 @@ mounted at ``/etc`` and will look like this at run-time:
nsh>
``/etc/init.d/rc.sysinit`` is system init script; ``/etc/init.d/rcS`` is the
-start-up script; ``/etc/passwd`` is a the password file. It supports a single
-user:
+start-up script; ``/etc/passwd`` is the password file.
-.. code:: text
-
- USERNAME: admin
- PASSWORD: Administrator
-
-.. code:: console
+The ``/etc/passwd`` file is auto-generated at build time when
+``CONFIG_ETC_ROMFS_GENPASSWD`` is enabled. To configure the admin user and
+password, run ``make menuconfig`` and set:
- nsh> cat /etc/passwd
- admin:8Tv+Hbmr3pLVb5HHZgd26D:0:0:/
+* ``CONFIG_ETC_ROMFS_GENPASSWD=y``
+* ``CONFIG_ETC_ROMFS_PASSWD_USER`` (default: ``admin``)
+* ``CONFIG_ETC_ROMFS_PASSWD_PASSWORD`` (required, build fails if empty)
-The encrypted passwords in the provided passwd file are only valid if the
-TEA key is set to: 012345678 9abcdef0 012345678 9abcdef0.
+The password is hashed with TEA at build time using
+``tools/mkpasswd.py``; the plaintext is **not** stored in the firmware.
Review Comment:
Not critical, but maybe this documentation which is repeated for multiple
boards could be put somewhere common (i.e. a page about password usage) and
then linked to from these boards instead.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]