-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
10 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,10 +75,12 @@ RUN touch /mnt/boot/ssh | |
RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /mnt/root/etc/ssh/sshd_config \ | ||
&& sed -i 's/#PermitEmptyPasswords no/permitEmptyPasswords yes/' /mnt/root/etc/ssh/sshd_config | ||
|
||
# Set user configuration | ||
COPY src/conf/shadow /mnt/root/etc/ | ||
# Remove default user home | ||
RUN rm -r /mnt/root/home/pi | ||
# Enable root login and remove user 'pi' | ||
RUN sed -i 's/^root:\*:/root::/' /mnt/root/etc/shadow \ | ||
&& sed -i '/^pi/d' /mnt/root/etc/shadow \ | ||
&& sed -i '/^pi/d' /mnt/root/etc/passwd \ | ||
&& sed -i '/^pi/d' /mnt/root/etc/group \ | ||
&& rm -r /mnt/root/home/pi | ||
|
||
# Setup root auto login | ||
RUN mkdir /mnt/root/etc/systemd/system/[email protected]/ | ||
|
This file was deleted.
Oops, something went wrong.