From f2509835704cd32c5a2dab811bff9037cd8baf1f Mon Sep 17 00:00:00 2001 From: Fayaaz Date: Tue, 28 Jul 2020 02:08:56 +0100 Subject: [PATCH] Fix file permissions everywhere --- stage3/02-desktop/01-run.sh | 2 +- stage3/02-desktop/02-run.sh | 5 +++-- stage3/02-desktop/03-run.sh | 4 ++++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/stage3/02-desktop/01-run.sh b/stage3/02-desktop/01-run.sh index e2799e8..5be9c6f 100755 --- a/stage3/02-desktop/01-run.sh +++ b/stage3/02-desktop/01-run.sh @@ -16,4 +16,4 @@ rm -f ${ROOTFS_DIR}/etc/sudoers.d/010_pi-nopasswd install -m 440 files/010_pi-nopasswd ${ROOTFS_DIR}/etc/sudoers.d/ echo pi - memlock 256000 >> ${ROOTFS_DIR}/etc/security/limits.conf -echo pi - rtprio 75 >> ${ROOTFS_DIR}/etc/security/limits.conf +echo pi - rtprio 99 >> ${ROOTFS_DIR}/etc/security/limits.conf diff --git a/stage3/02-desktop/02-run.sh b/stage3/02-desktop/02-run.sh index fd0d127..35f7efd 100755 --- a/stage3/02-desktop/02-run.sh +++ b/stage3/02-desktop/02-run.sh @@ -1,6 +1,7 @@ # Add i3 config file -install -m 755 files/i3.conf ${ROOTFS_DIR}/home/pi/.config/i3 +mkdir -m 644 ${ROOTFS_DIR}/home/pi/.config/i3/ +install -m 755 files/i3.conf ${ROOTFS_DIR}/home/pi/.config/i3/config on_chroot << EOF - chown -R pi:root /home/pi/.config/ + chown -R pi:root /home/pi/.config/i3/ EOF diff --git a/stage3/02-desktop/03-run.sh b/stage3/02-desktop/03-run.sh index c3916d7..fc050a3 100644 --- a/stage3/02-desktop/03-run.sh +++ b/stage3/02-desktop/03-run.sh @@ -1,6 +1,10 @@ # Do mixxx stuff like copy the udev rules and config file install -m 644 files/mixxx.cfg ${ROOTFS_DIR}/home/pi/.mixxx/mixxx.cfg install -m 440 files/udev.mixxx ${ROOTFS_DIR}/etc/udev/rules.d/69-mixxx-usb-uaccess.rules +on_chroot << EOF + chown -R pi:root /home/pi/.mixxx +EOF + # USB Mount mkdir -m 644 ${ROOTFS_DIR}/etc/systemd/system/systemd-udevd.service.d