Force uid 0 to files

This commit is contained in:
nemunaire 2020-03-29 16:12:50 +02:00
parent 41b1d950e1
commit 4d7e5a5331

View File

@ -9,12 +9,16 @@ files:
- path: etc/hostname
contents: |
adlin2
uid: 0
gid: 0
mode: "0644"
- path: etc/resolv.conf
contents: |
nameserver 9.9.9.9
nameserver 1.1.1.1
uid: 0
gid: 0
mode: "0644"
- path: etc/systemd/network/49-main.link
@ -23,6 +27,8 @@ files:
OriginalName=eth0
[Link]
Name=eth0
uid: 0
gid: 0
mode: "0644"
- path: etc/systemd/network/50-dhcp.network
@ -33,6 +39,8 @@ files:
DHCP=yes
IPv6AcceptRA=no
LinkLocalAddressing=no
uid: 0
gid: 0
mode: "0644"
- path: init
@ -148,12 +156,16 @@ files:
# To the user
exec /usr/sbin/chroot . "${INITP}"
uid: 0
gid: 0
mode: "0755"
# - path: etc/systemd/system/systemd-networkd.service.d/10-debug.conf
# contents: |
# [Service]
# Environment=SYSTEMD_LOG_LEVEL=debug
# uid: 0
# gid: 0
# mode: "0644"
- path: etc/shadow
@ -181,6 +193,8 @@ files:
systemd-network:*:18333:0:99999:7:::
systemd-resolve:*:18333:0:99999:7:::
sshd:*:18333:0:99999:7:::
uid: 0
gid: 0
mode: "0640"
trust: