Adam

It doesn't look like you have a printer defined in the smb.conf file. 
The [printers] section is a sort of global catchall setting in case you
don't specify one individually.

What is the name of the printer when you use the printer config tool
from the Gnome menu?  Lets say it's called HP4.  Then in windows, you
should be able to browse on the network and then d-click on the HP4
printer if it's showing in network neighbourhood for your Linux box to
set it up.  If not then add a section to smb.conf.  Here's mine for an
HP4 laserjet (called prn_linux_hp4.  A lot of the printer commands could
be in the [printers] section but I have set up some 'specials' so have
the commands for each individual printer to keep it simple.  If you have
only the one printer and are using the LPRing printer system (default on
a new RH install I believe), technically you don't need to state the
commands as Samba knows what to do (I'm told.)

[printers]
        comment = All Printers
        path = /var/spool/samba
        read only = No
        printable = Yes
        browseable = No

[prn_linux_hp4p]
        comment = HP4P on Prospect1
        path = /var/spool/samba
        read only = No
        printable = Yes
        printer name = prn_linux_hp4p
        oplocks = No
        print command = lpr /var/spool/samba/ -o raw %s;rm %s -r
        lpq command = /usr/bin/lpq    -P%p %s
        lprm command = /usr/bin/lprm   -P%p %j
        queuepause command = /usr/sbin/lpc -P%p stop
        queueresume command = /usr/sbin/lpc -P%p start


If you can now see your printer in windows but cannot print to it, see
the thread that I started on Tuesday 4th Feb called 'Samba Print problem
from win95/98' and particularly the reply from [EMAIL PROTECTED] 
That worked for me.

HIH

Kind Regards
Ashley Kitson

On Wed, 2003-02-05 at 09:49, Adam Bowns wrote:
> I'm having some problems sharing my printer with samba. The printer
> works fine locally, but whenever I try to connect to it from a windows
> machine i get the error message "Access denied, unable to connect"
> 
> the parts of my /etc/smb.conf concerned with printing look like this
> 
>    printcap name = /etc/printcap
>    load printers = yes
> 
>    printing = lprng
> 
> [printers]
>    comment = All Printers
>    path = /var/spool/samba
>    printer = raw
>    browseable = yes
>    guest ok = yes
>    writable = no
>    printable = yes
> 
> 
> And my /etc/printcap looks like this
> 
> Print:\
>         :ml#0:\
>         :mx#0:\
>         :sd=/var/spool/lpd/Print:\
>         :af=/var/spool/lpd/Print/Print.acct:\
>         :sh:\
>         :lp=/dev/usb/lp0:\
>         :lpd_bounce=true:\
>         :if=/usr/share/printconf/util/mf_wrapper:
> 
> Seen as its an access denied error i though it could be to do with the
> permissions of /var/spool/samba but they are set drwxrwxrwt which as far
> as i know is correct.
> 
> The ip of the server  is 192.168.0.2. and from the windows machine I am
> trying to connect by typing \\192.168.0.2\printers 
> 
> I am new to the world of samba so if I'm betting i've made an obvious
> mistake somewhere along the line.
> 
> Thanks in advance,
> Adam
> -- 
>    +-------------------------------------------+
>    |  Adam Bowns                               |
>    |  [EMAIL PROTECTED]                  |
>    |  http://homepage.ntlworld.com/adam-bowns/ |
>    +-------------------------------------------+
> 
> 
> 
> -- 
> redhat-list mailing list
> unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
> https://listman.redhat.com/mailman/listinfo/redhat-list
> 
> 




-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to