HenrikBengtsson/brother-ptouch-label-printer-on-linux

Can we set SUID on ptouch-print to avoid sudo?

HenrikBengtsson opened this issue · 1 comments

Can we set SUID on ptouch-print to avoid sudo?

To achieve this, we need to:

  1. set the SUID flag (it's sufficient to set it for "user" - "group" and "other" is not needed)
  2. change owner of the file to root
$ sudo chmod u+s build/ptouch-print
$ sudo chown root:root build/ptouch-print