Re: [PARPORT] Using C to program printer port

From: Simon (kinsei@netspeed.com.au)
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? -> http://www.linuxgeek.net/index.pl/suid
    > 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

    --
     
    Simon Krix <kinsei@netspeed.com.au>
    Dynjab Technologies R&D
    


    -- To unsubscribe, send mail to: linux-parport-request@torque.net -- -- 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