openSUSE 11.4 client to Windows Network Printer Iissue

Cant Print opensuse 11.4 reset cups, deleted all but the lat few entries in the cups error log, AppArmor is set to complain on
smbd & nmdb, deleted previous Yast Printer profiles that didnt work, restarted smb & nmb, created Yast Printer profiles. Print
via Network>connection wizard>
Print via Print Server Machine>Windows (R) or Samba (SMB/CIFS)>set the Server (NetBios Host Name) to the servers IP address on the
Lan, added the share printer name, workgroup name, Workgroup User Name & Password, added the HP Printer brand, clicked ok to move
forward and set the driver Made 2 profiles for hpcups & hpijs, tried to print a test page.

Unable to execute /usr/lib/cups/backend/smb: insecure file permissions (0104750)
Stopping job because the sheduler could not execute the backend.

checked forum, one entry said to check the output of samba-krb-printing

went to terminal and ran

ls -l /usr/lib/cups/backend/smb
lrwxrwxrwx 1 root root 28 Jul 7 20:19 /usr/lib/cups/backend/smb -> /usr/bin/get_printing_ticket

entry said remove samba-krb-printing

Did that, went back to

Yast Printers set up the profiles again, this time without the Workgroup User Name & Password, and again made 1 for each driver.

Checked Terminal

ls -l /usr/lib/cups/backend/smbd

lrwxrwxrwx 1 root root 17 Jul 7 20:31 /usr/lib/cups/backend/smb -> /usr/bin/smbspool

Went to printers, tried to print test pages …

[Job 99] Session setup failed: NT_STATUS_NO_SUCH_FILE
[Job 99] Tree connect failed (NT_STATUS_BAD_NETWORK_NAME)
[Job 99] Tree connect failed (NT_STATUS_BAD_NETWORK_NAME)
[Job 99] Unable to connect to CIFS host, will retry in 60 seconds…
PID 8220 (/usr/lib/cups/filter/hpcups) crashed on signal 6!

Am I getting closer or further away from fixing this???

Are you trying to print from this machine, across the network, to a print server attached to some networking device (e.g. a router or a windows computer)?

correct. I am trying to print from an opensuse 11.4 POS workstation across the network to a HP LaserJet 1020 connected by USB to a server running MShyte server 2003. The server has been set to allow anyone to print through that device. With or without logging in.

The HP laserjet 1020 requires install of hplip and hplip-hpijs – and also the “proprietary plugin”

Check that you have these two lines in the [global] stanza of smb.conf:

  • printing = cups
  • printcap name = cups

Configure the printer connection in your web browser on address http://localhost:631

See steps at bottom of this page: Printer Sharing: Windows Print Server for Suse/openSUSE Linux Clients [Samba and LPD] (look for paragraph at the end titled “Setting up a Linux client using Samba’s SMB/CIFS Protocol”)

hplip - check
hplip-hpijs - check
foo2zjs.tar.gz - no joy

DL http://foo2zjs.rkkda.com/foo2zjs.tar.gz

extract to /home/user name - check

cd /home/user name/foo2zjs - check

make - check - no errors
./getweb 1020 - check - no errors
make install - check - no errors
make install-hotplug - check - no errors [had error but fixed it, then system crashed - oh joy]

Set up a Linux client using Samba’s SMB/CIFS Protocol (alternative to LPD)

[global]
printing = cups - check
printcap name = cups - check

http://localhost:631

add printer
Other Network Printers: Windows Printer via SAMBA
continue
smb://windows username:password@workgroup/static_ip_address/hplj1020
continue
hplj1020
HPLaserJet1020
onServer
share this printer
continue
Make: HP
Model: HP LaserJet 1020 Foomatic/foo2zjs-z1 (recommented) (en)
add printer

General
Printing Quality: normal
Resolution: 1200x600 dpi
Page Size: A4
Media Source: Auto Source
Media Type: Standard Paper
Print Density: Medium(3)
Copies: 1

set default options
printer options successfully set

maintainance
print test page

hplj1020-105 Test Page root 1k 1 processing since
Fri 08 Jul 2011 05:27:08 PM HKT
“Tree connect failed (NT_STATUS_BAD_NETWORK_NAME)”
cancel print
clear print jobs

exit cups

open yast control center>printers
delete profile

create new profile there
must install samba-krb-printing
install samba-krb-printing

http://localhost:631

add printer
Other Network Printers: Windows Printer via SAMBA
continue
smb://windows username:password@workgroup/static_ip_address/hplj1020
continue
hplj1020
HPLaserJet1020
onServer
share this printer
continue
Make: HP
Model: HP LaserJet 1020 Foomatic/foo2zjs-z1 (recommented) (en)
add printer

set up profile

E [08/Jul/2011:18:42:06 +0800] Unable to execute /usr/lib/cups/backend/smb: insecure file permissions (0104750)
E [08/Jul/2011:18:42:06 +0800] [Job 111] Stopping job because the sheduler could not execute the backend.
deleted & created profile with smb://static_ip_address/hplj1020
E [08/Jul/2011:18:42:21 +0800] Unable to execute /usr/lib/cups/backend/smb: insecure file permissions (0104750)
E [08/Jul/2011:18:42:21 +0800] [Job 111] Stopping job because the sheduler could not execute the backend.
smb://windows username:password@workgroup/static_ip_address/hplj1020 - workgroup in caps
E [08/Jul/2011:18:55:59 +0800] Unable to execute /usr/lib/cups/backend/smb: insecure file permissions (0104750)
E [08/Jul/2011:18:55:59 +0800] [Job 113] Stopping job because the sheduler could not execute the backend.

closer or further away?

foo2zjs and hplip – conflict – not joy
foo2zjs hotplug – not joy 11.4

closer or further away?

further away.

uninstall foo2zjs

get samba browsing to work

post smb.conf

1 - don’t know how to uninstall foo2zjs

deleted printer profile.

smb.conf below

smb.conf is the main Samba configuration file. You find a full commented

version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the

samba-doc package is installed.

Date: 2011-03-01

[global]
workgroup = SERVER
netbiosname = Charles
printcap name = cups
printing = cups
server string = “”
cups options = raw
map to guest = Bad User
#logon path = \%L\profiles.msprofile
#logon home = \%L%U.9xprofile
#logon drive = P:
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
domain master = No
local master = Yes
os level = 33
security = domain
name resolve order = bcast host lmhosts wins
winbind gid = 10000-20000
winbind uid = 10000-20000

[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes

[profiles]
comment = Network Profiles Service
path = %H
read only = No
store dos attributes = Yes
create mask = 0600
directory mask = 0700

[users]
comment = All users
path = /home
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/

[groups]
comment = All groups
path = /home/groups
read only = No
inherit acls = Yes

[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = Yes

[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775

[Things]
path = /home/charles/Things/
guest ok = yes
read only = no

see server?
hplip proprietary? (systray)

no I don’t. Where should they be?

On Fri July 8 2011 08:06 am, China Jobs wrote:

>
> 1 - don’t know how to uninstall foo2zjs
>
> deleted printer profile.
>
> smb.conf below
>
> # smb.conf is the main Samba configuration file. You find a full
> commented
> # version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if
> the
> # samba-doc package is installed.
> # Date: 2011-03-01
> [global]
> workgroup = SERVER
> netbiosname = Charles
> printcap name = cups
> printing = cups
> server string = “”
> cups options = raw
> map to guest = Bad User
> #logon path = \%L\profiles.msprofile
> #logon home = \%L%U.9xprofile
> #logon drive = P:
> add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody
> -s /bin/false %m$
> domain master = No
> local master = Yes
> os level = 33
> security = domain
> name resolve order = bcast host lmhosts wins
> winbind gid = 10000-20000
> winbind uid = 10000-20000
>
<snip>

China Jobs;

The parameter “security = domain” should only be used on a Samba3 machine
joined to an NT or Samba3 Domain. An MS2003 server is AD not NT. “security =
ADS” is normally used for members of an AD domain and AFAIK required for the
AD environment. Were you successfully able to join the AD?

Just to print you should not need to join the domain. Just delete
the "security = " parameter from /etc/samba/smb.conf and it will revert
to “security = USER”. The use of the “DOMAIN” security setting leads to
unpredictable results. Usually bad.

See the writeup on the security parameter here:
http://www.samba.org/samba/docs/man/manpages-3/smb.conf.5.html

Unless you are required to authenticate on the ADs to print, I would also try
the simpler URI:


smb://static_ip_address/<printer share name>

This works on other MS machines but I’m not sure about ADs. (Your Accounting
Department may have a different idea, requiring you to authenticate.) :wink:


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

deleted the line security=domain

created printer profile smb://static_ip_address/<printer share name>

E [09/Jul/2011:14:13:30 +0800] [Job 123] Session setup failed: NT_STATUS_NO_SUCH_FILE
E [09/Jul/2011:14:13:30 +0800] [Job 123] Tree connect failed (NT_STATUS_BAD_NETWORK_NAME)
E [09/Jul/2011:14:13:30 +0800] [Job 123] Tree connect failed (NT_STATUS_BAD_NETWORK_NAME)
E [09/Jul/2011:14:13:30 +0800] [Job 123] Unable to connect to CIFS host, will retry in 60 seconds…

123 jobs…I am about to backup what files I desperately need, stick in the qparted cd, reboot, format all the ext4 drives & the swap file, then clean install 11.4