openSUSE Forums > Network/Internet » I've got Samba 1/2 working, Please help with Printing

Go Back   openSUSE Forums > Network/Internet
Forums FAQ Members List Search Today's Posts Mark Forums Read


Network/Internet Questions about internet applications, network configuration, usage (SAMBA, network printing, NFS)

Reply
Page 1 of 5 1 23 Last »
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 22-Sep-2009, 23:49
bobcal2000's Avatar
Puzzled Penguin
 
Join Date: Jun 2009
Location: NJ - USA
Posts: 46
bobcal2000 hasn't been rated much yet
Default 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
__________________
Bobby
openSUSE Very Dangerous Novice User
Reply With Quote
  #2 (permalink)  
Old 23-Sep-2009, 00:04
caf4926's Avatar
Global Moderator
 
Join Date: Jun 2008
Location: The English Lake District. UK - GMT/BST
Posts: 12,929
caf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputation
Send a message via MSN to caf4926
Default Re: I've got Samba 1/2 working, Please help with Printing

Have you checked here: Linux HOWTOs and Tutorials: Suse Linux 10.0, 10.1 openSUSE 10.2, 10.3, 11.0, 11.1
__________________
Box: openSUSE 11.2 | (KDE4.3.3) | M2N4-SLI | AMD 64 X2 5200+ | nVidia 8500GT | 4GB RAM
Lap: openSUSE 11.2 | Celeron 550 | (KDE4.3.3)"3" | Intel 965 GM | Lenovo R61e | 3GB RAM
Reply With Quote
  #3 (permalink)  
Old 23-Sep-2009, 00:44
bobcal2000's Avatar
Puzzled Penguin
 
Join Date: Jun 2009
Location: NJ - USA
Posts: 46
bobcal2000 hasn't been rated much yet
Default Re: I've got Samba 1/2 working, Please help with Printing

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>
__________________
Bobby
openSUSE Very Dangerous Novice User
Reply With Quote
  #4 (permalink)  
Old 23-Sep-2009, 01:43
PV
Guest
 
Posts: n/a
Default Re: I've got Samba 1/2 working, Please help with Printing

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
Reply With Quote
  #5 (permalink)  
Old 23-Sep-2009, 04:44
swerdna's Avatar
Global Moderator
 
Join Date: Mar 2008
Location: Oz
Posts: 4,879
swerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the rough
Default Re: I've got Samba 1/2 working, Please help with Printing

Try adding this line into [global]:
Code:
use client driver = yes
Why did you put in this line?
Code:
 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:
Code:
wins support = yes
Finally, there are three or four sorts of printer server configurations. Are you trying to follow any particular protocol?
__________________
Drop in and visit some time.
Reply With Quote
  #6 (permalink)  
Old 23-Sep-2009, 07:43
bobcal2000's Avatar
Puzzled Penguin
 
Join Date: Jun 2009
Location: NJ - USA
Posts: 46
bobcal2000 hasn't been rated much yet
Default Re: I've got Samba 1/2 working, Please help with Printing

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?
__________________
Bobby
openSUSE Very Dangerous Novice User
Reply With Quote
  #7 (permalink)  
Old 23-Sep-2009, 07:46
bobcal2000's Avatar
Puzzled Penguin
 
Join Date: Jun 2009
Location: NJ - USA
Posts: 46
bobcal2000 hasn't been rated much yet
Default Re: I've got Samba 1/2 working, Please help with Printing

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
__________________
Bobby
openSUSE Very Dangerous Novice User
Reply With Quote
  #8 (permalink)  
Old 23-Sep-2009, 08:38
swerdna's Avatar
Global Moderator
 
Join Date: Mar 2008
Location: Oz
Posts: 4,879
swerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the rough
Default Re: I've got Samba 1/2 working, Please help with Printing

A barrage
Quote:
Originally Posted by bobcal2000 View Post
What is the best method of resolution?
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
Quote:
Originally Posted by bobcal2000 View Post
I'd rather use a LMLosts file, where do I put them on Linux and Windows?
See this tutorial for lmhosts: HowTo Configure Samba openSUSE Windows Network Browsing on a SOHO LAN

Quote:
Originally Posted by bobcal2000 View Post
How do I know if WINS is running and permanently stop it?
It's running if you put this line in the [global] stanza:
Code:
wins support = yes
To stop it? Remove the line and restart the Samba daemons.
__________________
Drop in and visit some time.
Reply With Quote
  #9 (permalink)  
Old 23-Sep-2009, 08:45
swerdna's Avatar
Global Moderator
 
Join Date: Mar 2008
Location: Oz
Posts: 4,879
swerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the rough
Default Re: I've got Samba 1/2 working, Please help with Printing

Quote:
Originally Posted by bobcal2000 View Post
As far as "disable spoolss = Yes"................. I'll take it out..
OK
Quote:
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

Quote:
Thanks for the tips
You're welcome.
__________________
Drop in and visit some time.
Reply With Quote
  #10 (permalink)  
Old 23-Sep-2009, 17:22
bobcal2000's Avatar
Puzzled Penguin
 
Join Date: Jun 2009
Location: NJ - USA
Posts: 46
bobcal2000 hasn't been rated much yet
Default Re: I've got Samba 1/2 working, Please help with Printing

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!
__________________
Bobby
openSUSE Very Dangerous Novice User
Reply With Quote
Reply
Page 1 of 5 1 23 Last »

Bookmarks

Tags
cups, printing, samba


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2