From cd8043f92b06df4fe8413937a4fa6ec0bfeaafa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20=C5=A0urda?= Date: Tue, 14 Feb 2023 12:08:16 +0800 Subject: [PATCH] Fix ssh permissions and move ssh defaults file --- .buildbot/openwrt/build.sh | 4 +++- uci_defaults => defaults/50-sshd | 0 2 files changed, 3 insertions(+), 1 deletion(-) rename uci_defaults => defaults/50-sshd (100%) diff --git a/.buildbot/openwrt/build.sh b/.buildbot/openwrt/build.sh index 518fcf5..eb75651 100755 --- a/.buildbot/openwrt/build.sh +++ b/.buildbot/openwrt/build.sh @@ -51,9 +51,11 @@ echo "CONFIG_TARGET_ROOTFS_EXT4FS=n" >> .config # Setup files mkdir -p files/root/.ssh +chmod 0700 files/root files/root/.ssh cp ${pwd}/authorized_keys files/root/.ssh/ +chmod 0400 files/root/.ssh/authorized_keys mkdir -p files/etc/uci-defaults -cp ${pwd}/uci_defaults files/etc/uci-defaults/99-custom +cp ${pwd}/defaults/* files/etc/uci-defaults PACKAGES="kmod-nf-nathelper-extra kmod-rtc-ds1307 \ kmod-usb-audio kmod-usb-net-rtl8152 \ diff --git a/uci_defaults b/defaults/50-sshd similarity index 100% rename from uci_defaults rename to defaults/50-sshd -- 2.45.1