2021-06-12 00:27:47 +02:00
|
|
|
#!/bin/sh
|
|
|
|
mkdir -p /target/root/.ssh
|
|
|
|
cp /cdrom/authorized_keys /target/root/.ssh
|
2021-10-08 17:09:50 +02:00
|
|
|
chmod 700 /target/root/.ssh -R
|
|
|
|
mkdir -p /target/home/{{ debianunattended_username }}/.ssh
|
|
|
|
cp /cdrom/authorized_keys /target/home/{{ debianunattended_username }}/.ssh
|
|
|
|
chown 1000:1000 /target/home/{{ debianunattended_username }}/.ssh -R
|
|
|
|
chmod 700 /target/home/{{ debianunattended_username }}/.ssh -R
|
|
|
|
cp /cdrom/sudoers /target/etc/sudoers.d/{{ debianunattended_username }}
|