Re: [PARPORT] Using C to program printer port

From: Simon (
Date: Mon Jan 27 2003 - 22:21:41 EST

  • Next message: Gora Mohanty: "Re: [PARPORT] Using C to program printer port"

    On Tue, 2003-01-28 at 13:43, Robert Heller wrote:

    > IF> suid-bit? ->
    > Better: chown/chmod of /dev/lp?
    > The suid-bit is seriously *dangerious*. All it takes is a silly
    > buffer-overrun bug and a seriously clever cracker and your system is
    > trashed.

    He's not using /dev/lp, he's using direct IO to the hardware port. You
    have to be root for that.

    You could do this as a user using libieee1284, though, which was
    mentioned in a previous post. It is much safer and would solve the
    problems you just pointed out. It would also make the program portable
    to other operating systems, promote world peace, etc.


    Simon Krix <>
    Dynjab Technologies R&D

    -- To unsubscribe, send mail to: -- -- with the single word "unsubscribe" in the body of the message. --

    This archive was generated by hypermail 2b29 : Mon Jan 27 2003 - 22:22:31 EST