HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   Ubuntu Server (http://www.howtoforge.com/forums/showthread.php?t=2208)

hipnerd 23rd January 2006 17:24

Ubuntu Server
 
I have been following the HOWTO guide listed here to create my own domain server for my Windows XP Pro network.

So far I've had some limited success, but I'm not quite there.

My largest problem is that I cannot get CUPS to work correctly. Jobs just go to the printer and die a quiet death in queue.

This is the output of my CUPS error_log file:

Quote:

I [23/Jan/2006:06:25:14 -0800] Listening to 7f000001:631
I [23/Jan/2006:06:25:14 -0800] Listening to c0a80019:631
I [23/Jan/2006:06:25:14 -0800] Loaded configuration file "/etc/cups/cupsd.conf"
I [23/Jan/2006:06:25:14 -0800] Configured for up to 100 clients.
I [23/Jan/2006:06:25:14 -0800] Allowing up to 100 client connections per host.
I [23/Jan/2006:06:25:14 -0800] Full reload is required.
E [23/Jan/2006:06:25:14 -0800] LoadAllClasses: Unable to open /etc/cups/classes.
conf - No such file or directory
I [23/Jan/2006:06:25:15 -0800] LoadPPDs: Read "/etc/cups/ppds.dat", 249 PPDs...
I [23/Jan/2006:06:25:15 -0800] LoadPPDs: No new or changed PPDs...
I [23/Jan/2006:06:25:15 -0800] Full reload complete.
I did have difficulty figuring out where the line:
"AuthGroupName shadow"
belonged in the /etc/cups/cupsd.conf file. I settled for a place in the <Location /admin> section, because that did give me access to the admin area of CUPS, although I suspect this is the wrong place. I cannot find a commented out AuthGroupName line to put this near. It is mentioned once in the "Security Options" directions, but placing it in that area results in an error message.

Anyone have any help for me on this. I feel like I'm close, but that mythical cigar eludes me.

till 23rd January 2006 17:45

1 Attachment(s)
I've attached a correct cupsd.conf file.

"AuthGroupName shadow" has to be in the security options section.

hipnerd 24th January 2006 00:08

Quote:

Originally Posted by till
I've attached a correct cupsd.conf file.

"AuthGroupName shadow" has to be in the security options section.

That is where I had the line initially. This is what I get when I put AuthGroupName there:
Quote:

I [23/Jan/2006:15:05:47 -0800] Scheduler shutting down normally.
I [23/Jan/2006:15:05:47 -0800] Listening to 7f000001:631
I [23/Jan/2006:15:05:47 -0800] Listening to c0a80019:631
E [23/Jan/2006:15:05:47 -0800] Unknown directive AuthGroupName on line 748.
I [23/Jan/2006:15:05:47 -0800] Loaded configuration file "/etc/cups/cupsd.conf"
I [23/Jan/2006:15:05:47 -0800] Configured for up to 100 clients.
I [23/Jan/2006:15:05:47 -0800] Allowing up to 100 client connections per host.
I [23/Jan/2006:15:05:47 -0800] Full reload is required.

till 24th January 2006 10:07

Have you put only AuthGroupName there or used my config file? Its working perfectly without errors in my setup, and thats the setup i ued to writ this howto :)

hipnerd 25th January 2006 07:55

Quote:

Originally Posted by till
Have you put only AuthGroupName there or used my config file? Its working perfectly without errors in my setup, and thats the setup i ued to writ this howto :)

I matched line for line. But just in case I missed something. I copied your cupsd.conf file and edited the IP addresses to match my system.

Then I restarted CUPS with /etc/init.d/cupsys restart

Here is the new output of /var/log/cups/error_log:

Quote:

I [24/Jan/2006:22:49:13 -0800] Listening to 7f000001:631
I [24/Jan/2006:22:49:13 -0800] Listening to c0a80019:631
E [24/Jan/2006:22:49:13 -0800] Unknown directive AuthGroupName on line 748.
I [24/Jan/2006:22:49:13 -0800] Loaded configuration file "/etc/cups/cupsd.conf"
I [24/Jan/2006:22:49:13 -0800] Configured for up to 100 clients.
I [24/Jan/2006:22:49:13 -0800] Allowing up to 100 client connections per host.
I [24/Jan/2006:22:49:13 -0800] Full reload is required.
E [24/Jan/2006:22:49:13 -0800] LoadAllClasses: Unable to open /etc/cups/classes.conf - No such file
or directory
I [24/Jan/2006:22:49:13 -0800] LoadPPDs: Read "/etc/cups/ppds.dat", 249 PPDs...
I [24/Jan/2006:22:49:13 -0800] LoadPPDs: No new or changed PPDs...
I [24/Jan/2006:22:49:13 -0800] Full reload complete.
It still doesn't like AuthGroupName shadow for some reason.

falko 25th January 2006 18:05

Are you sure you followed the tutorial to the letter?

hipnerd 25th January 2006 20:16

Quote:

Originally Posted by falko
Are you sure you followed the tutorial to the letter?

Well, I was drinking heavily at the time, but I'm pretty sure I followed along.

Obviously, something did not work quite right. So I won't let myself off the hook completely, but I followed the instructions as closely as possible. The only areas where I am aware that I deviated from the instructions was in creating the initial user account. I did not name it "Administrator" because I did not notice that was required. I also installed the SMP kernel as I have a server with dual PIIIs.

The first place I noticed some deviation from expected responses was in the area involving "quota." I believe that I got some error responses at that point. I attemtped to redo that section in case I made a mistake and got similar results. I decided to plow ahead anyway, on the basis that perhaps those actually were the expected responses. What the heck do I know?

Then when I attempted to test the setup with:
smbclient -L localhost -U%
I noticed that the "print$" line was missing. But the instructions said the output should look similar to the one shown. I figured I would at least complete the installation before peppering the board with questions.

And in the CUPS web interface, I get this line at the top of all pages:
Administrative tasks have been disabled for security reasons. Please use Menu System > Administration > Printing.
Since I am airing all my dirty laundry here. The other problem I have noticed is that when I close my Windows workstations down, they get an error message regarding "roaming profiles." It doesn't appear to be affecting anything. So it was going to be my next plea for help after I solved the CUPS issue, which is preventing me from printing. But who knows? maybe it's related. So I'll throw it in for completeness' sake.

till 25th January 2006 21:10

Quote:

Originally Posted by hipnerd
Administrative tasks have been disabled for security reasons. Please use Menu System > Administration > Printing.

This error occurs when you dont execute this command:

Code:

adduser cupsys shadow
And then restart Samba:
Code:

/etc/init.d/cupsys restart

hipnerd 25th January 2006 21:41

Quote:

Originally Posted by till
This error occurs when you dont execute this command:

Code:

adduser cupsys shadow
And then restart Samba:
Code:

/etc/init.d/cupsys restart

Actually, I believe in my case, this error occurs because of this problem:

Code:

E [24/Jan/2006:22:49:13 -0800] Unknown directive AuthGroupName on line 748.
For fun, I attempted to add cupsys to the shadow group. Here is the result:

Code:

root@server1:/home/john# adduser cupsys shadow
The user `cupsys' is already a member of `shadow'.


till 25th January 2006 21:49

Reinstalled the howto today and it installs without problems with the posted cupsd.conf.

Did you use 32bit or 64bit ubuntu?


All times are GMT +2. The time now is 00:54.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.