diff options
| author | Otavio Salvador <otavio@ossystems.com.br> | 2012-07-23 14:37:17 -0300 |
|---|---|---|
| committer | Scott Garman <scott.a.garman@intel.com> | 2012-08-08 11:10:48 -0700 |
| commit | c2bd2936907ea8b776d58e8cc58a8359a6e7e9b9 (patch) | |
| tree | d5b87c09bb998354ebccc3be6330ff3d11651ad8 | |
| parent | 42e9f988bc691ca763d5eda3537d6281b7902794 (diff) | |
| download | openembedded-core-c2bd2936907ea8b776d58e8cc58a8359a6e7e9b9.tar.gz openembedded-core-c2bd2936907ea8b776d58e8cc58a8359a6e7e9b9.tar.bz2 openembedded-core-c2bd2936907ea8b776d58e8cc58a8359a6e7e9b9.zip | |
shadow: use 'users' group by default
The rootfs has 'users' group at number 100 and without this fix it
would assign to a non-existent group and if a group with gid as 1000
is created later it would own all files for users created.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Reworked commit to fix merge conflicts with denzil branch.
Signed-off-by: Scott Garman <scott.a.garman@intel.com>
| -rw-r--r-- | meta/recipes-extended/shadow/shadow_4.1.4.3.bb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/recipes-extended/shadow/shadow_4.1.4.3.bb b/meta/recipes-extended/shadow/shadow_4.1.4.3.bb index f892eb93a0..38cc0059bb 100644 --- a/meta/recipes-extended/shadow/shadow_4.1.4.3.bb +++ b/meta/recipes-extended/shadow/shadow_4.1.4.3.bb @@ -9,7 +9,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=08c553a87d4e51bbed50b20e0adcaede \ DEPENDS = "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" RDEPENDS_${PN} = "shadow-securetty ${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_PLUGINS}', '', d)}" -PR = "r8" +PR = "r9" SRC_URI = "http://pkg-shadow.alioth.debian.org/releases/${BPN}-${PV}.tar.bz2 \ file://login_defs_pam.sed \ @@ -83,6 +83,9 @@ do_install_append() { sed -i 's:/bin/bash:/bin/sh:g' ${D}${sysconfdir}/default/useradd sed -i '/^CREATE_MAIL_SPOOL/ s:^:#:' ${D}${sysconfdir}/default/useradd + # Use users group by default + sed -i 's,^GROUP=1000,GROUP=100,g' ${D}${sysconfdir}/default/useradd + install -d ${D}${sbindir} ${D}${base_sbindir} ${D}${base_bindir} for i in passwd chfn newgrp chsh groups ; do mv ${D}${bindir}/$i ${D}${bindir}/$i.${PN} |
