Showing posts with label Audit. Show all posts
Showing posts with label Audit. Show all posts

trustchk: Verification of attribute failed:

While running bosboot -a, Sometimes we may encounter trustchk: Verification of attribute failed: /etc/rc.teboot failed. This is due to trustbase has been enabled on the Server and So if the trustchk is failed, we need to verify or scan the file with trustchk command.

To Scan the file and automatically fix it, Need to execute below command.

# trustchk -y /etc/rc.teboot




Audit Files in AIX

/var/adm/sulog   
/var/adm/lastlog
/etc/inetd.conf   
/etc/passwd   
/etc/security/user   
/etc/security/passwd
/etc/security/last   
/etc/security/audit/config       
ls –al/var/spool/cron/crontabs
Critical files Permissions   
                  (1) ls –lLd /etc
                  (2) ls –lLd /etc/security
                  (3) ls –lLd /bin
                  (4) ls –lLd /usr
                  (5) ls –lLd /var
                  (6) ls –lLd /sbin


cut -d: -f6 /etc/passwd | sort -u | xargs -I {}  -t ls -ld {}/.netrc
cut -d: -f6 /etc/passwd | sort -u | xargs -I {}  -t ls -ld {}/.rhosts   

/etc/hosts.equiv
/etc/ftpusers   
instfix –iv