From owner-freebsd-questions Fri May 1 21:13:11 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA00233 for freebsd-questions-outgoing; Fri, 1 May 1998 21:13:11 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from shell6.ba.best.com (jkb@shell6.ba.best.com [206.184.139.137]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA00225 for ; Fri, 1 May 1998 21:13:08 -0700 (PDT) (envelope-from jkb@best.com) Received: from localhost (jkb@localhost) by shell6.ba.best.com (8.8.8/8.8.BEST) with SMTP id VAA06715; Fri, 1 May 1998 21:13:06 -0700 (PDT) X-Authentication-Warning: shell6.ba.best.com: jkb owned process doing -bs Date: Fri, 1 May 1998 21:13:05 -0700 (PDT) From: Jan Koum X-Sender: jkb@shell6.ba.best.com To: CyberPeasant cc: Dima Dorfman , freebsd-questions@FreeBSD.ORG Subject: Re: 'at' command: disable In-Reply-To: <199805010252.WAA24212@pollux.loco.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Privet Dima, This is from the man page: ============ The superuser may use these commands in any case. For other users, per-mission to use at is determined by the files /var/at/at.allow and /var/at/at.deny. If the file /var/at/at.allow exists, only usernames mentioned in it are allowed to use at. If /var/at/at.allow does not exist, /var/at/at.deny is checked, every username not mentioned in it is then allowed to use at. ============= I'd first try doing "touch /var/at/at.allow" which would create an empty file (hence, no users to allow use of "at" to). If the above doesn't work, then you can "cut -f1 -d: /etc/passwd > /var/at/at.deny", which would then deny use of "at" to all users listed in /etc/passwd file. Oops, just tried first method and I thing you will have to use the second method: shell6: {1036} ls -l /var/at/at.deny -rw------- 1 root wheel 0 Jul 17 1997 /var/at/at.deny shell6: {1037} at 10am May 2 ls -l Job 6 will be executed using /bin/sh shell6: {1038} atq Date Owner Queue Job# 10:00:00 05/02/98 jkb c 6 shell6: {1039} Hope above helps. -- Yan Jan Koum jkb@best.com | "Turn up the lights; I don't want www.FreeBSD.org -- The Power to Serve | to go home in the dark." Linux -- DOS of the Unix world. On Thu, 30 Apr 1998, CyberPeasant wrote: >> Hi: >> >> Is there any way I can disable the 'at' command? I really don't need it, >> and I deleted it's directories under /var. It now complains that it can't >> find them, but I don't want it running. I can't find it as a proccess >> either. Is there a way I can disable it? >> >> Thanks! >> > >It's fired up by cron. Edit /etc/crontab, and comment out the line >with atrun in it. > >Dave >-- > <----. mailto/pgpfinger: djv@bedford.net > <----|=================================== > <----' Crathva fxrjre > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message