Allowing users to remove files in /usr/spool/at
Jimmy Aitken
jimmy at pyrltd.UUCP
Wed Mar 28 19:24:01 AEST 1990
In article <2409 at syma.sussex.ac.uk> andy at syma.sussex.ac.uk (Andy Clews) writes:
>I work on a Sequent Symmetry S81 running DYNIX 3.0.15. My question
>could, however, apply to any UN*X box.
>
>Files in this directory are owned and writeable by the people who gave
>the corresponding "at" command, but because /usr/spool/at can only at
>present be written by root, users cannot delete their own "at" files.
>
>Can anyone suggest a way in which I can give this sort of access to
>/usr/spool/at without compromising system security by allowing the world
>to write to it? I'm a bit wary of creating a setuid'd program to do it.
The way that I 'delete' at jobs when I don't want them to run is by
truncating the file. The easiest way to do this is to:
echo > /usr/spool/at/<whatever> for csh and sh
or
> /usr/spool/at/<whatever> for sh
Jimmy
--
-m------- Jimmy Aitken ...!mcvax!ukc!pyrltd!jimmy
---mmm----- Pyramid Technology Ltd jimmy at pyra.co.uk
-----mmmmm--- Pyramid House, Solartron Rd jimmy at pyramid.pyramid.com
-------mmmmmmm- Hants GU14 7PL, ENGLAND (+44) 252 373035
More information about the Comp.unix.questions
mailing list