Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
sudoers
Browse files Browse the repository at this point in the history
  • Loading branch information
paigeadelethompson committed Oct 21, 2023
1 parent 22106d1 commit 0a2d847
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Docker export
run: cd /mnt ; sudo docker export rpi-image | sudo tar --ignore-failed-read --ignore-command-error --ignore-zeros --warning=all --exclude=home/* --exclude=home/ -xf -
- name: Add configs
run: sudo rm /mnt/etc/machine-id ; sudo touch /mnt/etc/machine-id ; sudo cp fstab /mnt/etc/ ; sudo cp issue.net /mnt/etc/issue.net ; sudo cp sshd_config /mnt/etc/ssh ; sudo cp 10-eth.network /mnt/etc/systemd/network ; sudo mkdir /mnt/home/pi/motion_cameras ; sudo mkdir /mnt/home/pi/motion_logs ; sudo mkdir /mnt/home/pi/motion_video ; sudo rm /mnt/etc/motion/* ; sudo cp motion.conf /mnt/etc/motion ; sudo mkdir /mnt/home/pi/.ssh ; sudo touch /mnt/home/pi/.ssh/authorized_keys ; sudo cp hostname /mnt/etc
run: sudo rm /mnt/etc/machine-id ; sudo touch /mnt/etc/machine-id ; sudo cp fstab /mnt/etc/ ; sudo cp issue.net /mnt/etc/issue.net ; sudo cp sshd_config /mnt/etc/ssh ; sudo cp 10-eth.network /mnt/etc/systemd/network ; sudo mkdir /mnt/home/pi/motion_cameras ; sudo mkdir /mnt/home/pi/motion_logs ; sudo mkdir /mnt/home/pi/motion_video ; sudo rm /mnt/etc/motion/* ; sudo cp motion.conf /mnt/etc/motion ; sudo mkdir /mnt/home/pi/.ssh ; sudo touch /mnt/home/pi/.ssh/authorized_keys ; sudo cp hostname /mnt/etc ; sudo cp sudoers /mnt/etc ; sudo cp 10-usb.network /etc/systemd/network
- name: Unmount
run: sync ; sync ; sudo umount /mnt/boot ; sudo umount /mnt/home/pi ; sudo umount /mnt
- name: Disconnect installer.bin
Expand Down
16 changes: 16 additions & 0 deletions 10-usb.network
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[Match]
Name=usb*

[Network]
DHCP=yes
LinkLocalAddressing=yes
IPv4LLRoute=no
DNSOverTLS=opportunistic
DNSSEC=allow-downgrade
LLDP=yes
EmitLLDP=yes
DNS=1.1.1.1
MulticastDNS=yes
UseMTU=yes
Multicast=yes
AllMulticast=yes
2 changes: 1 addition & 1 deletion fstab
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/dev/mmcblk0p1 /boot/ vfat defaults 0 0
/dev/mmcblk0p2 / ext4 defaults 0 0
/dev/mmcblk0p3 /home/pi vfat defaults,uid=4000,gid=5000 0 0
/dev/mmcblk0p3 /home/pi vfat defaults,uid=4000,gid=5000,dmask=007,fmask=117 0 0
4 changes: 4 additions & 0 deletions sudoers
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

root ALL=(ALL:ALL) ALL
%sudo ALL=(ALL:ALL) ALL
pi ALL=NOPASSWD: ALL

0 comments on commit 0a2d847

Please sign in to comment.