Add ability to use SSH and Telnet
This commit is contained in:
@@ -0,0 +1 @@
|
||||
telnet stream tcp nowait root /usr/sbin/tcpd /usr/sbin/in.telnetd
|
||||
@@ -0,0 +1,5 @@
|
||||
PermitRootLogin no
|
||||
PasswordAuthentication yes
|
||||
KbdInteractiveAuthentication no
|
||||
PermitEmptyPasswords no
|
||||
AllowUsers eraser
|
||||
@@ -0,0 +1 @@
|
||||
eraser ALL=(root) NOPASSWD: /usr/local/sbin/ep-eraser, /usr/local/bin/nwipe
|
||||
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Configure EP Eraser remote login
|
||||
Requires=live-config.service
|
||||
After=live-config.service
|
||||
Before=ssh.service openbsd-inetd.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/local/sbin/ep-eraser-remote-setup
|
||||
RemainAfterExit=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
printf '%s\n' 'eraser:eperaser' | chpasswd
|
||||
Reference in New Issue
Block a user