Skip to content

Commit

Permalink
Add sudo file permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
ophub committed Nov 14, 2021
1 parent d6506d7 commit a20ebe8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion make
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,10 @@ copy_files() {
chmod 777 var/tmp
chown man:root var/cache/man -R
chmod g+s var/cache/man -R
chown root:root usr/bin/sudo
chmod 4755 usr/bin/sudo
chown 0 usr/lib/sudo/sudoers.so
chmod 644 usr/lib/sudo/sudoers.so

# Delete related files
rm -f etc/apt/sources.list.save 2>/dev/null
Expand All @@ -376,7 +380,8 @@ copy_files() {
echo "KERNEL_VERSION='${KERNEL_VERSION}'" >> etc/armbian-aml-release 2>/dev/null
echo "SOC='${AMLOGIC_SOC}'" >> etc/armbian-aml-release 2>/dev/null
echo "K510='${K510}'" >> etc/armbian-aml-release 2>/dev/null

echo "PACKAGED_DATE='$(date +%Y-%m-%d)'" >> etc/armbian-aml-release 2>/dev/null

# Custom banner name
sed -i "s|BOARD_NAME=.*|BOARD_NAME=\"Aml ${AMLOGIC_SOC}\"|g" etc/armbian-release

Expand Down

0 comments on commit a20ebe8

Please sign in to comment.