Skip to content
Snippets Groups Projects
Verified Commit ed038ffa authored by David Beniamine's avatar David Beniamine
Browse files

Allow ssh users but show them

parent d9872fad
Branches
No related tags found
No related merge requests found
......@@ -26,7 +26,8 @@ Passwd=$(grep "^PasswordAuthentication no" /etc/ssh/sshd_config)
fail_empty "$Passwd" "SSh password allowed"
systemctl restart ssh
real_users=$(egrep "/bin/[^/]*sh" /etc/passwd | grep -v root)
fail_not_empty "$real_users" "Please remove real_users" "No human users"
echo "The following users can login via ssh $real_users"
read -p "hit enter"
apache_default=$(find /etc/apache2/sites-enabled -iname "*default*")
fail_not_empty "$apache_default" "Please disable apache default sites" "Apache default sites are disabled"
apache2ctl graceful
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment