undo previous commit hehehehe
This commit is contained in:
@@ -43,9 +43,11 @@ systemctl daemon-reload
|
||||
# serviço !!!
|
||||
systemctl enable --now httpd
|
||||
|
||||
# mover totp para pasta do apache (SELinux bloqueia /home)
|
||||
sudo mkdir -p /etc/httpd/totp
|
||||
sudo cp /home/john/.google_authenticator /etc/httpd/totp/john 2>/dev/null || true
|
||||
sudo cp /home/user/.google_authenticator /etc/httpd/totp/user 2>/dev/null || true
|
||||
sudo chown -R apache:apache /etc/httpd/totp
|
||||
sudo chmod 400 /etc/httpd/totp/*
|
||||
# acho ?????
|
||||
sudo chgrp apache /etc/shadow
|
||||
sudo chmod o+x /home/john
|
||||
sudo chown apache /home/john/.google_authenticator
|
||||
sudo chmod 400 /home/john/.google_authenticator
|
||||
sudo chmod o+x /home/user
|
||||
sudo chown apache /home/user/.google_authenticator
|
||||
sudo chmod 400 /home/user/.google_authenticator
|
||||
|
||||
Reference in New Issue
Block a user