On 10 Feb 2001, Harry Putnam wrote:

> "Mikkel L. Ellertson" <[EMAIL PROTECTED]> writes:
>
> [...]
>
> > > Do you see something wrong in the config?  Should I see some kind of
> > > output in /var/log/messages?
> > >
> > No, you will probably not see anything is /var/log/messages.  This is
> > because lpr is working correctly, but your filter is erroring out.  When
> > you are sending to a Windows printer, it is actualy the filter that
> > sends the file - lpr only puts it in the spool directory, and hands it
> > off the the filter program.  This is because of the :lp=/dev/null: line.
>
> OK, that was worrying me.
>
[...]
> > Did you try removing the username and password from the configuration or
> > from /var/spool/lpd/lp/.config.  As long as yu didn't set up a password
> > when you set the pinter up as a shared printer, it should work fine.
>
> I've tried with and without, and have included the workgroup WORKGROUP
> that I see on the win2k machine.
>
> I did accidently learn how to get serious debugging info with the -D
> flag though.   `lpr -VD6 file' gives some 2700 lines of mumbo jumbo I
> couldn't make any sense of.
>
> >
> > You may want to run "smbclient -N -L <your w2k machine name>" and make
>
> Haa... now were talking.  The connection is being denied I think.
>
> > sure it lists the printer, and that the name it displays matches the
> > name you gave printtool.  The hard part about debugging a Window printer
> > setup is that smbprint does not log error messages.  And as far as lrp
>
> Your print cap doesn't mention smbprint.. Whereas the comments in
> `smbprint' seem to indicate a pointer should be in printcap. I guess the
> script at the end of the symlink in /var/spool/lpd/lp
> [filter -> /usr/lib/rhs/rhs-printfilters//master-filter] Takes care of
> sending it to /usr/bin/smbprint
>
This is because the RedHat printfilters call smbprint when the printer
is configured as a Windows printer.  It does a few other things as well
- converting the input file format to the correct format, as well as a
few other things.
>
> > is concerned, it is doing its job - it sending the file through the
> > filter, and taking the output of the filter and sending it do /dev/null.
>
> That smbclient -N -L chub  tells the story.  Looks like it
> might be something involving the confusing w2k permission/security
> stuff.  There are at least 2 shared discs and printer.
> That are accessable to any user.
>
>          [ addresses edited ]
>
>  # smbclient -N -L chub
> SSL: Error error setting CA cert locations: error:00000000::lib(0) :func(0) 
>:reason(0)
> trying default locations.
> added interface ip=MYIP.LINUX.ADD bcast=xxx.xxx.255 nmask=255.255.255.0
> added interface ip=MYLAN.LINUX.ADD.xxx.xxx bcast=192.xxx.xxx.255 nmask=255.255.255.0
> Anonymous login successful
> Domain=[WORKGROUP] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]
>
>         Sharename      Type      Comment
>         ---------      ----      -------
> Error returning browse list: ERRDOS - ERRnoaccess (Access denied.)
>
>         Server               Comment
>         ---------            -------
>         CHUB
>
>         Workgroup            Master
>         ---------            -------
>         WORKGROUP            CHUB
>
> ================================================================
>
Looks like the version of Samba doesn't get along with W2K.  I haven't
been keeping up with the Samba list, so I don't know if there is a later
version out that fixes this...
>
> Whereas a similar command to a win98 box shows lots of available
> stuff:
>
>  # smbclient  -N -L  chub2
> SSL: Error error setting CA cert locations: error:00000000::lib(0) :func(0) 
>:reason(0)
> trying default locations.
> added interface ip=MYIP.LINUX.ADD bcast=xxx.xxx.255 nmask=255.255.255.0
> added interface ip=MYLAN.LINUX.ADD  bcast=192.1xxx.255 nmask=255.255.255.0
>
>         Sharename      Type      Comment
>         ---------      ----      -------
>         C              Disk
>         PRINTER$       Disk
>         HP             Printer
>         M              Disk      chub2-cdrom
>         A              Disk      chub2
>         IPC$           IPC       Remote Inter Process Communication
>
>         Server               Comment
>         ---------            -------
>
>         Workgroup            Master
>         ---------            -------
> ================================================================
>
> So I attempted to print to that old HP listed above.  Using printtool
> as before, and with no password or username.  Still some kind of bull
> puckey comes up.
>
> The output says there is no /var/spool/lpd/lp0 but of course there is:
>
> ls -l /var/spool/lpd:
> total 8
> drwx------    2 lp       lp           4096 Feb 10 16:03 lp
> drwx------    2 lp       lp           4096 Feb 10 16:02 lp0
>
> ================================================================
>
>   # lpr -Plp0  FILE1
> Status Information:
>  sending job 'root@reader+919' to lp0@localhost
>  connecting to 'localhost', attempt 1
>  connected to 'localhost'
>  requesting printer lp0@localhost
>  job 'root@reader+919' transfer to lp0@localhost failed
>   error 'NONZERO RFC1179 ERROR CODE FROM SERVER' with ack 'ACK_FAIL'
>   sending str '^Blp0' to lp0@localhost
>  error msg: 'spool queue for 'lp0' does not exist on server reader.local.lan'
>  error msg: '   non-existent printer or you need to run 'checkpc -f''
> [206:root]>~
>
> ================================================================
>
> Following the suggestion and running `checkpc -f' it found a lot to
> complain about:
>
>  # checkpc -f chub2
> Warning - owner/group of '.config' are 0/7, not 4/7
> Warning -   changing ownership '.config' to 4/7
> Warning -   changing ownership '.config' to 4/7
> Warning - permissions of '.config' are 0640, not 0600
> Warning - owner/group of '.config~' are 0/0, not 4/7
> Warning -   changing ownership '.config~' to 4/7
> Warning -   changing ownership '.config~' to 4/7
> Warning - permissions of '.config~' are 0640, not 0600
> Warning - owner/group of '.config' are 0/7, not 4/7
> Warning -   changing ownership '.config' to 4/7
> Warning -   changing ownership '.config' to 4/7
> Warning - permissions of '.config' are 0640, not 0600
> [206:root]>~
>
>
> Is the printtool setting wrong permissions?  After the changes above
> checkpc -f runs silently.
>
>
It may be.  These were the permissions that 6.2 used, but it may have
changed in 7.0.  Do you have all the updates installed?

Mikkel
-- 

    Do not meddle in the affairs of dragons,
 for you are crunchy and taste good with ketchup.



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to