summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2012-07-23 14:37:17 -0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-07-26 14:40:45 +0100
commit93060b69c761cde73a706d19ba82e59ed0f709a7 (patch)
treec7bb3f5159d558f77a7cc99ad43c26bddab3d1c6 /meta
parent92cfb88ff303df2ed585bad9ea62fc891b1c9081 (diff)
downloadpoky-93060b69c761cde73a706d19ba82e59ed0f709a7.tar.gz
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. (From OE-Core rev: a67d77d25cbab0d88b9ff76e3f28429d4ac4f34b) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-extended/shadow/shadow_4.1.4.3.bb5
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 506f4e6da5..de10f646cd 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 \
9 9
10DEPENDS = "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" 10DEPENDS = "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
11RDEPENDS_${PN} = "shadow-securetty ${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_PLUGINS}', '', d)}" 11RDEPENDS_${PN} = "shadow-securetty ${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_PLUGINS}', '', d)}"
12PR = "r10" 12PR = "r11"
13 13
14SRC_URI = "http://pkg-shadow.alioth.debian.org/releases/${BPN}-${PV}.tar.bz2 \ 14SRC_URI = "http://pkg-shadow.alioth.debian.org/releases/${BPN}-${PV}.tar.bz2 \
15 file://login_defs_pam.sed \ 15 file://login_defs_pam.sed \
@@ -85,6 +85,9 @@ do_install_append() {
85 sed -i 's:/bin/bash:/bin/sh:g' ${D}${sysconfdir}/default/useradd 85 sed -i 's:/bin/bash:/bin/sh:g' ${D}${sysconfdir}/default/useradd
86 sed -i '/^CREATE_MAIL_SPOOL/ s:^:#:' ${D}${sysconfdir}/default/useradd 86 sed -i '/^CREATE_MAIL_SPOOL/ s:^:#:' ${D}${sysconfdir}/default/useradd
87 87
88 # Use users group by default
89 sed -i 's,^GROUP=1000,GROUP=100,g' ${D}${sysconfdir}/default/useradd
90
88 install -d ${D}${sbindir} ${D}${base_sbindir} ${D}${base_bindir} 91 install -d ${D}${sbindir} ${D}${base_sbindir} ${D}${base_bindir}
89 92
90 # Move binaries to the locations we want 93 # Move binaries to the locations we want