mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-07-20 15:58:44 -04:00
end-of-options
This commit is contained in:
parent
d8feca1276
commit
601ea77b00
1 changed files with 2 additions and 2 deletions
|
@ -80,7 +80,7 @@ if [ "$PAM_USER" = 'sysmaint' ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
kernel_cmdline="$(cat /proc/cmdline)"
|
kernel_cmdline="$(cat -- /proc/cmdline)"
|
||||||
|
|
||||||
if [ "$PAM_USER" != 'sysmaint' ] \
|
if [ "$PAM_USER" != 'sysmaint' ] \
|
||||||
&& [[ "${kernel_cmdline}" =~ 'boot-role=sysmaint' ]]; then
|
&& [[ "${kernel_cmdline}" =~ 'boot-role=sysmaint' ]]; then
|
||||||
|
@ -93,7 +93,7 @@ fi
|
||||||
## Also this should only run for login since securetty covers only login.
|
## Also this should only run for login since securetty covers only login.
|
||||||
# if [ "$PAM_USER" = "root" ]; then
|
# if [ "$PAM_USER" = "root" ]; then
|
||||||
# if [ -f /etc/securetty ]; then
|
# if [ -f /etc/securetty ]; then
|
||||||
# grep_result="$(grep "^[^#]" /etc/securetty)"
|
# grep_result="$(grep -- "^[^#]" /etc/securetty)"
|
||||||
# if [ "$grep_result" = "" ]; then
|
# if [ "$grep_result" = "" ]; then
|
||||||
# printf '%s\n' "\
|
# printf '%s\n' "\
|
||||||
# $0: ERROR: Root login is disabled.
|
# $0: ERROR: Root login is disabled.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue