acassis commented on code in PR #18396:
URL: https://github.com/apache/nuttx/pull/18396#discussion_r2907512372
##########
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_BOARD_ETC_ROMFS_PASSWD_ENABLE`` is set. Enable the option and set
+credentials via ``make menuconfig``:
- nsh> cat /etc/passwd
- admin:8Tv+Hbmr3pLVb5HHZgd26D:0:0:/
+* ``CONFIG_BOARD_ETC_ROMFS_PASSWD_ENABLE=y``
+* ``CONFIG_BOARD_ETC_ROMFS_PASSWD_USER`` (default: ``admin``)
+* ``CONFIG_BOARD_ETC_ROMFS_PASSWD_PASSWORD`` (required, build fails if empty)
Review Comment:
You need to include:
CONFIG_NSH_CONSOLE_LOGIN=y
otherwise the login will not be required
--
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]