From owner-freebsd-questions Tue Dec 11 9:26:28 2001 Delivered-To: freebsd-questions@freebsd.org Received: from newmail.skyrunner.net (newmail.skyrunner.net [208.133.44.6]) by hub.freebsd.org (Postfix) with ESMTP id 6303F37BCF3 for ; Tue, 11 Dec 2001 09:14:59 -0800 (PST) Received: from micron (booray.new-era.com [208.150.25.130]) by newmail.skyrunner.net (8.11.2/8.11.0/SuSE Linux 8.11.0-0.4) with SMTP id fBBHDpL24087 for ; Tue, 11 Dec 2001 12:13:51 -0500 From: "Peter Brezny" To: Subject: runing things from /etc/cron as a different user. Date: Tue, 11 Dec 2001 12:17:00 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Sorry for the simple quesiton. I'm just not sure what i'm missing. I'd like to run mrtg from /etc/cron under a user mrtg. I've chowned the binary and all the directories mrtg uses to mrtg:mrtg Added the user mrtg:BMcHSuYDieLc2:1002:1002::0:0:mrtg:/home/www/data/mrtg:/sbin/nologin and put a line in cron:# MRTG */5 * * * * mrtg /usr/local/bin/mrtg /usr/local/etc/mrtg/mrtg.cfg --logging /var/l og/mrtg.log But mrtg does not sucessfully run unless i change the line in cron to execute things as root. TIA Peter Brezny Skyrunner.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message