escpos-rs: Access denied

Opening connection code:

    let printer_details = PrinterProfile::usb_builder(0x0483, 0x5743)
        .with_endpoint(0x01)
        .unwrap()
        .build();

Error:

Error: rusb error: Access denied (insufficient permissions)

Problem: The printer is owned by group lp and you need current user to be in that group.

Disclaimer:

Not all articles here are meant to be correct. My notes might be wrong or may no longer be relevant. If you want to try things here, please proceed with caution.


Posted

in

by

Tags: