[cups][printers] fix permissions and setup cups-pdf

ISSUE

In default Manjaro setup first user with root privileges don't have permissions for administration and add printers.

WORKAROUND

Create new group lpadmin and add self to this group:

sudo groupadd -g107 lpadmin
sudo gpasswd -a $USER lpadmin

Add lpadmin group to /etc/cups/cups-files.conf:

sudo sed -i 's/SystemGroup sys root/SystemGroup sys root lpadmin/g'  /etc/cups/cups-files.conf

VALID INSTALL CUPS PDF:

sudo lpadmin -p cups-pdf -v cups-pdf:/ -E -P /usr/share/cups/model/CUPS-PDF_opt.ppd
2 Likes

Far easier to just add first user to lp group if you want to bypass sudo requirement.

First user is in default in lp group BUT for manage cups user need using ROOT password. :stuck_out_tongue:

You have right.

Proper is lpadmin :stuck_out_tongue_winking_eye:

do we even have that group by default?

In your defense, this has been handled haphazardly by a lot of different distros. Most just default to letting root handle it, which is often annoying to home users, and seldom suitable in larger installations.

Nope. It is not ENABLED in default.

Forum kindly sponsored by