[Samba] Connection refused, access denied (Windows XP trying to connect on samba's shared printer)

Mark Hougaard kb9fcc at amsat.org
Sun Jan 25 00:30:42 GMT 2004


Jonny,

Did you ever get your shared printer issue resolved? If so, how? I'm 
having exactly the
same problem and I didn't see that anyone responded to your request for 
help on the
lists.samba.org group.

My setup and problem is pretty much the same as yours was Win XP pro can 
see printer
share on Linux  RH9.0 (kernel 2.4.20), but cannot get access once the 
drivers are configured.

Any help would be greatly appreciated.

Thanks in advance,
Mark Hougaard

>
>   [Samba] Connection refused, access denied (Windows XP trying to
>   connect on samba's shared printer)
>
> *Jonny Berthiaume* jberthiaume at gniinc.net 
> <mailto:samba%40lists.samba.org?Subject=%5BSamba%5D%20Connection%20refused%2C%20access%20denied%20%28Windows%20XP%20trying%20to%0A%09connect%20on%20samba%27s%20shared%20printer%29&In-Reply-To=>
> /Wed Mar 5 15:30:19 GMT 2003/
>
>     * Previous message: [Samba] Problems switching from a samba 2.2.2
>       pdc to 2.2.7 pdc
>       <http://lists.samba.org/archive/samba/2003-March/062983.html>
>     * Next message: [Samba] Samba-3.0alpha22 available on samba.org
>       mirrors
>       <http://lists.samba.org/archive/samba/2003-March/062986.html>
>     * *Messages sorted by:* [ date ]
>       <http://lists.samba.org/archive/samba/2003-March/date.html#62987>
>       [ thread ]
>       <http://lists.samba.org/archive/samba/2003-March/thread.html#62987>
>       [ subject ]
>       <http://lists.samba.org/archive/samba/2003-March/subject.html#62987>
>       [ author ]
>       <http://lists.samba.org/archive/samba/2003-March/author.html#62987>
>
> ------------------------------------------------------------------------
>
>Hi,
>
> my problem is to access a shared printer with samba on my WindowsXP
> workstation
>
> When I browse thru my network with Explorer, I can see the shared printer.
> When I double-clic on the printer, Windows XP ask me if I want to install
> it.
> I choose the right driver and click "OK".
> The installation begin and there is no error in the installation.
> After the installation Windows XP open the printer's printing queue to show
> the printer's status, but in the window's title there is this notice:
>
> "Access denied, Cannot connect to printer"
>
>
> I would like to know how I can get rid of this problem please.
> This work really well in Windows 98 but not on XP.
>
> Here is my smb.conf , let me know if you find something to find this
>problem
>
> Note: 2.2.4 is the version of samba I use
>
> Jonny
> JBerthiaume at gniinc.net <http://lists.samba.org/mailman/listinfo/samba>
>
> # This is the main Samba configuration file. You should read the
> # smb.conf(5) manual page in order to understand the options listed
> # here. Samba has a huge number of configurable options (perhaps too
> # many!) most of which are not shown in this example
> #
> # Any line which starts with a ; (semi-colon) or a # (hash)
> # is a comment and is ignored. In this example we will use a #
> # for commentry and a ; for parts of the config file that you
> # may wish to enable
> #
> # NOTE: Whenever you modify this file you should run the command "testparm"
> # to check that you have not many any basic syntactic errors.
> #
> #======================= Global Settings
>=====================================
> [global]
>
> # protocol
>    protocol = NT1
>
> # workgroup = NT-Domain-Name or Workgroup-Name, eg: LINUX2
>    workgroup = FAXNET
>
> # server string is the equivalent of the NT Description field
>    server string = Serveur FaxNet
>
> # If you want to automatically load your printer list rather
> # than setting them up individually then you'll need this
>    load printers = yes
>
> # Uncomment this if you want a guest account, you must add this to
> /etc/passwd
> # otherwise the user "nobody" is used
>    guest account = anonyme
>
> # this tells Samba to use a separate log file for each machine
> # that connects
>    log file = /var/log/samba.%m
>
> # Put a capping on the size of the log files (in Kb).
>    max log size = 50
>
> # Security mode. Most people will want user level security. See
> # security_level.txt for details.  NOTE:  To get the behaviour of
> # Samba-1.9.18, you'll need to use "security = share".
>    security = share
>
> # You may wish to use password encryption. Please read
> # ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
> # Do not enable this option unless you have read those documents
> ;  encrypt passwords = yes
>
> # Where to find the SSL certificates:
>    ssl CA certDir = /etc/ssl/certs
>
> # Unix users can map to different SMB User names
>    username map = /etc/samba/smbusers
>
> # Most people will find that this option gives better performance.
> # See speed.txt and the manual pages for details
> # You may want to add the following on a Linux system:
> #         SO_RCVBUF=8192 SO_SNDBUF=8192
>    socket options = TCP_NODELAY
>
> # Windows Internet Name Serving Support Section:
> # WINS Support - Tells the NMBD component of Samba to enable it's WINS
> Server
> ;   wins support = yes
>
> # WINS Server - Tells the NMBD components of Samba to be a WINS Client
> # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
> ;   wins server =
>
> #============================ Share Definitions
>==============================
> [homes]
>    comment = Home Directories
>    browseable = no
>    create mode = 0755
>    writable = yes
>    oplocks = false
>
> [Documents]
>    comment = Documents
>    guest ok = yes
>    create mask = 0000
>    force create mode = 0777
>    directory mask = 0000
>    force directory mode = 0777
>    writable = yes
>    oplocks = false
>    path = /u/GNIDOC
>
> [Forms]
>    comment = Forms
>    guest ok = yes
>    create mask = 0000
>    force create mode = 0777
>    directory mask = 0000
>    force directory mode = 0777
>    writable = yes
>    oplocks = false
>    path = /u/SYS/FORMS/fondlsr/FAX
>
> [Communs]
>    comment = Historiques communes
>    guest ok = yes
>    oplocks = false
>    path = /u/histo_fax/communs
>
> [Rejets]
>    comment = Historiques rejets
>    browseable = no
>    oplocks = false
>    path = /u/histo_fax/global/rejets/no_job
>
> [Succes]
>    comment = Historiques succes
>    browseable = no
>    oplocks = false
>    path = /u/histo_fax/global/succes/no_job
>
> [Recus]
>    comment = Recus
>    browseable = no
>    oplocks = false
>    path = /u/histo_fax/global/recus/no_job
>
> [printers]
>    comment = All Printers
>    path = /u/spool/lpd/samba
>    browseable = no
>    guest ok = yes
>    printable = yes
>    print command = lpr -r -s -l -P%p %s
>  
>
> ------------------------------------------------------------------------
>
>     * Previous message: [Samba] Problems switching from a samba 2.2.2
>       pdc to 2.2.7 pdc
>       <http://lists.samba.org/archive/samba/2003-March/062983.html>
>     * Next message: [Samba] Samba-3.0alpha22 available on samba.org
>       mirrors
>       <http://lists.samba.org/archive/samba/2003-March/062986.html>
>     * *Messages sorted by:* [ date ]
>       <http://lists.samba.org/archive/samba/2003-March/date.html#62987>
>       [ thread ]
>       <http://lists.samba.org/archive/samba/2003-March/thread.html#62987>
>       [ subject ]
>       <http://lists.samba.org/archive/samba/2003-March/subject.html#62987>
>       [ author ]
>       <http://lists.samba.org/archive/samba/2003-March/author.html#62987>
>
> ------------------------------------------------------------------------
> More information about the samba mailing list 
> <http://lists.samba.org/mailman/listinfo/samba>





More information about the samba mailing list