diff options
author | Eugeni Dodonov <eugeni@mandriva.org> | 2009-03-12 13:37:34 +0000 |
---|---|---|
committer | Eugeni Dodonov <eugeni@mandriva.org> | 2009-03-12 13:37:34 +0000 |
commit | 9103886714dbea53f6d9d7c05607c237a8856e93 (patch) | |
tree | 33a88f4e87239032a775141b8ace3629491b28bf /cron-sh | |
parent | ed3d0aa8d70f4ed2657dd73ea10b41f7c0a766df (diff) | |
download | msec-9103886714dbea53f6d9d7c05607c237a8856e93.tar msec-9103886714dbea53f6d9d7c05607c237a8856e93.tar.gz msec-9103886714dbea53f6d9d7c05607c237a8856e93.tar.bz2 msec-9103886714dbea53f6d9d7c05607c237a8856e93.tar.xz msec-9103886714dbea53f6d9d7c05607c237a8856e93.zip |
Updated list of files to check for bad owner/permissions.
Diffstat (limited to 'cron-sh')
-rwxr-xr-x | cron-sh/security_check.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cron-sh/security_check.sh b/cron-sh/security_check.sh index c7bb664..2b6fea6 100755 --- a/cron-sh/security_check.sh +++ b/cron-sh/security_check.sh @@ -89,13 +89,15 @@ fi list=".bashrc .bash_profile .bash_login .bash_logout .cshrc .emacs .exrc \ .forward .klogin .login .logout .profile .tcshrc .fvwmrc .inputrc .kshrc \ .nexrc .screenrc .ssh .ssh/config .ssh/authorized_keys .ssh/environment \ -.ssh/known_hosts .ssh/rc .twmrc .xsession .xinitrc .Xdefaults" +.ssh/known_hosts .ssh/rc .twmrc .xsession .xinitrc .Xdefaults \ +.gnupg .gnupg/secring.gpg .ssh/identity .ssh/id_dsa .ssh/id_rsa \ +.Xauthority .cvspass .subversion/auth .purple/accounts.xml .config " getent passwd | awk -F: '/^[^+-]/ { print $1 ":" $3 ":" $6 }' | \ while IFS=: read username uid homedir; do if ! expr "$homedir" : "$FILTER" > /dev/null; then for f in ${list} ; do file="${homedir}/${f}" - if [[ -f "${file}" ]] ; then + if [[ -e "${file}" ]] ; then res=`ls -LldcGn "${file}" | sed 's/ \{1,\}/:/g'` printf "${uid}:${username}:${file}:${res}\n" fi |