7

I can't change settings on my cups printer. He asks me for a username and password i already added for me the usergroup lpadmin . But nothing changes after a restart of cups. Still asking me for username and password and my user is not working.

d3rdon
  • 322

5 Answers5

9

I had the same problem.

I seem to have fixed it with the command:

sudo usermod -a -G lpadmin pi

This adds the user name pi to the cups user group lpadmin. You can then use the default user name "pi" and password "raspberry" when prompted.

Mudit Kapil
  • 2,081
Phil
  • 91
4

Check if cups is accessible on your localhost through the webinterface

Listen localhost:631
WebInterface Yes

in /etc/cups/cupsd.conf. Then restart cups using

sudo killall cupsd
sudo /etc/init.d/cups restart

and check if you user is part of the group lpadmin

cat /etc/group | grep YOUR-USERNAME

After that you should be able to access cups with you username & pwd on http://127.0.0.1:631/

If it still fails check the cups error log here

tail -f /var/log/cups/error_log

P.S. you might also want to read this thread.

mcantsin
  • 1,264
2
  • You can use credentials of any user who is in the lpadmin group.
  • To see the list of users in lpadmin group, use the command in a root shell

    cat /etc/group | grep lpadmin

2

Just upgraded a bunch of client computers from 14.04 to 16.04 on and ran into this issue.
This appears to be the problem:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/1157318

The fix

apt install apparmor-utils
aa-complain /etc/apparmor.d/usr.sbin.cupsd

Of course, make sure you really have your user ID in the lpadmin group, as the OP stated.

BISI
  • 792
0

If you ended up here like me on a newer version, 18.04, you should already be apart of this group. So your username and password should work.

Goddard
  • 4,860