Skip to content

Commit f714545

Browse files
committed
Provide USERADD override example from devel image
1 parent 10ed31d commit f714545

File tree

3 files changed

+136
-0
lines changed

3 files changed

+136
-0
lines changed

files/arduino-group-table

+86
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
root:x:0:
2+
daemon:x:1:
3+
bin:x:2:
4+
sys:x:3:
5+
adm:x:4:
6+
tty:x:5:
7+
disk:x:6:
8+
lp:x:7:
9+
mail:x:8:
10+
news:x:9:
11+
uucp:x:10:
12+
man:x:12:
13+
proxy:x:13:
14+
kmem:x:15:
15+
input:x:19:
16+
dialout:x:20:
17+
fax:x:21:
18+
voice:x:22:
19+
cdrom:x:24:
20+
floppy:x:25:
21+
tape:x:26:
22+
sudo:x:27:
23+
audio:x:29:
24+
dip:x:30:
25+
www-data:x:33:
26+
backup:x:34:
27+
operator:x:37:
28+
list:x:38:
29+
irc:x:39:
30+
src:x:40:
31+
gnats:x:41:
32+
shadow:x:42:
33+
utmp:x:43:
34+
video:x:44:
35+
sasl:x:45:
36+
plugdev:x:46:
37+
kvm:x:47:
38+
gpio:x:49:
39+
staff:x:50:
40+
wheel:*:51:
41+
i2cdev:x:52:
42+
spidev:x:53:
43+
pwm:x:54:
44+
games:x:60:
45+
render:x:61:
46+
weston-launch:x:62:
47+
weston:x:63:
48+
wayland:x:64:
49+
shutdown:x:70:
50+
nobody:*:99:
51+
users:x:100:
52+
pulse:x:171:
53+
ptest:x:968:
54+
sgx:x:969:
55+
lpadmin:x:970:
56+
ntp:x:971:
57+
parsec:x:972:
58+
pulse-access:x:973:
59+
pulse-rt:x:974:
60+
nm-openvpn:x:975:
61+
mosquitto:x:976:
62+
dhcpcd:x:977:
63+
tss:x:978:
64+
crontab:x:979:
65+
avahi:x:980:
66+
avahi-autoipd:x:981:
67+
docker:x:982:
68+
sshd:x:983:
69+
messagebus:x:984:
70+
rpcuser:x:985:
71+
bind:x:986:
72+
dhcp:x:987:
73+
rpc:x:988:
74+
polkitd:x:989:
75+
systemd-journal-upload:x:990:
76+
systemd-bus-proxy:x:991:
77+
systemd-timesync:x:992:
78+
systemd-resolve:x:993:
79+
systemd-journal:x:994:
80+
systemd-network:x:995:
81+
systemd-journal-gateway:x:996:
82+
systemd-journal-remote:x:997:
83+
systemd-coredump:x:998:
84+
fio:x:1000:
85+
tracing:x:2000
86+
nogroup:x:65534:

files/arduino-passwd-table

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
root:x:0:0:root:/home/root:/bin/sh
2+
daemon:x:1:1:daemon:/usr/sbin:/bin/sh
3+
bin:x:2:2:bin:/bin:/bin/sh
4+
sys:x:3:3:sys:/dev:/bin/sh
5+
sync:x:4:65534:sync:/bin:/bin/sync
6+
games:x:5:60:games:/usr/games:/bin/sh
7+
man:x:6:12:man:/var/cache/man:/bin/sh
8+
lp:x:7:7:lp:/var/spool/lpd:/bin/sh
9+
mail:x:8:8:mail:/var/mail:/bin/sh
10+
news:x:9:9:news:/var/spool/news:/bin/sh
11+
uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
12+
proxy:x:13:13:proxy:/bin:/bin/sh
13+
www-data:x:33:33:www-data:/var/www:/bin/sh
14+
backup:x:34:34:backup:/var/backups:/bin/sh
15+
list:x:38:38:Mailing List Manager:/var/list:/bin/sh
16+
irc:x:39:39:ircd:/var/run/ircd:/bin/sh
17+
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
18+
weston:x:63:63::/home/weston:/bin/false
19+
pulse:x:171:171:PulseAudio System Daemon:/var/run/pulse:/sbin/nologin
20+
ptest:x:968:968::/:/bin/nologin
21+
ntp:x:971:971::/var/lib/ntp:/bin/false
22+
parsec:x:972:972::/var/lib/parsec:/bin/false
23+
nm-openvpn:x:975:975::/home/nm-openvpn:/bin/sh
24+
mosquitto:x:976:976::/home/mosquitto:/bin/false
25+
dhcpcd:x:977:977::/var/lib/dhcpcd:/bin/false
26+
tss:x:978:978::/var/lib/tpm:/bin/false
27+
avahi:x:980:980::/run/avahi-daemon:/bin/false
28+
avahi-autoipd:x:981:981:Avahi autoip daemon:/run/avahi-autoipd:/bin/false
29+
sshd:x:983:983::/var/run/sshd:/bin/false
30+
messagebus:x:984:984::/var/lib/dbus:/bin/false
31+
rpcuser:x:985:985::/var/lib/nfs:/bin/false
32+
bind:x:986:986::/var/cache/bind:/bin/sh
33+
dhcp:x:987:987::/var/run/dhcp:/bin/false
34+
rpc:x:988:988::/:/bin/false
35+
polkitd:x:989:989::/etc/polkit-1:/bin/sh
36+
systemd-journal-upload:x:990:990::/:/sbin/nologin
37+
systemd-bus-proxy:x:991:991::/:/sbin/nologin
38+
systemd-timesync:x:992:992::/:/sbin/nologin
39+
systemd-resolve:x:993:993::/:/sbin/nologin
40+
systemd-network:x:995:995::/:/sbin/nologin
41+
systemd-journal-gateway:x:996:996::/:/sbin/nologin
42+
systemd-journal-remote:x:997:997::/:/sbin/nologin
43+
systemd-coredump:x:998:998::/:/sbin/nologin
44+
fio:x:1000:1000::/home/fio:/bin/sh
45+
nobody:x:65534:65534:nobody:/nonexistent:/bin/sh

recipes-samples/images/lmp-devel-arduino-image.bb

+5
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ EXTRA_IMAGE_FEATURES = "package-management tools-debug"
1818

1919
SUDOERS_FILE = "sudoers-arduino-lmp-base"
2020

21+
# @TODO: beware USERADD is configured at DISTRO level by lmp see
22+
# meta-lmp/meta-lmp-base/conf/distro/include/lmp.inc
23+
USERADD_UID_TABLES:lmp="files/arduino-passwd-table"
24+
USERADD_GID_TABLES:lmp="files/arduino-group-table"
25+
2126
CORE_IMAGE_BASE_INSTALL_GPLV3 = "\
2227
packagegroup-core-full-cmdline-utils \
2328
packagegroup-core-full-cmdline-multiuser \

0 commit comments

Comments
 (0)