From 6032dcdb32b99b5144cd9a8afdd801b6c4f3f873 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Wed, 27 Nov 2013 09:13:30 -0800 Subject: [PATCH] ref-manual: Added extrausers class and EXTRA_USERS_PARAMS variable. (From yocto-docs rev: e339505941f620ff74cd1bdd5f652c341baf2aad) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/ref-manual/ref-classes.xml | 38 ++++++++++++++++++++++ documentation/ref-manual/ref-variables.xml | 34 +++++++++++++++++++ 2 files changed, 72 insertions(+) diff --git a/documentation/ref-manual/ref-classes.xml b/documentation/ref-manual/ref-classes.xml index 7124c49560..9752767c69 100644 --- a/documentation/ref-manual/ref-classes.xml +++ b/documentation/ref-manual/ref-classes.xml @@ -535,6 +535,44 @@ +
+ <filename>extrausers.bbclass</filename> + + + The extra users (extrausers) class allows + additional user and group configuration to be applied at the image + level. + Inheriting this class either globally or from an image recipe allows + additional user and group operations to be performed using the + EXTRA_USERS_PARAMS + variable. + + The user and group operations added using the + extrausers class are not tied to a specific + recipe but can be performed across the image as a whole. + See the + useradd + class for information on how to add user and group configuration + to a specific recipe. + + + + + Here is an example that uses this class in an image recipe: + + inherit extrausers + EXTRA_USERS_PARAMS = "\ + useradd -p '' tester; \ + groupadd developers; \ + userdel nobody; \ + groupdel -g video; \ + groupmod -g 1020 developers; \ + usermod -s /bin/sh tester; \ + " + + +
+
Debian Renaming - <filename>debian.bbclass</filename> diff --git a/documentation/ref-manual/ref-variables.xml b/documentation/ref-manual/ref-variables.xml index 22a0505523..70d510887a 100644 --- a/documentation/ref-manual/ref-variables.xml +++ b/documentation/ref-manual/ref-variables.xml @@ -1788,6 +1788,40 @@ + EXTRA_USERS_PARAMS + + + When a recipe inherits the + extrausers + class, this variable provides image level user and group + operations. + This is a more global method of providing user and group + configuration as compared to using the + useradd + class, which ties user and group configurations to a + specific recipe. + + + + The set list of commands you can configure using the + EXTRA_USERS_PARAMS is shown in the + extrausers class. + These commands map to the normal Unix commands of the same + names: + + # EXTRA_USERS_PARAMS = "\ + # useradd -p '' tester; \ + # groupadd developers; \ + # userdel nobody; \ + # groupdel -g video; \ + # groupmod -g 1020 developers; \ + # usermod -s /bin/sh tester; \ + # " + + + + + F