This is the documentation for the latest (main) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

CONFIG_ETH_NATIVE_POSIX_STARTUP_SCRIPT_USER

Username to run the host startup script

Type: string

Help

By default the startup script is run as a root user. Set here the
username to run the script if running it as a root user is not
desired. Note that this setting is only for startup script and not
for the setup script. The setup script needs to be run always as
a root user.

Direct dependencies

ETH_NATIVE_POSIX_STARTUP_AUTOMATIC && ETH_NATIVE_POSIX && NET_L2_ETHERNET

(Includes any dependencies from ifs and menus.)

Default

  • “”

Kconfig definition

At drivers/ethernet/Kconfig.native_posix:56

Included via Kconfig:8Kconfig.zephyr:40drivers/Kconfig:20drivers/ethernet/Kconfig:54

Menu path: (Top) → Device Drivers → Ethernet Drivers → Native Posix Ethernet driver → Start network interface automatically

config ETH_NATIVE_POSIX_STARTUP_SCRIPT_USER
    string "Username to run the host startup script"
    default ""
    depends on ETH_NATIVE_POSIX_STARTUP_AUTOMATIC && ETH_NATIVE_POSIX && NET_L2_ETHERNET
    help
      By default the startup script is run as a root user. Set here the
      username to run the script if running it as a root user is not
      desired. Note that this setting is only for startup script and not
      for the setup script. The setup script needs to be run always as
      a root user.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)