Jump to content

Can't print via SMB printer [solved]


scsever
 Share

Recommended Posts

I have Mandriva 2008 installed and am attempting to get my printer shared with the Windows systems using Samba. I've done this since sometime back in the Mandrake 9.? days and have never had this much trouble. I did save a copy of my smb.conf from 2007 but that hasn't helped me, either as a replacement file or for comparing side-by-side.

I used the setup tools included in MCC and all looks good until I try to print. The Windows machines have no problem browsing all shares, including printers, and the printer install appears to go without any issues but when I attempt to print nothing happens and if I hover the mouse over the printer icon I see a message "unable to connect, access denied". My firewall is currently disabled on the server so I can't imagine why I get this message. I have also tried to fix this by using Samba-Swat but that hasn't helped me either. Here is a copy of my current smb.conf, anyone have any ideas what could be wrong? There are a couple mask entries in the printers section that I'm not familiar with.

 

Thanks,

Steve

 

# Samba config file created using SWAT

# from 0.0.0.0 (0.0.0.0)

# Date: 2007/12/08 08:09:12

 

[global]

dos charset = 850

unix charset = ISO8859-1

workgroup = DOO

netbios name =

server string = Samba Server %v

security = SHARE

map to guest = Bad User

log file = /var/log/samba/%m.log

max log size = 50

printcap cache time = 60

printcap name = cups

dns proxy = No

printing = cups

print command =

lpq command = %p

lprm command =

 

[vault]

comment = Media

path = /vault

read only = No

browseable = Yes

 

[scsever]

comment = Steve

path = /home/scsever

read only = No

browseable = Yes

 

[mrsever]

comment = Mechelle

path = /home/mrsever

read only = No

browseable = Yes

 

[printers]

comment = Printers

path = /var/spool/samba

read only = Yes

create mask = 0664

directory mask = 0775

guest ok = Yes

printable = Yes

browseable = No

[HP1020]

comment = HP1020

path = /var/spool/samba

read only = Yes

create mask = 0664

directory mask = 0775

guest ok = Yes

hosts allow = all

printable = Yes

printer name = HP1020

oplocks = No

share modes = No

Link to comment
Share on other sites

  • 2 weeks later...

I just upgraded from 2007.0 to 2008.0 and same problem. I cannot print from the XP box, even when logged in as domain. I can install a new printer, but not print.

 

the smb.log shows for the pdf generator

[2007/12/20 20:14:26, 0] lib/system.c:set_process_capability(797)

set_process_capability: cap_set_proc failed: Operation not permitted

[2007/12/20 20:14:26, 0] lib/util_tdb.c:tdb_log(662)

tdb(/var/cache/samba/printing/pdf-gen.tdb): remove_from_freelist: not on list at off=20728

[2007/12/20 20:14:26, 0] lib/util_tdb.c:tdb_log(662)

tdb(/var/cache/samba/printing/pdf-gen.tdb): tdb_free: left free failed at 20728

 

and printing to the Linux box connected HP5740 gives this error:

[2007/12/20 20:15:32, 0] printing/print_cups.c:cups_job_submit(656)

Unable to print file to HPDesJet5740 - client-error-document-format-not-supported

(in the client.log)

Link to comment
Share on other sites

  • 3 months later...

Tom,

 

Thanks for posting your fix. My wife finally got after me and said "are you ever going to get that network printer fixed". So I did a Google search and guess where it brought me ;) Maybe I need to look for an email message setting in my profile.

She was still not able to print via network so maybe the bug hasn't been fixed yet, but adding raw in the cups options worked just fine.

 

Thanks,

 

Steve

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...