Jonny Berthiaume
2003-Mar-04 21:44 UTC
[Samba] Acces Denied to shared printer on linux using Windows XP
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 (attached file), 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
Jonny Berthiaume
2003-Mar-04 21:57 UTC
[Samba] Acces Denied to shared printer on linux using Windows XP
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
Tim Kubricht
2003-Mar-04 22:10 UTC
[Samba] Acces Denied to shared printer on linux using Windows XP
Jonny, I had a similar problem last week from Windows 2000 & Windows NT: I did not receive your smb.conf file so you can look at the info below to see if it matches. Also See the message from Stephen below in regards to the "use client driver = yes" option. You may be able to print even though the printers window shows "Access denied, Cannot connect to printer" I do not have Windows-XP to test this But this might fix your problem From man smb.conf I did a search for "/use client" which stats that if you do not upload printer drivers into samba then you will get the access denied, unable to connect message in the printer queue window even though jobs may successfully be printed. And it says that "disable spoolss = yes" does the same behavior as the "use client driver = yes" option. Regards, Tim ==========================================================Content-return: prohibited Date: Wed, 19 Feb 2003 20:02:02 -0800 From: Stephen Carville <stephen@totalflood.com> Subject: Re: [Samba] Need solution to Printers window access denied, unable to connect message. In-reply-to: <5.0.0.25.2.20030219211529.00a6aa40@pop.houston.oilfield.slb.com> To: Tim Kubricht <kubricht@houston.oilfield.slb.com>, samba@lists.samba.org Message-id: <200302192002.02520.stephen@totalflood.com> Organization: DPSI MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 User-Agent: KMail/1.4.3 References: <5.0.0.25.2.20030219211529.00a6aa40@pop.houston.oilfield.slb.com> I had the same problem after upgrading to 2.2.7. You have to add: use client driver = yes Either globally or for the individual printer share. Read the section on the above in the man page for smb.conf for an explanation. On Wednesday 19 February 2003 07:35 pm, Tim Kubricht wrote: > Hi, > > I hope this is the right list to submit this request to > > I have the following problem with samba 2.2.2 that I upgraded to > samba 2.2.7 to try to see if the problem > would go away. But I still have the following problem: > > When I open the Start->Settings->Printers window > It shows the printers that I have connected to from the samba > print server printer_name on samba_ip_address > It shows <opening> at 1st then changes to <access denied, unable > to connect> > and never shows the ready message that I used to get from a samba > 1.9.15p8 server that I updated. > > * Can someone help me to get rid of the access denied messages > from the Printers window? > > The following is what I have: > > My OS is Solaris 8 my PCs are either WinNT4 or Win2000 > I have set up smb.conf as you can see below > With it I can use dos to run net view and it works as expected > I can open Network Neighborhood and find my samba print server > and it will list all the printer shares > along with the Printers folder. If I double click the Printers > folder: > I can get a list of all the printers and the number of > documents that are currently being printed on each > printer and If I double-click on a specific printer I can get > the name of the job and person that is printing > on the queue. This works as expected. I did not see this > error in any of the Archives or the troubleshooting > section that I found or in any of the 3 books I have. I need > your expertise in solving this feature. > > Thanks, > Tim > ___________________________________________________________________________ > smb.conf:# Samba config file created using SWAT > # Date: 2003/02/19 10:54:34 > > # Global parameters > [global] > workgroup = Name_Of_My_Workgroup > server string = Samba %v on %h > security = SERVER > encrypt passwords = Yes > map to guest = Bad User <-- used and not used this > option > password server = #PDC-Address# #BDC-Address# > username map = /usr/local/samba/lib/username.map > log file = /usr/local/samba/var/log.samba > max log size = 50 > printcap name = /etc/samba-printcap > os level = 10 > preferred master = False > local master = No > domain master = False > dns proxy = No > wins server = #Primary-WINs-Address# > guest account = ftp <-- local acct & I also tried lp > account > hosts allow = ###.###. ###.###. 127. ###=2 subnets at my > site > printing = bsd > > [printers] > comment = All Printers > path = /var/spool/pc-spool <-- priv=rwxrwxrwt owner=lp > read only = No > guest ok = Yes > printable = Yes > browseable = No > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba > -- Stephen Carville <stephen@totalflood.com> UNIX and Network Administrator DPSI 6033 W. Century Blvd, Ste 1075 Los Angeles, CA 90045 310-342-3602 ===========================================Well, yes, we've deployed Linux and we're seeing reduced costs and increased functionality. But our competitors? Linux might be bad for them. Real bad. Our competitors should stick with what they have right now. ___________________________________________________________________________ At 04:44 PM 3/4/2003 -0500, you wrote:>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 (attached file), 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 >-- >To unsubscribe from this list go to the following URL and read the >instructions: http://lists.samba.org/mailman/listinfo/samba
Apparently Analagous Threads
- Connection refused, access denied (Windows XP trying to connect on samba's shared printer)
- Connection refused, access denied (Windows XP trying to connect on samba's shared printer)
- Need solution to Printers window access denied, unable to connect message.
- Weird..
- Re: Need solution to Printers window access denied, unableto connect message.