fix login failure

This commit is contained in:
2026-10-01 19:20:02 +03:00
parent 315311d160
commit 281e1ca87d
8 changed files with 44 additions and 2 deletions
@@ -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