Commit 399d265b authored by Ryan Jackson's avatar Ryan Jackson
Browse files

Make sure perms for /root/.ssh are secure

parent 43bb0e7c
...@@ -10,6 +10,7 @@ fi ...@@ -10,6 +10,7 @@ fi
chmod 1777 "$target_dir/tmp" chmod 1777 "$target_dir/tmp"
chmod 1777 "$target_dir/var/tmp" chmod 1777 "$target_dir/var/tmp"
chmod 0700 "$target_dir/root/.ssh" chmod 0700 "$target_dir/root/.ssh"
chmod 0600 "$target_dir/root/.ssh/*"
chmod 0600 "$target_dir/etc/shadow" chmod 0600 "$target_dir/etc/shadow"
chmod u+s "$target_dir/bin/busybox" chmod u+s "$target_dir/bin/busybox"
chmod u+s "$target_dir/usr/bin/sudo" chmod u+s "$target_dir/usr/bin/sudo"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment