Skip to contentSkip to conversation

builder: Add password for user

PATCH In review Saul Wold 2 participants 3 messages Nov 1, 2012

lore
Share & tools
lore

Saul Wold

author
#0 lore raw

PATCH 1/1 builder: Add password for user

This is needed to allow openssh to work correctly for the Eclipse plugin to have access to the build appliance to view/modify recipes and lauch builds

---
 meta/recipes-graphics/builder/builder_0.1.bb |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
meta/recipes-graphics/builder/builder_0.1.bb +2 -1
index 5c12c14..d46e960 100644
@@ -18,7 +18,8 @@ inherit useradd
 USERADD_PACKAGES = "${PN}"
 USERADD_PARAM_${PN} = "--system --create-home \
                        --groups video,tty,audio \
-                       --user-group ${PN}"
+                       --user-group ${PN} \
+                       --password ${PN}"
 
 do_install () {
 	install -d -m 755 ${D}${sysconfdir}/mini_x/session.d
Signature · 1 line
1.7.7.6
#1 lore raw
Quoted 14 lines · Saul Wold

This is needed to allow openssh to work correctly for the Eclipse plugin to have access to the build appliance to view/modify recipes and lauch builds

---
  meta/recipes-graphics/builder/builder_0.1.bb |    3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)
meta/recipes-graphics/builder/builder_0.1.bb +0 -0
index 5c12c14..d46e960 100644

meta/recipes-graphics/builder/builder_0.1.bb inherit useradd · line 22

Quoted 6 lines
meta/recipes-graphics/builder/builder_0.1.bb +2 -1
@@ -18,7 +18,8 @@ inherit useradd
  USERADD_PACKAGES = "${PN}"
  USERADD_PARAM_${PN} = "--system --create-home \
                         --groups video,tty,audio \
-                       --user-group ${PN}"
+                       --user-group ${PN} \
+                       --password ${PN}"

The above won't work. The password passed to --password, must be in encrypted in crypt(3) format.

--Mark

Quoted 4 lines
meta/recipes-graphics/builder/builder_0.1.bb +0 -0
  do_install () {
  	install -d -m 755 ${D}${sysconfdir}/mini_x/session.d
 
author
#2 lore raw
Quoted 10 lines · Mark Hatle
Quoted 9 lines · Saul Wold

This is needed to allow openssh to work correctly for the Eclipse plugin to have access to the build appliance to view/modify recipes and lauch builds

---
  meta/recipes-graphics/builder/builder_0.1.bb |    3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)
Quoted 16 lines

meta/recipes-graphics/builder/builder_0.1.bb inherit useradd · line 22

Quoted 12 lines
meta/recipes-graphics/builder/builder_0.1.bb +2 -1
index 5c12c14..d46e960 100644
@@ -18,7 +18,8 @@ inherit useradd
  USERADD_PACKAGES = "${PN}"
  USERADD_PARAM_${PN} = "--system --create-home \
                         --groups video,tty,audio \
-                       --user-group ${PN}"
+                       --user-group ${PN} \
+                       --password ${PN}"

The above won't work. The password passed to --password, must be in encrypted in crypt(3) format.

Ah, thanks, turns out I also missed the PR Bump!

v2 coming

Sau!

Quoted 14 lines

--Mark

meta/recipes-graphics/builder/builder_0.1.bb inherit useradd

Quoted 4 lines
meta/recipes-graphics/builder/builder_0.1.bb +0 -0
  do_install () {
      install -d -m 755 ${D}${sysconfdir}/mini_x/session.d
 

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core