967浏覽量
CentOS Linux基線查看命令
/**********************************************************
青橙科技整理配置信息
/**********************************************************
cat /etc/shadow;
cat /etc/hosts.equiv;
cat /etc/login.defs;
cat /etc/pam.d/system-auth;
cat /etc/ssh/sshd_config;
cat /etc/system-release;
cat /etc/issue;
cat /etc/group;
cat /etc/pam.d/su;
cat /etc/login.defs | grep yes | grep WHEEL;
cat /etc/sudoers;
cat /etc/ssh/sshd_config;
cat /etc/rsyslog.conf;
cat /etc/ntp.conf;
cat /etc/logrotate.conf;
cat /etc/audit/auditd.conf;
cat /etc/redhat-release;
cat /etc/hosts.allow;
cat /etc/hosts.deny;
cat /etc/ssh/sshd_config;
cat /var/log/secure;
cat /etc/crontab;
cat /etc/profile;
ls /home;
/**********************************************************
青橙科技整理配置信息
/**********************************************************
ls -l /etc/passwd;
ls -l /etc/shadow;
ls -l /etc/group ;
ls -l /etc/environment ;
ls -l /etc/services;
ls -l /etc/profile ;
ls -l /etc/inet.conf ;
ls -l /etc/xinet.conf;
ls -l /etc/ssh/sshd_config;
ls -l /etc/hosts.allow;
ls -l /etc/hosts.deny;
ls -l /etc/login.defs;
ls -l /etc/init.d/network;
ls -l /etc/resolv.conf;
ls -l /etc/syslog.conf;
ls -l /etc/sysconfig/network;
ls -l /etc/audit/auditd.conf;
ls -l /etc/audit/audit.rules;
ls -la /var/log/messages;
ls -la /var/log/secure;
ls -la /var/log/audit/audit.log;
/**********************************************************
青橙科技整理配置信息
/**********************************************************
find / -name ".rhosts";
find / -name 360;
find / -name clamav;
find / -name “~*”;
/**********************************************************
青橙科技整理配置信息
/**********************************************************
service rsyslog status;
service auditd status;
auditctl -s;
auditctl -l;
service ntpd status;
ntpstat;
chage -l root;
chkconfig --list | grep ntpd;
netstat -tlunp;
service --status-all|grep running;
systemctl status sshd;
chkconfig --list;
ausearch -ts today;
rpm -qa | grep ntp;
netstat -antp;
systemctl status firewalld;
rpm -qa | grep patch;
ifconfig -a;
systemctl status sshd;
/**********************************************************
青橙科技整理日志(zhì)查看
/**********************************************************
tail -f /var/log/messages;
tail -f /var/log/secure;
tail -f /var/log/audit/audit.log;