Cron [EMAIL PROTECTED] /usr/libexec/save-entropy

2006-09-22 Thread Martin McCormick
I must have dome something wrong setting up a FreeBSD5.4
system, but I haven't a clue as to what.

The script is called save-entropy, a great idea, but it
acts as if lots of the configuration it needs is missing.  I do
have ipfw running and it got all the rules I put in to it via a
rule-setting script called in rc.conf.local but the message that
cron generates every eleven minutes shows that something is very
unhappy.

For now, I simply commented out the save-entropy run for
a bit of peace and quiet, but the entropy is now not being
updated which is not a good thing.

What do I need to look at to fix this properly?

Thank you.

Martin McCormick WB5AGZ  Stillwater, OK 
Systems Engineer
OSU Information Technology Department Network Operations Group

--- Forwarded Message


Date:Fri, 22 Sep 2006 08:55:00 CDT

From:[EMAIL PROTECTED] (Cron Daemon)
Subject: Cron [EMAIL PROTECTED] /usr/libexec/save-entropy


ipfw: not found

That repeats 15 more times.


--- End of Forwarded Message

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Cron [EMAIL PROTECTED] /usr/libexec/save-entropy

2006-09-22 Thread Martin McCormick
Martin McCormick writes:
 I must have dome something wrong setting up a FreeBSD5.4
 system, but I haven't a clue as to what.

This is still Martin McCormick.  I haven't found exactly
what I did yet, but I remembered that I do have a second 5.4 box
and it appears to be fine so I can probably solve this after some
digging.  Sorry to waste anybody's time.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Cron [EMAIL PROTECTED] /usr/libexec/save-entropy

2006-09-22 Thread Bernd Trippel

Quoting Martin McCormick [EMAIL PROTECTED]:


I must have dome something wrong setting up a FreeBSD5.4
system, but I haven't a clue as to what.

The script is called save-entropy, a great idea, but it
acts as if lots of the configuration it needs is missing.  I do
have ipfw running and it got all the rules I put in to it via a
rule-setting script called in rc.conf.local but the message that
cron generates every eleven minutes shows that something is very
unhappy.

For now, I simply commented out the save-entropy run for
a bit of peace and quiet, but the entropy is now not being
updated which is not a good thing.

What do I need to look at to fix this properly?

Thank you.

Martin McCormick WB5AGZ  Stillwater, OK
Systems Engineer
OSU Information Technology Department Network Operations Group

--- Forwarded Message


Date:Fri, 22 Sep 2006 08:55:00 CDT

From:[EMAIL PROTECTED] (Cron Daemon)
Subject: Cron [EMAIL PROTECTED] /usr/libexec/save-entropy


ipfw: not found

That repeats 15 more times.


--- End of Forwarded Message




Seems you have a line containing only ipfw in your rc.conf.
Comment it out or remove it. save-entropy relies on files specified in 
rc.conf.



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Cron operator /usr/libexec/save-entropy

2006-03-29 Thread Lowell Gilbert
Vaaf [EMAIL PROTECTED] writes:

 Cron keeps spamming me:
 
 override r  operator/operator for
 /var/db/entropy/saved-entropy.6? (y/n [n]) not overwritten
 override r  operator/operator for
 /var/db/entropy/saved-entropy.5? (y/n [n]) not overwritten
 override r  operator/operator for
 /var/db/entropy/saved-entropy.4? (y/n [n]) not overwritten
 override r  operator/operator for
 /var/db/entropy/saved-entropy.3? (y/n [n]) not overwritten
 override r  operator/operator for
 /var/db/entropy/saved-entropy.2? (y/n [n]) not overwritten
 
 How do I stop this?

Looks like the crontab entry has the wrong ownership.
In RELENG_6, the entry is:

*/11*   *   *   *   operator /usr/libexec/save-entropy


-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
http://be-well.ilk.org/~lowell/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Cron operator /usr/libexec/save-entropy

2006-03-28 Thread Vaaf


Hello again!

Cron keeps spamming me:

override r  operator/operator for 
/var/db/entropy/saved-entropy.6? (y/n [n]) not overwritten
override r  operator/operator for 
/var/db/entropy/saved-entropy.5? (y/n [n]) not overwritten
override r  operator/operator for 
/var/db/entropy/saved-entropy.4? (y/n [n]) not overwritten
override r  operator/operator for 
/var/db/entropy/saved-entropy.3? (y/n [n]) not overwritten
override r  operator/operator for 
/var/db/entropy/saved-entropy.2? (y/n [n]) not overwritten


How do I stop this?

Thanks,
Vaaf

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [Fwd: Cron [EMAIL PROTECTED] /usr/libexec/save-entropy]

2005-09-14 Thread Paul Schiro


Doh!  and Duh!  Sorry to waste list space on that one... ;)  Fixed 
now... wierd though since i use vi and don't set it to do any wrapping.


--
Paul Schiro
Sr. Systems Engineer
American Select
[EMAIL PROTECTED]



Dan Nelson wrote:

In the last episode (Sep 13), Paul Schiro said:


I just got a FreeBSD 5.4-STABLE box up and running, and I noticed
that all my rc scripts (despite otherwise working properly) output
the following to stderr when running:

-snip-
gs: not found
files: not found
-snip-



I'd check for typos in /etc/rc.conf, possibly due to an overly-smart
editor wrapping lines on you.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


[Fwd: Cron [EMAIL PROTECTED] /usr/libexec/save-entropy]

2005-09-13 Thread Paul Schiro


I just got a FreeBSD 5.4-STABLE box up and running, and I noticed that 
all my rc scripts (despite otherwise working properly) output the 
following to stderr when running:


-snip-
gs: not found
files: not found
-snip-

What is the deal with that?  I have no made any special modifications to 
the rc subsystem... it's pretty much stock.


Please reply to my email as well as list... sorry if this has been 
answered but i couldn't find anything on this via google.


--
Paul Schiro
Sr. Systems Engineer
American Select
[EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [Fwd: Cron [EMAIL PROTECTED] /usr/libexec/save-entropy]

2005-09-13 Thread Dan Nelson
In the last episode (Sep 13), Paul Schiro said:
 I just got a FreeBSD 5.4-STABLE box up and running, and I noticed
 that all my rc scripts (despite otherwise working properly) output
 the following to stderr when running:
 
 -snip-
 gs: not found
 files: not found
 -snip-

I'd check for typos in /etc/rc.conf, possibly due to an overly-smart
editor wrapping lines on you.

-- 
Dan Nelson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


/usr/libexec/save-entropy

2004-04-21 Thread Piotr Gnyp
Hi
On my FreeBSD 5.2.1-R-p5 I have problems with /usr/libexec/save-entropy
in cron. The error message says:
/etc/rc.conf: cannot create /etc/rc.conf: Permission denied

my /etc/rc.conf file permissions:
-rwxr-xr-x  1 root  wheel  2,2K 20 Kwi 16:23 /etc/rc.conf*

my /etc/crontab:
# Save some entropy so that /dev/random can re-seed on boot.
#*/11   *   *   *   *   operator /usr/libexec/save-entropy

What shoud I change for /usr/libexec/save-entropy to work properly? For
now I`ve switched it off. Please advice.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /usr/libexec/save-entropy

2004-04-21 Thread Ruben de Groot
On Wed, Apr 21, 2004 at 09:44:33AM +0200, Piotr Gnyp typed:
 Hi
 On my FreeBSD 5.2.1-R-p5 I have problems with /usr/libexec/save-entropy
 in cron. The error message says:
 /etc/rc.conf: cannot create /etc/rc.conf: Permission denied

Looks like you have something wrong in your /etc/rc.conf.

 my /etc/rc.conf file permissions:
 -rwxr-xr-x  1 root  wheel  2,2K 20 Kwi 16:23 /etc/rc.conf*
 
 my /etc/crontab:
 # Save some entropy so that /dev/random can re-seed on boot.
 #*/11   *   *   *   *   operator /usr/libexec/save-entropy
 
 What shoud I change for /usr/libexec/save-entropy to work properly? For
 now I`ve switched it off. Please advice.
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /usr/libexec/save-entropy

2004-04-21 Thread Piotr Gnyp
On Wed, 21 Apr 2004, Ruben de Groot [EMAIL PROTECTED] wrote:

 Looks like you have something wrong in your /etc/rc.conf.

And it was, I`ve found the bug. Thanks for help.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


[FreeBSD 5.0] Problem with /etc/crontab -- /usr/libexec/save-entropy //

2003-11-03 Thread Greg Bernard
I have a problem with the /usr/libexec/save-entropy script executed by
crontab in /etc/crontab :


 # Save some entropy so that /dev/random can re-seed on boot.
 */11   *   *   *   *   operator /usr/libexec/save-entropy


When I let the /etc/crontab script execute normally I have a mail generated
automatically complaining about --: not found

  1
 Message 1:
 From [EMAIL PROTECTED]  Sun Nov  2 23:11:00 2003
 Date: Sun, 2 Nov 2003 23:11:00 +0100 (CET)
 From: [EMAIL PROTECTED] (Cron Daemon)
 To: [EMAIL PROTECTED]
 Subject: Cron [EMAIL PROTECTED] /usr/libexec/save-entropy
 X-Cron-Env: SHELL=/bin/sh
 X-Cron-Env: PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
 X-Cron-Env: HOME=/
 X-Cron-Env: LOGNAME=operator
 X-Cron-Env: USER=operator
 X-Spam-Status: No, hits=0.8 required=5.0
   tests=CRON_ENV,FROM_AND_TO_SAME_5,SPAM_PHRASE_00_01
   version=2.43
 X-Spam-Level: 
 
 --: not found


I had to comment the line in /etc/crontab so that It stopped generating
error every 11 minutes, could this be a potential problem ?

I don't exactly see what seems to go wrong with the script !?




Here is the script /usr/libexec/save-entropy


#!/bin/sh
#
# Copyright (c) 2001  The FreeBSD Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#notice, this list of conditions and the following disclaimer in the
#documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# $FreeBSD: src/libexec/save-entropy/save-entropy.sh,v 1.2 2001/01/14
07:18:31 d
ougb Exp $

# This script is called by cron to store bits of randomness which are
# then used to seed /dev/random on boot.

# Originally developed by Doug Barton, [EMAIL PROTECTED]

PATH=/bin:/usr/bin

# If there is a global system configuration file, suck it in.
#
if [ -r /etc/defaults/rc.conf ]; then
. /etc/defaults/rc.conf
source_rc_confs
elif [ -r /etc/rc.conf ]; then
. /etc/rc.conf
fi

case ${entropy_dir} in
[Nn][Oo])
exit 0
;;
*)
entropy_dir=${entropy_dir:-/var/db/entropy}
;;
esac

entropy_save_sz=${entropy_save_sz:-2048}
entropy_save_num=${entropy_save_num:-8}

if [ ! -d ${entropy_dir} ]; then
umask 077
mkdir ${entropy_dir} || {
logger -is -t $0 The entropy directory ${entropy_dir} does
not \
exist, and cannot be created.  Therefore no entropy can be saved. ;
exit 1;}
/usr/sbin/chown operator:operator ${entropy_dir}
chmod 0700 ${entropy_dir}
fi

umask 377

for file_num in `jot ${entropy_save_num} ${entropy_save_num} 1`; do
if [ -e ${entropy_dir}/saved-entropy.${file_num} ]; then
if [ -f ${entropy_dir}/saved-entropy.${file_num} ]; then
new_num=$(($file_num + 1))
if [ ${new_num} -gt ${entropy_save_num} ]; then
rm -f
${entropy_dir}/saved-entropy.${file_num}
else
mv
${entropy_dir}/saved-entropy.${file_num} \
   
${entropy_dir}/saved-entropy.${new_num}
fi
else
logger -is -t $0 \
${entropy_dir}/saved-entropy.${file_num} is not a regular file, and
therefore \
it will not be rotated. Entropy file harvesting is aborted.
exit 1
fi
fi
done

dd if=/dev/random of=${entropy_dir}/saved-entropy.1 \
bs=2048 count=1 2 /dev/null

exit 0
 





«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§

Grégory Bernard   21, rue JJ Rousseau
Directeur 75001 Paris France
www.ToDoo.biz tel : +(33) 1 40 26 43 14

«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§

PGP ID -- 0x1BA3C2FD

I have always

Problems with /usr/libexec/save-entropy

2003-10-21 Thread Robert Small
Ok, I'm an idiot! I MUST have done something to my system yesterday. It's been running 
fine, and around 3:00pm yesterday, I started receiving emails from Cron 
/usr/local/save-entropy saying:

*User: not found

I've tried everything, and looking into everything. I've checked my master.passwd and 
group (compared 'em to /usr/src/etc).

I've checked crontab (/etc/crontab), and root's crontab (empty). I've also compared to 
another 5.1 (Release) box, and everhthing is the same. Could someone point me in the 
right direction?

I'm running: 5.1 Current. 

I even did another update, build world, kernel and merge this morning, all to no avail!

The line in my crontab is:

*/11 * * * * operator /usr/libexec/save-entropy

And when I try to run it from the command line I get:

/etc# /usr/libexec/save-entropy 
*User: not found

Any/all help would be appreciated.

Thanks!

Robert

Please CC me as I'm not currently subscribed to this list.  THANKS!
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Problems with /usr/libexec/save-entropy

2003-10-21 Thread Ruben de Groot
On Tue, Oct 21, 2003 at 08:10:55AM -0500, Robert Small typed:
 Ok, I'm an idiot! I MUST have done something to my system yesterday. It's been 
 running fine, and around 3:00pm yesterday, I started receiving emails from Cron 
 /usr/local/save-entropy saying:
 
 *User: not found

Look for the string *User in /etc/rc.conf (and remove it).

-Ruben

 
 I've tried everything, and looking into everything. I've checked my master.passwd 
 and group (compared 'em to /usr/src/etc).
 
 I've checked crontab (/etc/crontab), and root's crontab (empty). I've also compared 
 to another 5.1 (Release) box, and everhthing is the same. Could someone point me in 
 the right direction?
 
 I'm running: 5.1 Current. 
 
 I even did another update, build world, kernel and merge this morning, all to no 
 avail!
 
 The line in my crontab is:
 
 */11 * * * * operator /usr/libexec/save-entropy
 
 And when I try to run it from the command line I get:
 
 /etc# /usr/libexec/save-entropy 
 *User: not found
 
 Any/all help would be appreciated.
 
 Thanks!
 
 Robert
 
 Please CC me as I'm not currently subscribed to this list.  THANKS!
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]