blob: d1a25f4ed0cb24d07b06e91a78c9b0f6d9aa132b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
type: bool
default: false
help: Enable/disable root login
update:expression: " \
if ! env | grep -q SSH_TTY=; then \
if [[ \"`tty`\" == /dev/pts/* ]]; then \
echo \"Please configure telnet settings via ssh or console.\"; \
exit 1; \
fi; \
fi; \
if [ \"$VAR(@)\" == \"true\" ]; then \
sudo mv -f /etc/securetty /etc/securetty.allow-root >&/dev/null; \
else
sudo mv -f /etc/securetty.allow-root /etc/securetty >&/dev/null; \
fi ; /bin/true"
delete:expression: " \
if ! env | grep -q SSH_TTY=; then \
if [[ \"`tty`\" == /dev/pts/* ]]; then \
echo \"Please configure telnet settings via ssh or console.\"; \
exit 1; \
fi; \
fi; \
sudo mv -f /etc/securetty.allow-root /etc/securetty >&/dev/null ; \
/bin/true"
|