[Samba] SetPrinter call failed
Daniel T. Gynn
dan.gynn at essensys.com
Mon Oct 21 21:31:01 GMT 2002
I saw something about that before, what would the absolute path be for a
network printer? In anycase, does the rpcclient setdriver command use
that? Plus, the commands work from the command line.
On Mon, 2002-10-21 at 17:17, linux power wrote:
> Have you tried to replace -P %p in the print command
> line in the printer share with the absolute path to
> the printer?
>
>
>
> --- Kurt Pfeifle <kpfeifle at danka.de> skrev: >
> > "Daniel T. Gynn wrote on Samba-Digest:
> >
> > > Message: 16
> > > From: "Daniel T. Gynn" <dan.gynn at essensys.com>
> > > To: samba at lists.samba.org
> > > Date: 21 Oct 2002 15:59:18 -0400
> > > Subject: [Samba] SetPrinter call failed
> > >
> > >
> > > I am having trouble getting the cupsaddsmb script
> > to work to add the
> > > drivers. Everything seems to work (it copies the
> > drivers to the correct
> > > directories), but I keep getting the result
> > NT_STATUS_UNSUCCESSFUL error
> > > message on the rpcclient setdriver command. When
> > trying to connect to
> > > the printer from a 2K client, I see a
> > client-error-not-found error in
> > > the log.
> >
> > Hi Daniel,
> >
> > have you told CUPS to generate a "printcap" by
> > setting
> >
> > "Printcap /etc/printcap"
> >
> > in cupsd.conf?
> >
> > Cheers,
> > Kurt
> >
> >
> > > I can't seem to find anything in the mailing list
> > logs or the howto
> > > docs. I have updated to cups 1.1.16 and samba
> > 2.2.6, but that hasn't
> > > helped any.
> > >
> > > My client error line is:
> > >
> > > [2002/10/15 16:29:40, 0]
> > printing/print_cups.c:cups_printername_ok(290)
> > > Unable to get printer status for
> > > ::{2227a280-3aea-1069-a2de-08002b30309d} -
> > client-error-not-found
> > > [2002/10/15 16:29:40, 0]
> > smbd/service.c:make_connection(251)
> > > ees-9905472 (172.24.151.53) couldn't find
> > service
> > > ::{2227a280-3aea-1069-a2de-08002b30309d}
> > >
> > >
> > > Here is the results of the rpcclient in debug
> > level 3:
> > >
> > > Initialising global parameters
> > > params.c:pm_process() - Processing configuration
> > file
> > > "/etc/samba/smb.conf"
> > > Processing section "[global]"
> > > added interface ip=172.24.150.210
> > bcast=172.24.151.255
> > > nmask=255.255.254.0
> > > resolve_lmhosts: Attempting lmhosts lookup for
> > name localhost<0x20>
> > > Connecting to host=localhost share=IPC$
> > > Connecting to 127.0.0.1 at port 445
> > > error connecting to 127.0.0.1:445 (Connection
> > refused)
> > > Connecting to 127.0.0.1 at port 139
> > > lsa_io_sec_qos: length c does not match size 8
> > > cmd = setdriver business4 business4
> > > SetPrinter call failed!
> > > result was NT_STATUS_UNSUCCESSFUL
> > >
> > >
> > >
> > > Here is my smb.conf:
> > >
> > > [global]
> > > workgroup = LIMBACH
> > > netbios name = LFSPITPDC
> > > server string = LFS Samba Server
> > > encrypt passwords = Yes
> > > obey pam restrictions = Yes
> > > pam password change = Yes
> > > passwd program = /usr/bin/passwd %u
> > > passwd chat = *New*password* %n\n
> > *Retype*new*password* %n\n
> > >
> >
> *passwd:*all*authentication*tokens*updated*successfully*
> > > unix password sync = Yes
> > > log file = /var/log/samba/%m.log
> > > max log size = 0
> > > time server = Yes
> > > socket options = TCP_NODELAY
> > SO_RCVBUF=8192 SO_SNDBUF=8192
> > > printcap name = cups
> > > addprinter command = /usr/sbin/cupsaddsmb
> > > domain admin group = ntadmin
> > > add user script =
> > /usr/local/bin/newMachine.sh %u
> > > logon path = \\172.24.150.210\profiles\%U
> > > logon drive = I:
> > > logon home = \\172.24.150.210\%U
> > > domain logons = Yes
> > > os level = 64
> > > preferred master = Yes
> > > domain master = Yes
> > > dns proxy = No
> > > wins server = 192.168.110.163
> > > ldap port = 389
> > > ldap suffix = "ou=smb, o=limbach, c=us"
> > > ldap admin dn = "uid=manager, o=limbach,
> > c=us"
> > > ldap ssl = no
> > > admin users = @ntadmin
> > > printer admin = @ntadmin
> > > hosts allow = 172.24.150. 172.24.151.
> > 127.0.0.1 172.29.175.
> > > 172.24.155. 172.24.154. 172.29.140.
> > > printing = cups
> > > print command = /usr/bin/lpr -r -P%p %s
> > > lpq command = /usr/bin/lpq -P%p
> > > lprm command = /usr/bin/lprm -P%p %j
> > >
> > > [homes]
> > > comment = Home Directory of %u
> > > path = /home/%u
> > > valid users = %S
> > > read only = No
> > > create mask = 0664
> > > directory mask = 0775
> > >
> > > [printers]
> > > comment = All Printers
> > > path = /var/spool/samba
> > > printer admin = root @ntadmin
> > > guest ok = Yes
> > > printable = Yes
> > > browseable = No
> > >
> > > [public]
> > > comment = Public Drive
> > > path = /home/public
> > > read only = No
> > > create mask = 0777
> > > force create mode = 0777
> > > directory mask = 0777
> > > force directory mode = 0777
> > >> force directory mode = 0777
> > >
> > > [netlogon]
> > > path = /usr/local/samba/netlogon
> > > write list = @ntadmin
> > >
> > > [profiles]
> > > path = /home/ntprofile
> > > valid users = %U ntadmin
> > > force user = %U
> > > read only = No
> > > create mask = 0600
> > > directory mask = 0700
> > >
> > > [print$]
> > > path = /usr/local/samba/printers
> > > write list = @ntadmin,root
> > > create mask = 0777
> > > force create mode = 0755
> > > directory mask = 0777
> > > force directory mode = 0755
> > > guest ok = Yes
> > >
> > > [common$]
> > > path = /home/common
> > > read only = No
> > > inherit permissions = Yes
> > > browseable = No
> > >
> > >
> > > Thanks for any help!
> > >
> > > Dan
> >
> >
> >
> > --
> > To unsubscribe from this list go to the following
> > URL and read the
> > instructions: http://lists.samba.org/mailman/listinfo/samba
>
> =====
> http://home.no.net/~knutove/knut_ove_hauge_kuren.htm
>
> ______________________________________________________
> Se den nye Yahoo! Mail på http://no.yahoo.com/
> Nytt design, enklere å bruke, alltid tilgang til Adressebok, Kalender og Notisbok
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: http://lists.samba.org/mailman/listinfo/samba
--
-----------------------
Daniel T. Gynn
RHCE #806200978201621
Essential Systems, Inc.
412-931-5403 ext. 1
fax: 412-931-5425
dan.gynn at essensys.com
More information about the samba
mailing list