permission of lpd, ipp, mdns changes
Michael Sweet
mike at easysw.com
Wed Nov 7 08:39:36 PST 2007
Doil Lee wrote:
> Thanks for the quick and clear answer. Actually, the problem I have is as follows:
>
> 1. I made my own backend and created link files with original backend file names which points to my backend and moved original backends in safe place.
> 2. As a result, cups scheduler always calls my backend, after I grab some information I call the original backend. This worked fine until Mac OS 10.4.x which uses CUPS 10.1.x, where lpd, ipp, mdns has 755 permission.
> 3. Now when I fork and execv to launch mdns from my backend, I always get 'Permission denied' error. Of course this works fine for pap backend.
>
> It would be really appreciated if you could shed some light on this issue.
You'll need to change the permissions of your backend to 0700, and
then do a setuid to lp (26) when you exec the non-root backends (to
preserve the new security...) Look at the cups-deviced source code
for an example of how to do this...
--
______________________________________________________________________
Michael Sweet, Easy Software Products mike at easysw dot com
Internet Printing and Publishing Software http://www.easysw.com
More information about the cups-devel
mailing list