some system checks
The first thing I do when I take over a new system , is write a check script.
You can check several things and tailor it to your system, but here are a few to get you started:
check for users and groups that are equal with root
# grep ':00*:' /etc/passwd
check for invalid passwords
# grep invalid /usr/adm/syslog
list the last 20 logins
# last | head -20
#/usr/platform/sun4u (uname -n)/sbin/prtdiag -v
will show you useful hardware information.
#df -k -F ufs
will show you only local disks , and show you the total space used space, and free space
#/usr/sbin/psrinfo -v
will show you the cpus adn their speed.
You can check several things and tailor it to your system, but here are a few to get you started:
check for users and groups that are equal with root
# grep ':00*:' /etc/passwd
check for invalid passwords
# grep invalid /usr/adm/syslog
list the last 20 logins
# last | head -20
#/usr/platform/sun4u (uname -n)/sbin/prtdiag -v
will show you useful hardware information.
#df -k -F ufs
will show you only local disks , and show you the total space used space, and free space
#/usr/sbin/psrinfo -v
will show you the cpus adn their speed.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home