[sudo-users] sudo for user lp

Johannes Köster johannes.koester at uni-dortmund.de
Thu Jul 3 13:16:08 EDT 2008


Hello there,
I want to use sudo in a cups backend. As cups runs as user lp, I need
the following for the user:

in sudoers:
lp      ALL=(johannes) NOPASSWD: thecommand


and I use the following command in the cups backend: sudo -u johannes
thecommand

The problem is, that sudo asks for a password although I thought that I
have enabled passwordless execution for the command.

So what else do I have to do for user lp?

Thank you very much for your help.
My system is Debian Lenny.

Johannes Köster




More information about the sudo-users mailing list