[OS X TeX] OT: Location of print spool files

Peter Erwin erwin at mpe.mpg.de
Sun Jun 11 12:24:57 CEST 2006

At 1:09 AM +0200 6/11/06, Peter Dyballa wrote:
>Am 11.06.2006 um 00:45 schrieb Bruno Voisin:
>>  Did I make a basic error of syntax, or is it the "lp" owner of the 
>>cups directory that is impervious to sudo?
>Twice: no!
>The reason is that cd is a shell built-in command, so you can't 
>'sudo' it, even sudo -H -u root wouldn't change this. X11 would be a 
>help: 'sudo -H xterm <possible arguments>' would launch an xterm and 
>its user would be root -- you even can invoke it with -ls, i.e. with 
>a login shell in xterm.

"ls" and "rm" are Unix programs (unlike "cd"), so they *do* respond to sudo.
So if all you want to do is take a look in /var/spool/cups, you can do this:

$ sudo ls /var/spool/cups

And if you identify a file that you want to remove:

$ sudo rm /path/to/offending_file

(where "/path/to/" might be /var/spool/cups/tmp/ in your case...)


Peter Erwin                   Max-Planck-Insitute for Extraterrestrial
erwin at mpe.mpg.de              Physics, Giessenbachstrasse
tel. +49 (0)89 30000 3695     85748 Garching, Germany
fax  +49 (0)89 30000 3495     http://www.mpe.mpg.de/~erwin
------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/

More information about the macostex-archives mailing list