mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-07-14 09:49:08 +07:00
comment
This commit is contained in:
@ -3,8 +3,6 @@
|
|||||||
## Copyright (C) 2019 - 2019 ENCRYPTED SUPPORT LP <adrelanos@riseup.net>
|
## Copyright (C) 2019 - 2019 ENCRYPTED SUPPORT LP <adrelanos@riseup.net>
|
||||||
## See the file COPYING for copying conditions.
|
## See the file COPYING for copying conditions.
|
||||||
|
|
||||||
## https://forums.whonix.org/t/how-strong-do-linux-user-account-passwords-have-to-be-when-using-full-disk-encryption-fde-too/7698
|
|
||||||
|
|
||||||
if grep -q "accessfile=/etc/security/access-security-misc.conf" /etc/pam.d/common-account ; then
|
if grep -q "accessfile=/etc/security/access-security-misc.conf" /etc/pam.d/common-account ; then
|
||||||
if id --name --groups --zero "$PAM_USER" | grep --quiet --null-data --line-regexp --fixed-strings "console"; then
|
if id --name --groups --zero "$PAM_USER" | grep --quiet --null-data --line-regexp --fixed-strings "console"; then
|
||||||
console_allowed=true
|
console_allowed=true
|
||||||
@ -28,6 +26,8 @@ if grep -q "accessfile=/etc/security/access-security-misc.conf" /etc/pam.d/commo
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
## https://forums.whonix.org/t/how-strong-do-linux-user-account-passwords-have-to-be-when-using-full-disk-encryption-fde-too/7698
|
||||||
|
|
||||||
if [ ! "$(id -u)" = "0" ]; then
|
if [ ! "$(id -u)" = "0" ]; then
|
||||||
## as user "user"
|
## as user "user"
|
||||||
## /sbin/pam_tally2 -u user
|
## /sbin/pam_tally2 -u user
|
||||||
|
Reference in New Issue
Block a user