shell脚本自动加固ssh
1 | #!/bin/bash |
2 | PATH=/bin:/sbin:/usr/bin:/usr/sbin:/opt/bin:/opt/sbin:~/bin |
3 | export PATH |
4 |
5 | # Check if user is root |
6 | if [ $( id -u) != "0" ]; then |
7 | echo "... |
1 | #!/bin/bash |
2 | PATH=/bin:/sbin:/usr/bin:/usr/sbin:/opt/bin:/opt/sbin:~/bin |
3 | export PATH |
4 |
5 | # Check if user is root |
6 | if [ $( id -u) != "0" ]; then |
7 | echo "... |