fix login failure
This commit is contained in:
@@ -62,6 +62,8 @@ To brand certificates, place your JPEG logo at `config/includes.chroot/etc/nwipe
|
||||
|
||||
NetworkManager provides network connectivity; wired Ethernet uses DHCP automatically, and Wi-Fi can be configured with `nmcli device wifi list` followed by `nmcli device wifi connect "SSID" --ask`. The image starts SSH and Telnet servers for the `eraser` account with password `eperaser`; root SSH login is disabled. The account can run only the EP Eraser and nwipe programs through passwordless `sudo`, for example `sudo -n /usr/local/sbin/ep-eraser` or `sudo -n /usr/local/bin/nwipe`.
|
||||
|
||||
On the local or VM console, the erasure UI stays on tty1 and tty2 automatically opens a shell as `eraser`. SSH and Telnet startup now waits for the live account password setup to complete.
|
||||
|
||||
Telnet sends both passwords and commands without encryption. Use it only on an isolated, trusted internal network; anyone able to monitor that network can capture the credentials. The predefined password is shared by every image built from this configuration, so change it in `config/includes.chroot/usr/local/sbin/ep-eraser-remote-setup` before deploying outside a controlled test environment. Connect with `ssh -t eraser@HOST` or `telnet HOST`.
|
||||
|
||||
This project intentionally does not include an automatic wipe-all mode.
|
||||
@@ -4,7 +4,12 @@ set -eu
|
||||
chmod 0755 /usr/local/sbin/ep-eraser-remote-setup
|
||||
chmod 0750 /etc/sudoers.d
|
||||
chmod 0440 /etc/sudoers.d/ep-eraser
|
||||
chmod 0644 /etc/systemd/system/ep-eraser.service /etc/systemd/system/ep-eraser-remote-access.service
|
||||
chmod 0644 /etc/systemd/system/getty@tty2.service.d/autologin.conf
|
||||
chmod 0644 /etc/systemd/system/ssh.service.d/ep-eraser.conf
|
||||
chmod 0644 /etc/systemd/system/inetd.service.d/ep-eraser.conf
|
||||
visudo --check --file=/etc/sudoers
|
||||
install -d -m 0755 /run/sshd
|
||||
sshd -t
|
||||
systemctl enable ep-eraser-remote-access.service ssh.service inetd.service
|
||||
systemctl mask getty@tty1.service
|
||||
systemctl enable ep-eraser-remote-access.service ssh.service inetd.service getty@tty2.service
|
||||
@@ -0,0 +1,13 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="840" height="240" viewBox="0 0 280 80" role="img" aria-labelledby="logo-title">
|
||||
<title id="logo-title">Eternity Project / FI</title>
|
||||
<g transform="translate(10 8)">
|
||||
<circle cx="32" cy="32" r="28" fill="none" stroke="#11212b" stroke-width="4"/>
|
||||
<circle cx="18" cy="18" r="4" fill="#ff6b35"/>
|
||||
<circle cx="46" cy="46" r="4" fill="#ff6b35"/>
|
||||
<circle cx="32" cy="32" r="4" fill="#c7ef4b"/>
|
||||
</g>
|
||||
<g font-family="'DM Mono', Consolas, monospace" fill="#11212b">
|
||||
<text x="94" y="35" font-size="32" font-weight="700" letter-spacing="2">ETERNITY</text>
|
||||
<text x="94" y="58" font-size="18" fill="#59706b">PROJECT / FI</text>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 718 B |
@@ -0,0 +1,7 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 320" width="320" height="320" role="img" aria-label="Eternity Project wheel">
|
||||
<circle cx="160" cy="160" r="156" fill="none" stroke="#ff6b35" stroke-width="4"/>
|
||||
<line x1="0" y1="160" x2="320" y2="160" stroke="#ff6b35" stroke-width="1" transform="rotate(45 160 160)"/>
|
||||
<line x1="0" y1="160" x2="320" y2="160" stroke="#ff6b35" stroke-width="1" transform="rotate(90 160 160)"/>
|
||||
<line x1="0" y1="160" x2="320" y2="160" stroke="#ff6b35" stroke-width="1" transform="rotate(135 160 160)"/>
|
||||
<text x="160" y="200" text-anchor="middle" font-family="Georgia, serif" font-size="140" fill="#ff6b35">∞</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 681 B |
@@ -0,0 +1,3 @@
|
||||
[Service]
|
||||
ExecStart=
|
||||
ExecStart=-/sbin/agetty --autologin eraser --noclear %I $TERM
|
||||
@@ -0,0 +1,3 @@
|
||||
[Unit]
|
||||
Requires=ep-eraser-remote-access.service
|
||||
After=ep-eraser-remote-access.service
|
||||
@@ -0,0 +1,3 @@
|
||||
[Unit]
|
||||
Requires=ep-eraser-remote-access.service
|
||||
After=ep-eraser-remote-access.service
|
||||
@@ -1,4 +1,10 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
if ! id eraser >/dev/null 2>&1; then
|
||||
echo 'live-config did not create the eraser account' >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
printf '%s\n' 'eraser:eperaser' | chpasswd
|
||||
echo 'Password configured for eraser'
|
||||
Reference in New Issue
Block a user