summaryrefslogtreecommitdiff
path: root/target/config
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2015-05-05 08:09:58 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2015-05-05 08:09:58 +0200
commit1d95a3bbf1cbd19ba8d8f495d7c514fa002d0f36 (patch)
tree264ae7527fe4921bfc01856dcff6fb3874f707ce /target/config
parent40e730a29b6f8bad5497740d500851213b5818d7 (diff)
allow to add a unprivileged user
Diffstat (limited to 'target/config')
-rw-r--r--target/config/Config.in.runtime39
1 files changed, 37 insertions, 2 deletions
diff --git a/target/config/Config.in.runtime b/target/config/Config.in.runtime
index 3af067c16..6c7676254 100644
--- a/target/config/Config.in.runtime
+++ b/target/config/Config.in.runtime
@@ -20,8 +20,43 @@ config ADK_RUNTIME_PASSWORD
default "$1$bJoW4DmS$7fUVat.9iFSAePzA4j4Jm."
help
Predefine the root password enabled in the built image.
- Use ./host_x86_64-linux-gnu/usr/bin/mkcrypt to generate the hash.
- Default password is linux123.
+ Use ./host_*/usr/bin/mkcrypt to generate the hash.
+ Default password is linux123
+
+config ADK_RUNTIME_ADDUSER
+ bool "add an user"
+ default n
+ help
+ Enable this option to add an unprivileged user.
+ Fixed UID/GID 100 is used. A group with the same name is added.
+
+config ADK_RUNTIME_USER_NAME
+ string "user name"
+ default "adk"
+ depends on ADK_RUNTIME_ADDUSER
+
+config ADK_RUNTIME_USER_PASSWORD
+ string "user password"
+ default "$1$bJoW4DmS$7fUVat.9iFSAePzA4j4Jm."
+ depends on ADK_RUNTIME_ADDUSER
+ help
+ Predefine the user password enabled in the built image.
+ Use ./host_*/usr/bin/mkcrypt to generate the hash.
+ Default password is linux123
+
+config ADK_RUNTIME_USER_HOME
+ string "user home directory"
+ default "/home/adk"
+ depends on ADK_RUNTIME_ADDUSER
+ help
+ Set the home directory to use.
+
+config ADK_RUNTIME_USER_SHELL
+ string "user shell"
+ default "/bin/sh"
+ depends on ADK_RUNTIME_ADDUSER
+ help
+ Set the shell to use.
config ADK_RUNTIME_START_SERVICES
bool "start services by default"