Cron Problem for squidGuard - LTSP 4.0.2 (FC3)
am 21.04.2005 18:05:01 von Dan Bentson-Royal
I seem to be having trouble running a daily cron job. This seems to be
the only job that has trouble - nothing else has the "BAD FILE MODE"
comment.
I googled the problem and found a suggestion that BAD FILE MODE probably
means permissions trouble - but when I checked, it all looks fine. I'm
looking for suggestions on how to proceed.
Here is the error message from my cron log:
[root@localhost ~]# more /var/log/cron | grep squidGuard
Apr 18 17:11:31 localhost crond[2125]: (*system*) BAD FILE MODE
(/etc/cron.d/squidGuard)
Apr 19 11:11:11 localhost crond[2288]: (*system*) BAD FILE MODE
(/etc/cron.d/squidGuard)
Apr 19 11:17:39 localhost crond[2371]: (*system*) BAD FILE MODE
(/etc/cron.d/squidGuard)
Apr 19 13:29:07 localhost crond[2190]: (*system*) BAD FILE MODE
(/etc/cron.d/squidGuard)
[root@localhost ~]# ls -l /etc/cron.daily/
total 92
-rwxr-xr-x 1 root root 418 Nov 19 12:21 00-makewhatis.cron
-rwxr-xr-x 1 root root 135 Aug 18 2004 00webalizer
-rwxr-xr-x 1 root root 276 Sep 28 2004 0anacron
-rw-r--r-- 1 root root 797 Oct 19 2004 certwatch
-rwxr-xr-x 1 root root 180 Oct 19 2004 logrotate
-rwxr-xr-x 1 root root 2133 Nov 23 07:29 prelink
-rwxr-xr-x 1 root root 104 Nov 1 18:54 rpm
-rwxr-xr-x 1 root root 82 Oct 20 2004 slocate.cron
-rwxr-xr-x 1 root root 56 Apr 16 20:00 squidGuard
-rwxr-xr-x 1 root root 286 Aug 13 2004 tmpwatch
-rwxr-xr-x 1 root root 136 Feb 21 07:38 yum.cron
[root@localhost ~]#
I am running LTSP 4.2.0 - FC3
Any suggestions as to where the problem lies?
--
***NOTE***
Whenever you make a request for LCSD technical assistance, please be
sure to report this problem to our helpdesk at:
http://help1.lcsd.k12.wa.us/helpdesk/
Dan Bentson-Royal
La Center Schools
What are employers looking for in an employee?
Come to work every day and be on time.
Make smart decisions.
Follow directions.
Concentrate on your work and care about the quality of your work.
Read, write, and calculate well.
Recognize problems and find solutions.
Finish a job when you're supposed to without sacrificing quality.
Be honest and dependable.
Take the lead and work hard.
Communicate well and get along with other people
Dress properly and practice good grooming.
Be cooperative.
Have a positive attitude.
From the Northwest Pennsylvania Industrial Resource Center, Inc.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Re: Cron Problem for squidGuard - LTSP 4.0.2 (FC3)
am 21.04.2005 18:24:22 von Eric Harrison
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigDA8C8880E0EE06E611170F8E
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Dan Bentson-Royal wrote:
> I seem to be having trouble running a daily cron job. This seems to be
> the only job that has trouble - nothing else has the "BAD FILE MODE"
> comment.
>
> I googled the problem and found a suggestion that BAD FILE MODE probably
> means permissions trouble - but when I checked, it all looks fine. I'm
> looking for suggestions on how to proceed.
>
> Here is the error message from my cron log:
> [root@localhost ~]# more /var/log/cron | grep squidGuard
> Apr 18 17:11:31 localhost crond[2125]: (*system*) BAD FILE MODE
> (/etc/cron.d/squidGuard)
> Apr 19 11:11:11 localhost crond[2288]: (*system*) BAD FILE MODE
> (/etc/cron.d/squidGuard)
> Apr 19 11:17:39 localhost crond[2371]: (*system*) BAD FILE MODE
> (/etc/cron.d/squidGuard)
> Apr 19 13:29:07 localhost crond[2190]: (*system*) BAD FILE MODE
> (/etc/cron.d/squidGuard)
> [root@localhost ~]# ls -l /etc/cron.daily/
> total 92
> -rwxr-xr-x 1 root root 418 Nov 19 12:21 00-makewhatis.cron
> -rwxr-xr-x 1 root root 135 Aug 18 2004 00webalizer
> -rwxr-xr-x 1 root root 276 Sep 28 2004 0anacron
> -rw-r--r-- 1 root root 797 Oct 19 2004 certwatch
> -rwxr-xr-x 1 root root 180 Oct 19 2004 logrotate
> -rwxr-xr-x 1 root root 2133 Nov 23 07:29 prelink
> -rwxr-xr-x 1 root root 104 Nov 1 18:54 rpm
> -rwxr-xr-x 1 root root 82 Oct 20 2004 slocate.cron
> -rwxr-xr-x 1 root root 56 Apr 16 20:00 squidGuard
> -rwxr-xr-x 1 root root 286 Aug 13 2004 tmpwatch
> -rwxr-xr-x 1 root root 136 Feb 21 07:38 yum.cron
> [root@localhost ~]#
> I am running LTSP 4.2.0 - FC3
>
> Any suggestions as to where the problem lies?
>
I recently spotted this problem as well.
You can either update or run this command to fix it:
chmod a-x /etc/cron.d/squidGuard
-Eric
--------------enigDA8C8880E0EE06E611170F8E
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iD8DBQFCZ9O7H9eQw/Gi3tURAto5AJ9tXb/WSOhPhbGS7eGGJTBI5xHhvgCf WzcL
ohOH5lyKnIJNpyQVopOyFB8=
=GXi9
-----END PGP SIGNATURE-----
--------------enigDA8C8880E0EE06E611170F8E--
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Re: Cron Problem for squidGuard - LTSP 4.0.2 (FC3)
am 21.04.2005 18:40:10 von Dan Bentson-Royal
Arturas,
Here are the contents of squidGuard in /etc/cron.daily/ and
/etc/cron.d/squidGuard
---begin clip---
[root@localhost ~]# more /etc/cron.daily/squidGuard
#!/bin/bash
nice /usr/sbin/update_squidguard_blacklists
[root@localhost ~]# nice /usr/sbin/update_squidguard_blacklists
[root@localhost ~]# more /etc/cron.d/squidGuard
/etc/cron.d/squidGuard: No such file or directory
[root@localhost ~]# tail -n 100 /usr/sbin/update_squidguard_blacklists
#!/bin/sh
TARGET=/var/squidGuard/blacklists
cd $TARGET || exit
# only run if squidGuard is active!
[ "`ps auxw | grep squid[G]uard`" ] || exit
rsync -az squidguard.mesd.k12.or.us::filtering $TARGET
for DIR in `ls $TARGET`
do
if [ -f $DIR/domains.include ]
then
TMP=$RANDOM
cat $DIR/domains $DIR/domains.include | sort | uniq >
$DIR/domains.$TMP
mv -f $DIR/domains.$TMP $DIR/domains
fi
if [ -f $DIR/urls.include ]
then
TMP=$RANDOM
cat $DIR/urls $DIR/urls.include | sort | uniq >
$DIR/urls.$TMP
mv -f $DIR/urls.$TMP $DIR/urls
fi
done
/usr/sbin/squidGuard -c /etc/squid/squidGuard.conf -C all
# /usr/sbin/squidGuard -c /etc/squid/squidGuard.conf -u
chown -R squid.squid $TARGET
chown -R squid.squid /var/log/squidGuard/
sleep 5s
/usr/bin/killall -HUP squid
---end clip---
Arturas Moskvinas wrote:
>> -rwxr-xr-x 1 root root 56 Apr 16 20:00 squidGuard
>
>
> Can you write the contents of squidGuard in /etc/cron.daily/ and
> /etc/cron.d/squidGuard
>
>
> Arturas Moskvinas
>
>
--
***NOTE***
Whenever you make a request for LCSD technical assistance, please be
sure to report this problem to our helpdesk at:
http://help1.lcsd.k12.wa.us/helpdesk/
Dan Bentson-Royal
La Center Schools
What are employers looking for in an employee?
Come to work every day and be on time.
Make smart decisions.
Follow directions.
Concentrate on your work and care about the quality of your work.
Read, write, and calculate well.
Recognize problems and find solutions.
Finish a job when you're supposed to without sacrificing quality.
Be honest and dependable.
Take the lead and work hard.
Communicate well and get along with other people...especially
customers.
Dress properly and practice good grooming.
Be cooperative.
Have a positive attitude.
From the Northwest Pennsylvania Industrial Resource Center, Inc.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs