I've got Samba 1/2 working, Please help with Printing

I have openSUSe v11.1 Kernel 2.6.27.29.01 running Samba v3.2.7-11 and CUPS v1.3.9 as a VMware Workstation 6.5.3 Host. Both VMware Guests and other Windows PCs can see both see and use my Samba file shares.

Printing is another story:
From the Windows VMware Guests and other Windows PCs DOS prompts “NET VIEW \IP address” I see both the file share and the printer. From add new printer browsing will not see the printer, but it does see the server. Manually entering the printer “\ip address\hpofficejetk80xi” creates the printer but it doesn’t work.

Print jobs just disappear. Not in the guest Windows queue of the CUPS queue.

Here is my smb.conf file.

[global]
workgroup = VMWWG
name resolve order = bcast host lmhosts wins
local master = yes
preferred master = yes
os level = 33
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
disable spoolss = Yes
show add printer wizard = No
map to guest = Bad User
include = /etc/samba/dhcp.conf
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
domain logons = No
domain master = No
null password = yes
passdb backend = smbpasswd
security = share
wins support = Yes

[sharedfiles]
comment = Files on VMware Host
inherit acls = Yes
path = /files/
read only = No

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
use client driver = Yes
create mask = 0600
browseable = Yes

Have you checked here: Linux HOWTOs and Tutorials: Suse Linux 10.0, 10.1 openSUSE 10.2, 10.3, 11.0, 11.1

That document seemed great. I had several things in both my CUPSd.conf and smb.conf that didn’t match. Same thing is wrong, but here is my new configs.

[global]
workgroup = VMWWG
name resolve order = bcast host lmhosts wins
local master = yes
preferred master = yes
os level = 33
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
load printers = yes
disable spoolss = Yes
show add printer wizard = No
map to guest = Bad User
domain logons = No
domain master = No
passdb backend = smbpasswd
security = share
wins support = Yes

[sharedfiles]
comment = Files on VMware Host
inherit acls = Yes
path = /files/
read only = No

[printers]
comment = All Printers
path = /var/tmp
printable = Yes
use client driver = Yes
create mask = 0700
browseable = Yes
guest ok = Yes

LogLevel info
SystemGroup sys root

Allow remote access

Port 631
Listen /var/run/cups/cups.sock

Show shared local printers on the local network.

Browsing On
BrowseOrder allow,deny
BrowseAllow @LOCAL
BrowseAddress @LOCAL
DefaultAuthType Basic

Restrict access to the server…

<Location />
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From 127.0.0.2
#Allow From @LOCAL
Allow From 192.168.0.*
</Location>
<Location />
Allow 127.0.0.2

Allow shared printing…

Order allow,deny
Allow @LOCAL
</Location>
<Location /admin>
Encryption Required

Restrict access to the admin pages…

Order allow,deny
</Location>
<Location /admin/conf>
AuthType Default
Require user @SYSTEM

Restrict access to the configuration files…

Order allow,deny
</Location>
<Policy default>
<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>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<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>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit CUPS-Authenticate-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
DefaultPolicy default
<Policy easy>
<Limit All>
Satisfy any
Order allow,deny
</Limit>
</Policy>
<Policy paranoid>
<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>
Require user @OWNER
Allow from 127.0.0.0/8
Order deny,allow
</Limit>
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
AuthType Default
Require user @SYSTEM
Allow from 127.0.0.0/8
Order deny,allow
</Limit>
<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>
AuthType Default
Require user @SYSTEM
Allow from 127.0.0.0/8
Order deny,allow
</Limit>
<Limit Cancel-Job CUPS-Authenticate-Job>
Require user @OWNER
Allow from 127.0.0.0/8
Order deny,allow
</Limit>
<Limit All>
Require user @OWNER @SYSTEM
Allow from 127.0.0.0/8
Order deny,allow
</Limit>
</Policy>

On Wed September 23 2009 12:46 am, bobcal2000 wrote:

>
> That document seemed great. I had several things in both my CUPSd.conf
> and smb.conf that didn’t match. Same thing is wrong, but here is my new
> configs.
>
>
> [global]
> workgroup = VMWWG
> name resolve order = bcast host lmhosts wins
> local master = yes
> preferred master = yes
> os level = 33
> printing = cups
> printcap name = cups
> printcap cache time = 750
> cups options = raw
> load printers = yes
> disable spoolss = Yes
> show add printer wizard = No
> map to guest = Bad User
> domain logons = No
> domain master = No
> passdb backend = smbpasswd
> security = share
> wins support = Yes
>
> [sharedfiles]
> comment = Files on VMware Host
> inherit acls = Yes
> path = /files/
> read only = No
>
> [printers]
> comment = All Printers
> path = /var/tmp
> printable = Yes
> use client driver = Yes
> create mask = 0700
> browseable = Yes
> guest ok = Yes
>
>
> LogLevel info
> SystemGroup sys root
> # Allow remote access
> Port 631
> Listen /var/run/cups/cups.sock
> # Show shared local printers on the local network.
> Browsing On
> BrowseOrder allow,deny
> BrowseAllow @LOCAL
> BrowseAddress @LOCAL
> DefaultAuthType Basic
> # Restrict access to the server…
> <Location />
> Order Deny,Allow
> Deny From All
> Allow From 127.0.0.1
> Allow From 127.0.0.2
> #Allow From @LOCAL
> Allow From 192.168.0.*
> </Location>
> <Location />
> Allow 127.0.0.2
> # Allow shared printing…
> Order allow,deny
> Allow @LOCAL
> </Location>
> <Location /admin>
> Encryption Required
> # Restrict access to the admin pages…
> Order allow,deny
> </Location>
> <Location /admin/conf>
> AuthType Default
> Require user @SYSTEM
> # Restrict access to the configuration files…
> Order allow,deny
> </Location>
> <Policy default>
> <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>
> Require user @OWNER @SYSTEM
> Order deny,allow
> </Limit>
> <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer
> CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
> AuthType Default
> Require user @SYSTEM
> Order deny,allow
> </Limit>
> <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>
> AuthType Default
> Require user @SYSTEM
> Order deny,allow
> </Limit>
> <Limit CUPS-Authenticate-Job>
> Require user @OWNER @SYSTEM
> Order deny,allow
> </Limit>
> <Limit All>
> Order deny,allow
> </Limit>
> </Policy>
> DefaultPolicy default
> <Policy easy>
> <Limit All>
> Satisfy any
> Order allow,deny
> </Limit>
> </Policy>
> <Policy paranoid>
> <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>
> Require user @OWNER
> Allow from 127.0.0.0/8
> Order deny,allow
> </Limit>
> <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer
> CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
> AuthType Default
> Require user @SYSTEM
> Allow from 127.0.0.0/8
> Order deny,allow
> </Limit>
> <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>
> AuthType Default
> Require user @SYSTEM
> Allow from 127.0.0.0/8
> Order deny,allow
> </Limit>
> <Limit Cancel-Job CUPS-Authenticate-Job>
> Require user @OWNER
> Allow from 127.0.0.0/8
> Order deny,allow
> </Limit>
> <Limit All>
> Require user @OWNER @SYSTEM
> Allow from 127.0.0.0/8
> Order deny,allow
> </Limit>
> </Policy>
>
>
bobcal2000;

Have you installed the printer drivers on the clients?
See also:
http://opensuse.swerdna.org/susesambaprint_1.html
For more help you might try just:
http://opensuse.swerdna.org/index.html
which will give you a number of Swerdna’s HowTos.

If you are using IPP printing then Samba does not come into play. Just in
case, try disabling firewalls on both opensuse and the client for testing.
Your firewall settings may be the cause of problems and you will need to
adjust their settings


P. V.
“We’re all in this together, I’m pulling for you.” Red Green

Try adding this line into [global]:

use client driver = yes

Why did you put in this line?

 disable spoolss = Yes

If there was no particular reason, I’d take it out.

and

Did you intend to set the openSUSE server as a “wins server” or is the network a standard SOHO LAN / workgroup arrangement? If you didn’t intend for a wins server, then you should take out this line:

wins support = yes

Finally, there are three or four sorts of printer server configurations. Are you trying to follow any particular protocol?

What is the best method of resolution? I don’t like having things running, like a wins server. I’d rather use a LMLosts file, where do I put them on Linux and Windows? How do I know if WINS is running and permanently stop it?

As far as “disable spoolss = Yes” I have used three different docs to get this to do what I want, so it was one of them. I’ll take it out… I have “use client driver = yes”

What about “path = /var/tmp” is this correct? I have seen /var/samba" as a path here.

Thanks for the tips

A barrage

They’re all good. Broadcast name resolution is the win98/me/2000/xp standard. To use a Linux Preferred Local Master Browser with Broadcast name resolution is very good

See this tutorial for lmhosts: HowTo Configure Samba openSUSE Windows Network Browsing on a SOHO LAN

It’s running if you put this line in the [global] stanza:

wins support = yes

To stop it? Remove the line and restart the Samba daemons.

OK

What about “path = /var/tmp” is this correct? I have seen /var/samba" as a path here

/var/tmp exists in openSUSE
/var/samba doesn’t exist

Thanks for the tips

You’re welcome.

I created “/var/samba” and set the permitions like I read in one of the docs I have.

Of the three or four CUPS protocols, I want to run the RUNALLTIME protocol, the one that works all the time. One I can follow a document and set it up. The file sharing went so smoothly, that is why printing is so much trouble. Don’t take this wrong, I appreciate everyone’s input. Of the three docs, one book and the poeple on this thread, I have been told to add, more, or remove the same commands. For the file sharing I used one doc Samba and Suse: HowTo Set up on openSUSE. It was step-by-step and it worked, but it didn’t cover printing.

If you know the CUPS protocols pick one for me that will work on openSUSE Host; Windows VMware guests and other Windows PCs that you have a HowTo document for that works. The one the first gentleman sent me didn’t work.

Again as always
Thanks!

I’m getting a bit confused. Here are some questions so we can see where you’re at:

  • “The one the first gentleman sent me didn’t work” — which one didn’t work (link please)
  • I think you have a windows xp guest running in vmware on the openSUSE printer server plus some other real windows workstations on the LAN – is that right?
  • I’m not familiar with the “RUNALLTIME protocol”. Do you have a link so I can look at it.

Don’t be confused:

#1 - Here is the link that didn’t work: “http://opensuse.swerdna.org/susesambaprint_1.html

#2 - Yes that is correct!

#3 - “RUNALLTIME protocol” is a joke! You said:
“Finally, there are three or four sorts of printer server configurations. Are you trying to follow any particular protocol?”

What I mean is of the 3/4 configurations you know, the one I want is the one that “RUNs ALL the TIME” (works all the time)!

Let’s try this an other way. Instead of troubleshooting something that may or not be working, let my tell you what I’m trying to do a you tell how to do it, or give me link to a doc that explains HowTo do it. I have two physical PCs, one is my wife’s, one is mine.

My PC:
HP OfficeJet K80xi connected by USB
openSUSE 11.1 2.6 kernel HOST
VMware 6.5.3 for Linux
several MS Windows Guests
openSuse 11.1 Guest

Wife’s PC
just a PC

Network connection between them

What I want:
1 - Share files on my HOST OS with all the VMware guests and my wife’s PC
2 - Share the printer on my PC with the two physical PC OSs and all the VMware guests, so everyone can print
3 - Make my PC run fast
4 - Use simple, easy to configure methods to do this things
5 - document as I go to rebuild the system if it crashes
6 - Learn Linux!
7 - recompile my kernel without all the extra stuff

What I have:
1 - Everything in the list above except 2 and 7
2 - I’m not in a rush for 7, just 2
3 - I have setup CUPS using SWAT
4 adjusted my Samba and CUPS so many times, I don’t know what I have

So that is my story, and I’m sticking to it!rotfl!rotfl!lol!lol!

Those are for the “RUNALLTIME protocol” hope you can laugh about that, I did!

OK lets pick standard Samba sharing – that should suit windows machines

I’ll suggest changes to smb.conf and cupsd.conf so back them up before making changes, with these commands:

  • sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.backup
  • sudo cp /etc/cups/cupsd.conf /etc/cups/cupsd.conf.backup

If the file sharing is working, we better not disturb that.
So just take out of smb.conf the lines that are from left field:

disable spoolss = Yes
show add printer wizard = No
include = /etc/samba/dhcp.conf
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
domain logons = No
domain master = No
wins support = Yes

Taking those out shouldn’t change the file sharing. So do that then reboot and see if it’s still OK.

Now this one might alter file sharing but it might also alter printing so make the change and then reboot and then see if sharing is still OK

take out this line from [global] stanza: security = share
and instead put it in the stanza for [sharedfiles]

So, is that all OK?

Then we need to consider fixed IP addressing for the server – do you have a fixed IP on the openSUSE machine?

Got to attend to a client – back later

Okay: Here is the status report: Good Things: File Sharing still working; did more reading.

Bad things: printing is not working from openSUSE Host anymore, but it was not broken by what you told me to do. The reason I know this is because the Windows guests see the print queue as paused, I noticed that before but I didn’t try printing from the Host.

Yes the Host was a static IP the guests are DHCPed, I could make them static if you think that’s better. Let me know.

So Lets continue, here are the cupsd.conf and smb.conf: I have a question about one of the commands that are left, see below.

I think the printer sharing may be working because the Windows guests see the queue but it’ not working because the printer is not working. Fix the printer, fix the printer sharing.

Samba config file created using SWAT

from UNKNOWN ()

Date: 2009/09/23 21:41:18

[global]
workgroup = VMWWG
server string = Samba
name resolve order = bcast host lmhosts wins <–which are we using?
printing = cups
printcap name = cups
os level = 33
preferred master = Yes
ldap ssl = no <---- Remove? I’m not using LDAP, I’m I?
cups options = raw
use client driver = Yes

[sharedfiles]
comment = Files on VMware Host
path = /files/
read only = No
inherit acls = Yes
security = share

[printers]
comment = All Printers
path = /var/tmp
create mask = 0700
guest ok = Yes
printable = Yes
browseable = No


LogLevel info
SystemGroup sys root

Allow remote access

Port 631
Listen /var/run/cups/cups.sock

Show shared local printers on the local network.

Browsing On
BrowseOrder allow,deny
BrowseAllow @LOCAL
BrowseAddress @LOCAL
DefaultAuthType Basic

Restrict access to the server…

<Location />
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From 127.0.0.2
#Allow From @LOCAL
Allow From 192.168.0.*
</Location>
<Location />
Allow 127.0.0.2

Allow shared printing…

Order allow,deny
Allow @LOCAL
</Location>
<Location /admin>
Encryption Required

Restrict access to the admin pages…

Order allow,deny
</Location>
<Location /admin/conf>
AuthType Default
Require user @SYSTEM

Restrict access to the configuration files…

Order allow,deny
</Location>
<Policy default>
<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>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<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>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit CUPS-Authenticate-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
DefaultPolicy default
<Policy easy>
<Limit All>
Satisfy any
Order allow,deny
</Limit>
</Policy>
<Policy paranoid>
<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>
Require user @OWNER
Allow from 127.0.0.0/8
Order deny,allow
</Limit>
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
AuthType Default
Require user @SYSTEM
Allow from 127.0.0.0/8
Order deny,allow
</Limit>
<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>
AuthType Default
Require user @SYSTEM
Allow from 127.0.0.0/8
Order deny,allow
</Limit>
<Limit Cancel-Job CUPS-Authenticate-Job>
Require user @OWNER
Allow from 127.0.0.0/8
Order deny,allow
</Limit>
<Limit All>
Require user @OWNER @SYSTEM
Allow from 127.0.0.0/8
Order deny,allow
</Limit>
</Policy>

Bad things: printing is not working from openSUSE Host anymor
To be able to share a printer from a server, first the server must be able to print in the normal way, as a simple attached printer. So make sure you can log on from the keyboard, open a doc and print it as a normal user.

Yes the Host was a static IP the guests are DHCPed, I could make them static if you think that’s better. Let me know.
Not necessary.

I have a question about one of the commands that are left, see below
What’s the question?

For the smb.conf:
add this line in [global]: printcap cache time = 750
add this line in [global]: load printers = yes
remove this line from [global]: ldap ssl = no (well spotted)

For the cupsd.conf. I don’t want to read the whole of your cupsd.conf and check it line by line. Instead, use this command to back it up:

sudo cp /etc/cups/cupsd.conf /etc/cups/cupsd.conf/backup_2

And then open the old file for editing in a superuser text editor with one of these commands:

  • gnome use: gnomesu gedit /etc/cups/cupsd.conf
  • or kde use: kdesu kwrite /etc/cups/cupsd.conf

Then copy the complete text from below and paste it over the top of the text in the edited version, replacing it completely:

“$Id: cupsd.conf.in 7199 2008-01-08 00:16:30Z mike $”

Sample configuration file for the Common UNIX Printing System (CUPS)

scheduler. See “man cupsd.conf” for a complete description of this

file.

Log general information in error_log - change “info” to “debug” for

troubleshooting…

LogLevel info

Administrator user group…

SystemGroup sys root

Only listen for connections from the local machine.

Listen localhost:631

Listen /var/run/cups/cups.sock

port 631

Show shared printers on the local network.

Browsing On
BrowseOrder allow,deny
BrowseAllow @local

Default authentication type, when authentication is required…

DefaultAuthType Basic

Restrict access to the server…

<Location />
Order deny,allow
deny from all
Allow From 127.0.0.1
Allow From 127.0.0.2
Allow from 192.168.0.*
</Location>

Restrict access to the admin pages…

<Location /admin>
Encryption Required
Order allow,deny
</Location>

Restrict access to configuration files…

<Location /admin/conf>
AuthType Default
Require user @SYSTEM
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>
Require user @OWNER @SYSTEM
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>
AuthType Default
Require user @SYSTEM
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>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>

Only the owner or an administrator can cancel or authenticate a job…

<Limit Cancel-Job CUPS-Authenticate-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>

<Limit All>
Order deny,allow
</Limit>
</Policy>

DefaultPolicy default

easy is a very relaxed policy

<Policy easy>

Job-related operations must be done by the owner or an administrator…

<Limit All>
Satisfy any
Order allow,deny
</Limit>
</Policy>

paranoid is a very restricted policy

<Policy paranoid>

Job-related operations must be done by the owner

<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>
Require user @OWNER
Allow from 127.0.0.0/8
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>
AuthType Default
Require user @SYSTEM
Allow from 127.0.0.0/8
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>
AuthType Default
Require user @SYSTEM
Allow from 127.0.0.0/8
Order deny,allow
</Limit>

Only the owner or an administrator can cancel or authenticate a job…

<Limit Cancel-Job CUPS-Authenticate-Job>
Require user @OWNER
Allow from 127.0.0.0/8
Order deny,allow
</Limit>

<Limit All>
Require user @OWNER @SYSTEM
Allow from 127.0.0.0/8
Order deny,allow
</Limit>
</Policy>

End of “$Id: cupsd.conf.in 7199 2008-01-08 00:16:30Z mike $”.

Then save and reboot the computer.

Regarding any remote client: it must have the printer driver/s installed.

I made all these changes and still no printing from the Host.

In CUPS Admin “Printers” tab the my printer looks good:

hpofficejetk80xi (Default Printer)
Description: HP OfficeJet K80xi with driver HP Officejet k80xi Foomatic/hpijs, hpijs 2.8.7.3
Location: Office
Printer Driver: HP OfficeJet K80xi - CUPS+Gutenprint v5.0.2
Printer State: idle, accepting jobs, published.
Device URI: smb://192.168.0.10/hpofficejetk80xi

A few days ago, I moved (tried to move) the spooler directory. That is probably the problem. But I forgot were I messed with it.

I can not find were the spooler queue is defined???

I gave all the machines static IPs and added all the machines IPs and Host names into the lmhost files on all the other machines.
Can we change this line in the smb.conf?: to just read lmhost
name resolve order = bcast host lmhosts wins

Edit the line to become this:

name resolve order = lmhosts bcast host wins

Regarding the broken cups on the host: I have no expertise in fixing randomized cups configurations. I would maybe uninstall the cups rpm and delete the /etc/cups directory then reinstall cups. But defo it would be wise first to ask what to do in a new thread in an appropriate forum (e.g. Applications) to get that fixed.

I noticed this: Device URI: smb://192.168.0.10/hpofficejetk80xi
Is that on the server or somewhere else? And where is the username and password? And the workgroup should be in there too?

Should I use root?

I don’t understand this question. Use root to what?

and

Please answer this question:

I noticed this: Device URI: smb://192.168.0.10/hpofficejetk80xi
Is that on the server or somewhere else?