Jonny Berthiaume
2003-Mar-05 15:30 UTC
[Samba] Connection refused, access denied (Windows XP trying to connect on samba's shared printer)
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@gniinc.net # 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