fix login failure
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user