diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2012-07-23 14:37:16 -0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-07-26 14:40:45 +0100 |
commit | 92cfb88ff303df2ed585bad9ea62fc891b1c9081 (patch) | |
tree | 718ffb68df47047c971490aae8ba5bf57ee1ed88 /meta | |
parent | 9247550642a536f83c6c711ce4bd340e5e5606b7 (diff) | |
download | poky-92cfb88ff303df2ed585bad9ea62fc891b1c9081.tar.gz |
shadow-native: 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: e06414092c7aa4fce1173f00e610a33a0deca9cd)
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-native_4.1.4.3.bb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/recipes-extended/shadow/shadow-native_4.1.4.3.bb b/meta/recipes-extended/shadow/shadow-native_4.1.4.3.bb index 1e071f1bed..cd5605f81c 100644 --- a/meta/recipes-extended/shadow/shadow-native_4.1.4.3.bb +++ b/meta/recipes-extended/shadow/shadow-native_4.1.4.3.bb | |||
@@ -7,7 +7,7 @@ LICENSE = "BSD | Artistic-1.0" | |||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=08c553a87d4e51bbed50b20e0adcaede \ | 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=08c553a87d4e51bbed50b20e0adcaede \ |
8 | file://src/passwd.c;firstline=8;endline=30;md5=2899a045e90511d0e043b85a7db7e2fe" | 8 | file://src/passwd.c;firstline=8;endline=30;md5=2899a045e90511d0e043b85a7db7e2fe" |
9 | 9 | ||
10 | PR = "r6" | 10 | PR = "r7" |
11 | 11 | ||
12 | SRC_URI = "http://pkg-shadow.alioth.debian.org/releases/${BPN}-${PV}.tar.bz2 \ | 12 | SRC_URI = "http://pkg-shadow.alioth.debian.org/releases/${BPN}-${PV}.tar.bz2 \ |
13 | file://shadow.automake-1.11.patch \ | 13 | file://shadow.automake-1.11.patch \ |
@@ -46,4 +46,7 @@ do_install_append() { | |||
46 | # Now we don't have a mail system. Disable mail creation for now. | 46 | # Now we don't have a mail system. Disable mail creation for now. |
47 | sed -i 's:/bin/bash:/bin/sh:g' ${D}${sysconfdir}/default/useradd | 47 | sed -i 's:/bin/bash:/bin/sh:g' ${D}${sysconfdir}/default/useradd |
48 | sed -i '/^CREATE_MAIL_SPOOL/ s:^:#:' ${D}${sysconfdir}/default/useradd | 48 | sed -i '/^CREATE_MAIL_SPOOL/ s:^:#:' ${D}${sysconfdir}/default/useradd |
49 | |||
50 | # Use users group by default | ||
51 | sed -i 's,^GROUP=1000,GROUP=100,g' ${D}${sysconfdir}/default/useradd | ||
49 | } | 52 | } |