Add ability to use SSH and Telnet
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
chmod 0755 /usr/local/sbin/ep-eraser-remote-setup
|
||||
chmod 0440 /etc/sudoers.d/ep-eraser
|
||||
visudo --check --file=/etc/sudoers
|
||||
sshd -t
|
||||
systemctl enable ep-eraser-remote-access.service ssh.service openbsd-inetd.service
|
||||
@@ -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
|
||||
@@ -1,11 +1,21 @@
|
||||
bash
|
||||
coreutils
|
||||
hdparm
|
||||
inetutils-telnet
|
||||
inetutils-telnetd
|
||||
iproute2
|
||||
libconfig11
|
||||
libncurses6
|
||||
libparted2t64
|
||||
network-manager
|
||||
nvme-cli
|
||||
openssh-client
|
||||
openssh-server
|
||||
openbsd-inetd
|
||||
parted
|
||||
smartmontools
|
||||
sudo
|
||||
util-linux
|
||||
wireless-regdb
|
||||
wpasupplicant
|
||||
whiptail
|
||||
Reference in New Issue
Block a user