aboutsummaryrefslogtreecommitdiffstats
path: root/cron-sh/security_check.sh
diff options
context:
space:
mode:
authorFrederic Lepied <flepied@mandriva.com>2001-08-09 08:10:59 +0000
committerFrederic Lepied <flepied@mandriva.com>2001-08-09 08:10:59 +0000
commit7c4523ed3de1cb0e5ea25d8e452c946232449ed4 (patch)
treea6c690d0e4382b47f92173d3f5821bf560951e6b /cron-sh/security_check.sh
parent2672f03b09c111a536856390cb5430b0fb4a6579 (diff)
downloadmsec-7c4523ed3de1cb0e5ea25d8e452c946232449ed4.tar
msec-7c4523ed3de1cb0e5ea25d8e452c946232449ed4.tar.gz
msec-7c4523ed3de1cb0e5ea25d8e452c946232449ed4.tar.bz2
msec-7c4523ed3de1cb0e5ea25d8e452c946232449ed4.tar.xz
msec-7c4523ed3de1cb0e5ea25d8e452c946232449ed4.zip
merge back 0.15-17mdk in CVS
Diffstat (limited to 'cron-sh/security_check.sh')
-rwxr-xr-xcron-sh/security_check.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/cron-sh/security_check.sh b/cron-sh/security_check.sh
index a5ad71c..5055b52 100755
--- a/cron-sh/security_check.sh
+++ b/cron-sh/security_check.sh
@@ -62,7 +62,7 @@ while read username uid homedir; do
for f in ${list} ; do
file="${homedir}/${f}"
if [[ -f ${file} ]] ; then
- printf "${uid} ${username} ${file} `ls -ldcgn ${file}`\n"
+ printf "${uid} ${username} ${file} `ls -Lldcgn ${file}`\n"
fi
done
done | awk '$1 != $6 && $6 != "0" \
@@ -91,7 +91,7 @@ while read username uid homedir; do
for f in ${list} ; do
file=${homedir}/${f}
if [[ -f ${file} ]] ; then
- printf "${uid} ${username} ${file} `ls -ldcgn ${file}`\n"
+ printf "${uid} ${username} ${file} `ls -Lldcgn ${file}`\n"
fi
done
done | awk '$1 != $6 && $6 != "0" \
@@ -110,9 +110,9 @@ fi
awk -F: '/^[^+-]/ { print $1 " " $3 " " $6 }' /etc/passwd | \
while read username uid homedir; do
if [[ -d ${homedir} ]] ; then
- realuid=`ls -ldgn ${homedir}| awk '{ print $3 }'`
- realuser=`ls -ldg ${homedir}| awk '{ print $3 }'`
- permissions=`ls -ldg ${homedir}| awk '{ print $1 }'`
+ realuid=`ls -Lldgn ${homedir}| awk '{ print $3 }'`
+ realuser=`ls -Lldg ${homedir}| awk '{ print $3 }'`
+ permissions=`ls -Lldg ${homedir}| awk '{ print $1 }'`
printf "${permissions} ${username} (${uid}) ${realuser} (${realuid})\n"
fi
done | awk '$3 != $5 && $5 != "(0)" \