[cups.general] cups-1.4.1 error

Michael Sweet msweet at apple.com
Tue Dec 15 14:37:18 PST 2009


You should have an "lp" or "cups" account (non-login) and group that you use for the printing system.  The main requirement is to use a user and group with non-zero IDs...

On Dec 15, 2009, at 2:28 PM, ferar achkar wrote:

> Michael Sweet,
> In my custom system I don't have but the root user is it OK to omit from the configuration:
> --with-cups-user=root --with-cups-group=root --with-system-groups=root 
> 
> thanks,
> ferar
>> Right, you CANNOT use root for the user or group.  Maybe I should add a check for this to the configure script, since cupsd will not run with User or Group set to "root".
>> 
>> On Dec 15, 2009, at 2:13 PM, ferar achkar wrote:
>> 
>>> Michael Sweet wrote:
>>>> 
>>>> Did you specify --with-cups-user or --with-cups-group when you ran configure?
>>> yes, see below
>>> 
>>> [~/cups-1.4.1] > head config.log
>>> This file contains any messages produced by compilers while
>>> running configure, to aid debugging if configure makes a mistake.
>>> 
>>> It was created by configure, which was
>>> generated by GNU Autoconf 2.61.  Invocation command line was
>>> 
>>>   $ ./configure --prefix=/usr/local/arm-linux CFLAGS=-std=gnu99 -O3 -g0 -W -Wall -mtune=arm926ej-s -I/usr/local/arm-linux/include -I/usr/local/arm-linux/usr/X11R6/include -I/usr/local/arm-linux/include/cairo -I/usr/local/arm-linux/include/directfb -I/usr/local/arm-linux/include/jasper CPPFLAGS=-O3 -g0 -W -Wall -mtune=arm926ej-s -I/usr/local/arm-linux/include -I/usr/local/arm-linux/usr/X11R6/include -I/usr/local/arm-linux/include/cairo -I/usr/local/arm-linux/include/directfb -I/usr/local/arm-linux/include/jasper CXXFLAGS=-O3 -g0 -W -Wall -mtune=arm926ej-s -I/usr/local/arm-linux/include -I/usr/local/arm-linux/usr/X11R6/include -I/usr/local/arm-linux/include/cairo -I/usr/local/arm-linux/include/directfb -I/usr/local/arm-linux/include/jasper LDFLAGS=-L/usr/local/arm-linux/lib -L/usr/local/arm-linux/usr/X11R6/lib -L/usr/local/arm-linux/lib/directfb-1.0-0 --enable-static --enable-libusb --disable-dbus --disable-largefile --with-cups-user=root --with-cups-group=root --with-system-groups=root --with-python
>>> 
>>> ## --------- ##
>>> ## Platform. ##
>>> 
>>>> 
>>>> On Dec 15, 2009, at 2:04 PM, ferar achkar wrote:
>>>> 
>>>>> Michael Sweet,
>>>>> I don't see below:
>>>>> ==========================
>>>>> #
>>>>> # "$Id: cupsd.conf.in 8805 2009-08-31 16:34:06Z mike $"
>>>>> #
>>>>> # Sample configuration file for the CUPS scheduler.  See "man cupsd.conf" for a
>>>>> # complete description of this file.
>>>>> #
>>>>> 
>>>>> # Log general information in error_log - change "warn" to "debug"
>>>>> # for troubleshooting...
>>>>> LogLevel debug
>>>>> 
>>>>> # Administrator user group...
>>>>> SystemGroup root
>>>>> 
>>>>> 
>>>>> # Only listen for connections from the local machine.
>>>>> Listen 127.0.0.1:631
>>>>> Listen /usr/local/arm-linux/var/run/cups/cups.sock
>>>>> 
>>>>> # Show shared printers on the local network.
>>>>> Browsing On
>>>>> BrowseOrder allow,deny
>>>>> BrowseAllow all
>>>>> BrowseLocalProtocols CUPS
>>>>> 
>>>>> # Default authentication type, when authentication is required...
>>>>> DefaultAuthType Basic
>>>>> 
>>>>> # Restrict access to the server...
>>>>> <Location />
>>>>>   Order allow,deny
>>>>> </Location>
>>>>> 
>>>>> # Restrict access to the admin pages...
>>>>> <Location /admin>
>>>>>   Order allow,deny
>>>>> </Location>
>>>>> 
>>>>> # Restrict access to configuration files...
>>>>> <Location /admin/conf>
>>>>>   Order allow,deny
>>>>> </Location>
>>>>> 
>>>>> # Set the default printer/job policies...
>>>>> <Policy default>
>>>>>   # Job-related operations must be done by the owner or an administrator...
>>>>>   <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job CUPS-Get-Document>
>>>>>     Order deny,allow
>>>>>   </Limit>
>>>>> 
>>>>>   # All administration operations require an administrator to authenticate...
>>>>>   <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
>>>>>     Order deny,allow
>>>>>   </Limit>
>>>>> 
>>>>>   # All printer operations require a printer operator to authenticate...
>>>>>   <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
>>>>>     Order deny,allow
>>>>>   </Limit>
>>>>> 
>>>>>   # Only the owner or an administrator can cancel or authenticate a job...
>>>>>   <Limit Cancel-Job CUPS-Authenticate-Job>
>>>>>     Order deny,allow
>>>>>   </Limit>
>>>>> 
>>>>>   <Limit All>
>>>>>     Order deny,allow
>>>>>   </Limit>
>>>>> </Policy>
>>>>> 
>>>>> # Set the authenticated printer/job policies...
>>>>> <Policy authenticated>
>>>>>   # Job-related operations must be done by the owner or an administrator...
>>>>>   <Limit Create-Job Print-Job Print-URI>
>>>>>     Order deny,allow
>>>>>   </Limit>
>>>>> 
>>>>>   <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job CUPS-Get-Document>
>>>>>     Order deny,allow
>>>>>   </Limit>
>>>>> 
>>>>>   # All administration operations require an administrator to authenticate...
>>>>>   <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
>>>>>     Order deny,allow
>>>>>   </Limit>
>>>>> 
>>>>>   # All printer operations require a printer operator to authenticate...
>>>>>   <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
>>>>>     Order deny,allow
>>>>>   </Limit>
>>>>> 
>>>>>   # Only the owner or an administrator can cancel or authenticate a job...
>>>>>   <Limit Cancel-Job CUPS-Authenticate-Job>
>>>>>     Order deny,allow
>>>>>   </Limit>
>>>>> 
>>>>>   <Limit All>
>>>>>     Order deny,allow
>>>>>   </Limit>
>>>>> </Policy>
>>>>> 
>>>>> #
>>>>> # End of "$Id: cupsd.conf.in 8805 2009-08-31 16:34:06Z mike $".
>>>>> #
>>>>> ==========================
>>>>>> On Dec 15, 2009, at 1:47 PM, ferar achkar wrote:
>>>>>>   
>>>>>>> Hi,
>>>>>>> Compiled cups-1.4.1 for ARM (Linux ubisurfer 2.6.21.5-cfs-v19 #390 Tue
>>>>>>> Aug 11 15:57:36 EDT 2009 armv5tejl unknown). cups scheduler  runs fine,
>>>>>>> however when check my usb printer trying "lpinfo -v"  I get:
>>>>>>> lpinfo: Internal Server Error
>>>>>>> 
>>>>>>> in the /var/log/cups/error_log:
>>>>>>> ...
>>>>>>> N [15/Dec/2009:16:42:13 +0000] Group and SystemGroup cannot use the same
>>>>>>> groups!
>>>>>>> I [15/Dec/2009:16:42:13 +0000] Resetting Group to "nobody"...
>>>>>>> ...
>>>>>>> E [15/Dec/2009:16:42:29 +0000] [cups-deviced] Bad user 0!
>>>>>>> ...
>>>>>>> D [15/Dec/2009:16:42:29 +0000] PID 998
>>>>>>> (/usr/local/arm-linux/lib/cups/daemon/cups-deviced) stopped with status 1!
>>>>>>> 
>>>>>>> Any ideas to what is the cause?
>>>>>>>     
>>>>>> 
>>>>>> 
>>>>>> Looks like you have a "User 0" or "Group 0" line in your cupsd.conf file, which is not allowed.
>>>>>> 
>>>>>> ___________________________________________________
>>>>>> Michael Sweet, Senior Printing System Engineer
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> _______________________________________________
>>>>>> cups mailing list
>>>>>> cups at easysw.com
>>>>>> http://lists.easysw.com/mailman/listinfo/cups
>>>>>>   
>>>>> 
>>>>> _______________________________________________
>>>>> cups mailing list
>>>>> cups at easysw.com
>>>>> http://lists.easysw.com/mailman/listinfo/cups
>>>> 
>>>> ___________________________________________________
>>>> Michael Sweet, Senior Printing System Engineer
>>>> 
>>>> 
>>>> 
>>>> 
>>>> _______________________________________________
>>>> cups mailing list
>>>> cups at easysw.com
>>>> http://lists.easysw.com/mailman/listinfo/cups
>>>>   
>>> 
>>> _______________________________________________
>>> cups mailing list
>>> cups at easysw.com
>>> http://lists.easysw.com/mailman/listinfo/cups
>> 
>> ___________________________________________________
>> Michael Sweet, Senior Printing System Engineer
>> 
>> 
>> 
>> 
>> _______________________________________________
>> cups mailing list
>> cups at easysw.com
>> http://lists.easysw.com/mailman/listinfo/cups
>>   
> 
> _______________________________________________
> cups mailing list
> cups at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups

___________________________________________________
Michael Sweet, Senior Printing System Engineer



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cups.org/pipermail/cups/attachments/20091215/5e34743a/attachment-0001.html>


More information about the cups mailing list