I'm running samba 2.2.3a-6 under Debian (testing) and I am having a heck of a time getting Windows 2000 to print to my printer. I keep getting that "Access denied, unable to connect" message. At one point I had it so you could print test pages, but as soon as you tried to print from an application, it would break. However, that doesn't even work anymore. I've been reading around, but none of the solutions I've seen work for me. Here is what I have in my smb.conf file for the printer: [Epson] use client driver = Yes path = /var/spool/samba comment = Epson Stylus COLOR 777 guest ok = Yes printable = Yes print command = lpr -P %p -o raw %s -r printer name = Epson browseable = Yes guest ok = Yes writable = no My /var/spool/samba looks like this: drwxrwxrwt 2 root root 4096 Sep 21 14:28 /var/spool/samba Here is a section from my log: [2002/09/21 15:07:54, 2] smbd/server.c:open_sockets(198) waiting for a connection [2002/09/21 15:09:32, 2] lib/access.c:check_access(321) Allowed connection from (192.168.0.3) [2002/09/21 15:09:32, 2] smbd/reply.c:reply_special(92) netbios connect: name1=NEPTUNE name2=SEPHIRA [2002/09/21 15:09:32, 2] smbd/reply.c:reply_special(111) netbios connect: local=neptune remote=sephira [2002/09/21 15:09:32, 2] smbd/reply.c:reply_sesssetup_and_X(972) Defaulting to Lanman password for bonnie [2002/09/21 15:09:32, 2] smbd/password.c:pass_check_smb(584) pass_check_smb failed - invalid password for user [bonnie] [2002/09/21 15:09:32, 2] lib/access.c:check_access(321) Allowed connection from (192.168.0.3) [2002/09/21 15:09:34, 2] lib/access.c:check_access(321) Allowed connection from (192.168.0.3) [2002/09/21 15:09:45, 2] lib/access.c:check_access(321) Allowed connection from (192.168.0.3) [2002/09/21 15:09:45, 2] smbd/reply.c:reply_sesssetup_and_X(972) Defaulting to Lanman password for bonnie [2002/09/21 15:09:45, 2] smbd/password.c:pass_check_smb(584) pass_check_smb failed - invalid password for user [bonnie] [2002/09/21 15:09:45, 2] lib/access.c:check_access(321) Allowed connection from (192.168.0.3) [2002/09/21 15:09:45, 1] smbd/service.c:make_connection(615) sephira (192.168.0.3) connect to service jaz as user bonnie (uid=1001, gid=100 1) (pid 1712) At some point it seems to be checking the Lanman password? I have no idea why it's doing that. The password bonnie logs in with is the same as the unix password. Plus, she is allowed to login to all of the other shares (which can be seen in the last line). If anyone could provide me assistance with this, I would greatly appreciate it. I've been scratching my head over this for a couple of days now. -- Jeff "Shippy" Shipman E-Mail: shippy@nmt.edu Computer Science Major ICQ: 1786493 New Mexico Institute of Mining and Technology Homepage: http://www.nmt.edu/~shippy
At 23:12 2002-09-21, you wrote:>[Epson] >.... > writable = noTry to set writable to yes / Martin
Jeff Shipman wrote:> > I'm running samba 2.2.3a-6 under Debian (testing) and I > am having a heck of a time getting Windows 2000 to print > to my printer. I keep getting that "Access denied, unable > to connect" message. At one point I had it so you could > print test pages, but as soon as you tried to print from > an application, it would break. However, that doesn't > even work anymore. I've been reading around, but none > of the solutions I've seen work for me. Here is what I > have in my smb.conf file for the printer: > > [Epson] > use client driver = Yes > path = /var/spool/samba > comment = Epson Stylus COLOR 777 > guest ok = Yes > printable = Yes > print command = lpr -P %p -o raw %s -r > printer name = Epson > browseable = Yes > guest ok = Yes > writable = no > > My /var/spool/samba looks like this: > > drwxrwxrwt 2 root root 4096 Sep 21 14:28 /var/spool/samba > > Here is a section from my log: >> At some point it seems to be checking the Lanman password?I don't know, but Samba 2.2 does some werid stuff...> I have no idea why it's doing that. The password bonnie logs > in with is the same as the unix password. Plus, she is allowed > to login to all of the other shares (which can be seen in the > last line). > > If anyone could provide me assistance with this, I would greatly > appreciate it. I've been scratching my head over this for a couple > of days now.You probably need to turn up the debug level, and show exactly where the connection to [epson] is failing. Andrew Bartlett -- Andrew Bartlett abartlet@pcug.org.au Manager, Authentication Subsystems, Samba Team abartlet@samba.org Student Network Administrator, Hawker College abartlet@hawkerc.net http://samba.org http://build.samba.org http://hawkerc.net
At 09:40 AM 9/22/2002 +1000, Andrew Bartlett wrote:>Jeff Shipman wrote: > > > > I'm running samba 2.2.3a-6 under Debian (testing) and I > > am having a heck of a time getting Windows 2000 to print > > to my printer. I keep getting that "Access denied, unable > > to connect" message. At one point I had it so you could > > print test pages, but as soon as you tried to print from > > an application, it would break. However, that doesn't > > even work anymore. I've been reading around, but none > > of the solutions I've seen work for me. Here is what I > > have in my smb.conf file for the printer: > > > > [Epson] > > use client driver = Yes > > path = /var/spool/samba > > comment = Epson Stylus COLOR 777 > > guest ok = Yes > > printable = Yes > > print command = lpr -P %p -o raw %s -r > > printer name = Epson > > browseable = Yes > > guest ok = Yes > > writable = no > > > > My /var/spool/samba looks like this: > > > > drwxrwxrwt 2 root root 4096 Sep 21 14:28 /var/spool/samba > > > > Here is a section from my log: > > > > > At some point it seems to be checking the Lanman password? > >I don't know, but Samba 2.2 does some werid stuff... > > > I have no idea why it's doing that. The password bonnie logs > > in with is the same as the unix password. Plus, she is allowed > > to login to all of the other shares (which can be seen in the > > last line). > > > > If anyone could provide me assistance with this, I would greatly > > appreciate it. I've been scratching my head over this for a couple > > of days now. > >You probably need to turn up the debug level, and show exactly where the >connection to [epson] is failing. > >Andrew BartlettI'd be interested in the answer, too--I see this consistently under Samba 2.2.1 (Solaris 7/Win2k clients). The way we work around it is to create a mount --like to the PC user's UNIX home directory, a SAMBA share--once the user authenticates on that file system share, the printer works okay.. Bunny Pfau
On Sat, 2002-09-21 at 17:12, Jeff Shipman wrote:> I'm running samba 2.2.3a-6 under Debian (testing) and I >2.2.3a had some serious problems with printing and 2k/XP clients... try upgrading to 2.2.6pre brad
--- linux power <linuxpower2002@yahoo.no> skrev: > major bug in samba. Replace -P %p in print command> with the absolute path to the printer. > Let me know how it goes. > > > --- Bunny Pfau <bunny@ucar.edu> skrev: > At 09:40 > AM > 9/22/2002 +1000, Andrew Bartlett wrote: > > >Jeff Shipman wrote: > > > > > > > > I'm running samba 2.2.3a-6 under Debian > > (testing) and I > > > > am having a heck of a time getting Windows > 2000 > > to print > > > > to my printer. I keep getting that "Access > > denied, unable > > > > to connect" message. At one point I had it so > > you could > > > > print test pages, but as soon as you tried to > > print from > > > > an application, it would break. However, that > > doesn't > > > > even work anymore. I've been reading around, > but > > none > > > > of the solutions I've seen work for me. Here > is > > what I > > > > have in my smb.conf file for the printer: > > > > > > > > [Epson] > > > > use client driver = Yes > > > > path = /var/spool/samba > > > > comment = Epson Stylus COLOR 777 > > > > guest ok = Yes > > > > printable = Yes > > > > print command = lpr -P %p -o raw %s -r > > > > printer name = Epson > > > > browseable = Yes > > > > guest ok = Yes > > > > writable = no > > > > > > > > My /var/spool/samba looks like this: > > > > > > > > drwxrwxrwt 2 root root 4096 Sep > > 21 14:28 /var/spool/samba > > > > > > > > Here is a section from my log: > > > > > > > > > > > At some point it seems to be checking the > Lanman > > password? > > > > > >I don't know, but Samba 2.2 does some werid > > stuff... > > > > > > > I have no idea why it's doing that. The > password > > bonnie logs > > > > in with is the same as the unix password. > Plus, > > she is allowed > > > > to login to all of the other shares (which can > > be seen in the > > > > last line). > > > > > > > > If anyone could provide me assistance with > this, > > I would greatly > > > > appreciate it. I've been scratching my head > over > > this for a couple > > > > of days now. > > > > > >You probably need to turn up the debug level, and > > show exactly where the > > >connection to [epson] is failing. > > > > > >Andrew Bartlett > > > > > > I'd be interested in the answer, too--I see this > > consistently under Samba > > 2.2.1 (Solaris 7/Win2k clients). The way we work > > around > > it is to create a mount --like to the PC user's > UNIX > > home directory, > > a SAMBA share--once the user authenticates on that > > file system share, > > the printer works okay.. > > > > Bunny Pfau > > > > -- > > To unsubscribe from this list go to the following > > URL and read the > > instructions: > http://lists.samba.org/mailman/listinfo/samba > >______________________________________________________> Se den nye Yahoo! Mail p? http://no.yahoo.com/ > Nytt design, enklere ? bruke, alltid tilgang til > Adressebok, Kalender og Notisbok >______________________________________________________ Se den nye Yahoo! Mail p? http://no.yahoo.com/ Nytt design, enklere ? bruke, alltid tilgang til Adressebok, Kalender og Notisbok
I'm now running samba 3.0-alpha19. I can get it to print now, but when you try to open the spool in Windows, it has the message "Failed to open, retrying" So, windows thinks that the documents are always pending and the printer on the systray never goes away. I was going to attach my log of looking at the printer in Network Neighborhood and then printing a test page, but it's too big to include here because it's log level 3. Log level 2 just doesn't include enough detail because it just has that basics essentially and no messages I saw indicated that there was any problem. For some reason, Windows doesn't want to open the spool. If you would like the log.samba file, please just send me an email and I'll send it to you. Here are the pertinent sections from my config file: [global] server string = Samba Server %v on (%L) security = SHARE encrypt passwords = Yes null passwords = Yes passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n . log level = 3 syslog = 2 log file = /var/log/samba/log.samba printcap name = lpstat os level = 34 preferred master = True domain master = True wins support = Yes invalid users = root adm bin boot daemon digital field games gateway gopher halt mail news operator ris samba sccs shutdown sys sync uucp valid users = bonnie shippy nobody hosts allow = 192.168.0. 127.0.0. printing = cups [Epson] comment = Epson Stylus COLOR 777 path = /var/spool/samba guest ok = Yes printable = Yes print command = lpr -P %p -o raw %s -r lpq command = lpstat -o %p lprm command = lprm -P %p %j printer name = Epson use client driver = Yes Thanks. -- Jeff "Shippy" Shipman E-Mail: shippy@nmt.edu Computer Science Major ICQ: 1786493 New Mexico Institute of Mining and Technology Homepage: http://www.nmt.edu/~shippy Bradley W. Langhorst wrote: > On Sat, 2002-09-21 at 17:12, Jeff Shipman wrote: > >>I'm running samba 2.2.3a-6 under Debian (testing) and I >> > > 2.2.3a had some serious problems with printing and 2k/XP clients... > try upgrading to 2.2.6pre > > brad > >
Andrew, Try to check the machine log. if it says printing.tdb bad magic etc. then your printing.tdb is corrupt.You can also use smbclient to verify if you can print to your printer. Can you print using lpr directly to the printer ? I have this case before, "access denied" but this is due to a corrupt printing.tdb. remove printing.tdb and restart samba. On 2002.09.21 19:40 Andrew Bartlett wrote:> Jeff Shipman wrote: > > > > I'm running samba 2.2.3a-6 under Debian (testing) and I > > am having a heck of a time getting Windows 2000 to print > > to my printer. I keep getting that "Access denied, unable > > to connect" message. At one point I had it so you could > > print test pages, but as soon as you tried to print from > > an application, it would break. However, that doesn't > > even work anymore. I've been reading around, but none > > of the solutions I've seen work for me. Here is what I > > have in my smb.conf file for the printer: > > > > [Epson] > > use client driver = Yes > > path = /var/spool/samba > > comment = Epson Stylus COLOR 777 > > guest ok = Yes > > printable = Yes > > print command = lpr -P %p -o raw %s -r > > printer name = Epson > > browseable = Yes > > guest ok = Yes > > writable = no > > > > My /var/spool/samba looks like this: > > > > drwxrwxrwt 2 root root 4096 Sep 21 14:28 /var/spool/samba > > > > Here is a section from my log: > > > > > At some point it seems to be checking the Lanman password? > > I don't know, but Samba 2.2 does some werid stuff... > > > I have no idea why it's doing that. The password bonnie logs > > in with is the same as the unix password. Plus, she is allowed > > to login to all of the other shares (which can be seen in the > > last line). > > > > If anyone could provide me assistance with this, I would greatly > > appreciate it. I've been scratching my head over this for a couple > > of days now. > > You probably need to turn up the debug level, and show exactly where the > connection to [epson] is failing. > > Andrew Bartlett > > -- > Andrew Bartlett abartlet@pcug.org.au > Manager, Authentication Subsystems, Samba Team abartlet@samba.org > Student Network Administrator, Hawker College abartlet@hawkerc.net > http://samba.org http://build.samba.org http://hawkerc.net > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >-- __________________________