cups printing server change administrator problem

Hi,

I’m trying to setup a cups printing server, but I want the default admin to not be root. Google has given me a couple hints and the cups administration page a little further but I’m now stuck at the end.

What I want is a user called admin who belongs to the group printadmin as cups server administrator.

What I have done

  1. I have created a local user called admin user yast user interface , and a group called printadmin. Added admin to the group printadmin

  2. I changed the line in /etc/cups/cupsd.conf.

SystemGroup sys root

to

SystemGroup printadmin

  1. Changed all instances of of Authtype from Basic to Digest (Allows me to have a file called passwd.md5 in /etc/cups/ with the name of the allowed cups admins inside)

  2. Ran the following command to create and add admin.


lppasswd -a -g printadmin admin

This is what I receive after running the command

lppasswd -a -g printadmin administrator
Enter password:
Enter password again:
lppasswd: Die Kennwortdatei wird verwendet!

Unfortunately /etc/cups/passwd.md5 doesn’t get created or used ( touch /etc/cups/passwd.md5) I can’t seem to get it to work to change the main admin user. Ne1 have a good guide or knows how to get this to work?

If I could figure out how to edit my post, then I could probably mark this thread as solved.

I just changed the Authtype back to Basic ( so that it looks into the systems /etc/passwd) restarted the cups daemon, and I was able to log in as admin and root was disabled. Problem solved, although I would still like to know why lppasswd didn’t work.

I remember an old thread concerning the owenership of lppasswd. It is owned by user ‘lp’, group ‘sys’. It is explained how to change ownership, but I wouldn’t recommend it.

On 2010-07-06 09:56 GMT whitethorn wrote:

>
> Hi,
>
> I’m trying to setup a cups printing server, but I want the default
> admin to not be root. Google has given me a couple hints and the cups
> administration page a little further but I’m now stuck at the end.

That’s a good idea.

> What I want is a user called admin who belongs to the group printadmin
> as cups server administrator.
>
> What I have done
> 1) I have created a local user called admin user yast user interface ,
> and a group called printadmin. Added admin to the group printadmin

I would advise against a user named “admin”, use some other name not
so easy to guess.

Maybe I’m too paranoid :slight_smile:

I see you got it solved, but one further comment:

> > lppasswd -a -g printadmin administrator
> > Enter password:
> > Enter password again:
> > lppasswd: Die Kennwortdatei wird verwendet!
> >

You got the answer in German; in order to post things into not
German help forums, it is better to get the result in English; you do
not need to change the language of your system, just run the command
like this:


~# LANG=en_US.UTF-8 lppasswd -a -g printadmin administrator

I mention this because I do not know what you got, so I can’t guess
what the problem with lppasswd is.

I could recommend this link:

http://en.opensuse.org/SDB:CUPS_in_a_Nutshell


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” GM (Elessar))