CUPS edit configuration file

I'm trying to change the CUPS Server Configuration File, but my changes refuse to be saved.

What am I doing wrong?

I've logged into 127.0.0.1:631

MacBook and Powerbook, Mac OS X (10.5.2), Powerbook G4 Titanium

Posted on Apr 19, 2011 1:49 PM

Reply
15 replies

Apr 20, 2011 7:45 AM in response to BobHarris

So is there another strategy I can use to get my print sharing to work? Ever since I upgraded my print serving Mac to OS 10.5, it has not allowed my other computers to print via WiFi. The error I get is Unable to get printer status (Forbidden)!


Changing the CUPS server configuration file was a strategy I read about in the discussion forum which seemed to work for some people having the same problem.

Apr 20, 2011 8:22 AM in response to newsam

>And I really have to do this in order to share the printer?

>

>Print sharing is supposed to be one of the basic underlying features of OSX. And it was easy to do in earlier >versions of the system. I am not in the least Terminal savvy.


That is not what you originally asked:


>I'm trying to change the CUPS Server Configuration File, but my changes refuse to be saved.

>What am I doing wrong?

>I've logged into 127.0.0.1:631


Maybe you should start over again, and ask your real question in a new thread

Apr 21, 2011 8:10 AM in response to newsam

OK. I tried that. Terminal asked for an old password.

I don't have one, so I just hit return.

Then it asked me to type in a new password twice.

So I did.

My bad. I forgot to include 'sudo'


sudo passwd root


You should first be asked for your password to authenticate that you are allowed to use the 'sudo' command, then you will be asked to enter a new root password. The dialog should look a little like this:


sudo passwd root

Password:

Changing password for root.

New password:

Retype new password:

Apr 21, 2011 10:06 PM in response to BobHarris

I did the sudo thing and created a new password for the root. At least I think I did. The Terminal isn't overly communicative.


I did log in successfully when I went to the CUPS page. For name I entered "root" and then I entered the new password, and it allowed me in. Although I've gotten past the password screen in the past without a password. Or I may have just used my main account name and password, I don't remember.


But after logging in as "root" I went to make the changes (below), and they still would not stay.


<Location />

Deny From All

Allow From 127.0.0.1

Allow From @LOCAL

# Allow shared printing and remote administration...

Order allow,deny

Allow @LOCAL

</Location>



I tried to change Deny From All to Allow From All. I could type it in, but it doesn't stay.


Hence, I still can't use my printer. And I must say this is all way over my head.

Apr 21, 2011 10:25 PM in response to BobHarris

Update. I noticed that somehow during all the things I was doing, I fell off line. So I decided to start over.


When I was asked for me root password, I typed in the password I thought I had given it.

It failed.


Then instead of typing a password I typed in verbatim what you told me to type:


"Changing Password for root."


That did the trick the first time, but not this time.


So I tried Changing Password for root again, and got this message.


Last login: Thu Apr 21 21:47:06 on ttys000

Robert-iMacG5:~ robertlaughlin$ sudo passwd root

Password:

Sorry, try again.

Password:

Sorry, try again.

Password:

Sorry, try again.

sudo: 3 incorrect password attempts

Robert-iMacG5:~ robertlaughlin$



I think it wants a password (original) for the root. But how do I know what that is? I assume it was built into the machine when I bought it.

Apr 26, 2011 8:04 AM in response to greg sahli

You're right. It doesn't make sense that I have to go to all this trouble. It used to work before I upgraded from OS 10.4 to 10.5. But in looking through archived discussions, I saw that a lot of people had the same problem, but that the problem went away when they changed the CUPS file.


However, not for me. And yes, Printer Sharing has always been enabled in BOTH places. I double checked that several times. But just to be clear, Printer Sharing only has to be enabled on the computer that's directly connected to the printer, right? I don't need to enable it on the computers that are trying to access the the printer wirelessly?

Apr 26, 2011 4:23 PM in response to greg sahli

I've experimented with different drivers, but they now have the same driver on both server and client (at least it's the same name). Then I restarted both machines. And it still doesn't work. I still get the same error message.


Unable to get printer status. (Forbidden)


I could not find any reference to firewall anywhere in the system preferences, so I could not make the test you suggested. I thought firewalls were only for PC's running Windows.


I did reset the password for the root, and tested it with the Terminal. But even logging in with those credentials could not let me save changes to the printer configuration of the CUPS file.


And I'm in way over my head already. I just want my printer sharing to work like it did before.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

CUPS edit configuration file

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.