Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 May 1998 21:13:05 -0700 (PDT)
From:      Jan Koum  <jkb@best.com>
To:        CyberPeasant <djv@bedford.net>
Cc:        Dima Dorfman <dima@apc.net>, freebsd-questions@FreeBSD.ORG
Subject:   Re: 'at' command: disable
Message-ID:  <Pine.BSF.3.96.980501210104.3359B-100000@shell6.ba.best.com>
In-Reply-To: <199805010252.WAA24212@pollux.loco.net>

next in thread | previous in thread | raw e-mail | index | archive | help

	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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980501210104.3359B-100000>