From owner-freebsd-questions@FreeBSD.ORG Sat Jan 22 21:16:09 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F310016A4CE for ; Sat, 22 Jan 2005 21:16:08 +0000 (GMT) Received: from catflap.slightlystrange.org (cpc2-cmbg1-3-0-cust94.cmbg.cable.ntl.com [213.107.104.94]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7CCC843D45 for ; Sat, 22 Jan 2005 21:16:08 +0000 (GMT) (envelope-from danielby@slightlystrange.org) Received: from danielby by catflap.slightlystrange.org with local (Exim 4.43 (FreeBSD)) id 1CsSc3-0004ls-2r for freebsd-questions@freebsd.org; Sat, 22 Jan 2005 21:16:07 +0000 Date: Sat, 22 Jan 2005 21:16:06 +0000 From: Daniel Bye To: freebsd-questions@freebsd.org Message-ID: <20050122211606.GA18278@catflap.slightlystrange.org> Mail-Followup-To: freebsd-questions@freebsd.org References: <1811797765.20050122212403@wanadoo.fr> <41F2B71C.1060203@scii.nl> <1036176692.20050122220147@wanadoo.fr> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/9DWx/yDrRhgMJTb" Content-Disposition: inline In-Reply-To: <1036176692.20050122220147@wanadoo.fr> User-Agent: Mutt/1.4.2.1i Subject: Re: Who generates the daily, weekly, monthly reports on FreeBSD? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Daniel Bye List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Jan 2005 21:16:09 -0000 --/9DWx/yDrRhgMJTb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jan 22, 2005 at 10:01:47PM +0100, Anthony Atkielski wrote: > albi writes: >=20 > a> check the /etc/periodic/ dir >=20 > I've seen it. But where does it run from? Supposedly you're not > supposed to modify crontab files directly, but where do these jobs > belong if crontab -l from root won't list them. Is there some sort of > "system" crontab in addition to those for root and other users, or how > does it work? /etc/crontab is indeed the "system" crontab. You can safely edit this one by hand. The following three lines are the ones you're interested in: # Perform daily/weekly/monthly maintenance. 1 3 * * * root periodic daily 15 4 * * 6 root periodic weekly 30 5 1 * * root periodic monthly Note the additional field, before the command is named. It determines which user the command runs as. See crontab(5) for more details. Dan --=20 Daniel Bye PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc PGP Key fingerprint: 3B9D 8BBB EB03 BA83 5DB4 3B88 86FC F03A 90A1 BE8F _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ --/9DWx/yDrRhgMJTb Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFB8sKWhvzwOpChvo8RAjdMAJ40qRO3kI3vLwIzx4Qmd469DPmjZACgjwY+ ZJpvA3m8axoWlg3jBc0pvx8= =AI41 -----END PGP SIGNATURE----- --/9DWx/yDrRhgMJTb--