the wisdom of the shadows

This commit is contained in:
Vasco
2026-04-22 18:07:31 +01:00
parent 2ad2e4b8e1
commit ad8617fefe
2 changed files with 5 additions and 6 deletions

View File

@@ -45,8 +45,7 @@ systemctl enable --now httpd
# acho ????? # acho ?????
sudo chgrp apache /etc/shadow sudo chgrp apache /etc/shadow
sudo chmod 440 /etc/shadow sudo chown apache /home/john/.google_authenticator
sudo chmod o+x /home/user sudo chmod 400 /home/john/.google_authenticator
sudo chmod 444 /home/user/.google_authenticator sudo chown apache /home/user/.google_authenticator
sudo chmod o+x /home/john sudo chmod 400 /home/user/.google_authenticator
sudo chmod 444 /home/john/.google_authenticator

View File

@@ -1,3 +1,3 @@
auth required pam_google_authenticator.so forward_pass auth required pam_google_authenticator.so forward_pass secret=/home/${USER}/.google_authenticator user=apache
auth required pam_unix.so use_first_pass auth required pam_unix.so use_first_pass
account required pam_unix.so account required pam_unix.so