Printer on SMB server in Suse 9.1
Hello everyone, I'm having a problem here. I was completely successful in configuring a windows printer in Suse 9.0 through YAST. Now that I upgraded to Suse 9.1, I simply cannot do it, performing exactly the same operations. What happens? The printer server runs a Windows 2000 OS and I'm using LPRng spooler (which is probably irrelevant because I cound print with both cups and lprng in 9.0 and I can't with both in 9.1) Any help would be appreciated -- []s Herbert ----------------------------------- Departamento de Física de Materiais Instituto de Física Universidade de São Paulo -----------------------------------
Just to give more information. When I'm trying to configure the printer in YAST I put all the information and click "Test the SMB remote access" and the error comes: Testing LaserJet on joaquina Anonymous login successful tree connect failed: NT_STATUS_ACCESS_DENIED It should not be attempting the anonymous login because I gave a valid username and password, which works with the command: smbclient --user=*********** //joaquina/LaserJet Hope it helps someone to help me Herbert Georg wrote:
Hello everyone,
I'm having a problem here. I was completely successful in configuring a windows printer in Suse 9.0 through YAST. Now that I upgraded to Suse 9.1, I simply cannot do it, performing exactly the same operations. What happens? The printer server runs a Windows 2000 OS and I'm using LPRng spooler (which is probably irrelevant because I cound print with both cups and lprng in 9.0 and I can't with both in 9.1)
Any help would be appreciated
-- []s Herbert ----------------------------------- Departamento de Física de Materiais Instituto de Física Universidade de São Paulo -----------------------------------
Hello, On Oct 26 10:37 Herbert Georg wrote (shortened):
NT_STATUS_ACCESS_DENIED
Search for "NT_STATUS_ACCESS_DENIED" in our support database: http://portal.suse.com/PM/page/search.pm Please bookmark this URL - you may need it often. Use "Fulltext search in SDB". You will find http://portal.suse.com/sdb/en/2004/04/pohletz_cups_xp.html (this should also be valid for LPRng) If this support database article doesn't help: Do you use the updated lpdfilter package for SUSE Linux 9.1? Search for "lpdfilter" on http://www.suse.de/de/private/download/updates/91_i386.html If this doesn't help then have a look at http://portal.suse.com/sdb/en/2003/11/jsmeix_print-smb-90.html how to check manually (by using the smbclient command) which command (and which command line parameters) must be used to send data to a SMB printer share. Read "man smbclient" in particular regarding the password: You may have to use "-U username%password" if you have a password. Finally have a look at http://portal.suse.com/sdb/en/2002/04/jsmeix_print-80-probleme.html#Samba When you have found out the right smbclient command then check the files in /etc/lpdfilter/<queue>/ whether there is the appropriate command or command paramerers specified. There should be the file /etc/lpdfilter/<queue>/redirect with a command which calls /usr/lib/lpdfilter/redirect/samba_print Check whether or not there are the right paramerer settings. Perhaps the easiest way is to exchange the whole command in /etc/lpdfilter/<queue>/redirect with your smbclient command. Regards Johannes Meixner -- SUSE LINUX AG, Maxfeldstrasse 5 Mail: jsmeix@suse.de 90409 Nuernberg, Germany WWW: http://www.suse.de/
Hi Johannes, I found the following in my /etc/lpdfilter/cicarelli/redirect file: /usr/lib/lpdfilter/redirect/samba_print //joaquina/"LaserJet" "*******" -U "*******" -N -P where obviously I have replaced the real username and password by asteriscs. If I understand well, there should be no "-N" option there because this supresses the use of a username and password, right?? It fits well to the problem as in the error message it says that it is tempting to access as an anonymous user. I'll try to delete this option. Johannes Meixner wrote:
Hello,
On Oct 26 10:37 Herbert Georg wrote (shortened):
NT_STATUS_ACCESS_DENIED
Search for "NT_STATUS_ACCESS_DENIED" in our support database: http://portal.suse.com/PM/page/search.pm Please bookmark this URL - you may need it often. Use "Fulltext search in SDB". You will find http://portal.suse.com/sdb/en/2004/04/pohletz_cups_xp.html (this should also be valid for LPRng)
If this support database article doesn't help:
Do you use the updated lpdfilter package for SUSE Linux 9.1? Search for "lpdfilter" on http://www.suse.de/de/private/download/updates/91_i386.html
If this doesn't help then have a look at http://portal.suse.com/sdb/en/2003/11/jsmeix_print-smb-90.html how to check manually (by using the smbclient command) which command (and which command line parameters) must be used to send data to a SMB printer share. Read "man smbclient" in particular regarding the password: You may have to use "-U username%password" if you have a password.
Finally have a look at http://portal.suse.com/sdb/en/2002/04/jsmeix_print-80-probleme.html#Samba
When you have found out the right smbclient command then check the files in /etc/lpdfilter/<queue>/ whether there is the appropriate command or command paramerers specified. There should be the file /etc/lpdfilter/<queue>/redirect with a command which calls /usr/lib/lpdfilter/redirect/samba_print Check whether or not there are the right paramerer settings.
Perhaps the easiest way is to exchange the whole command in /etc/lpdfilter/<queue>/redirect with your smbclient command.
Regards Johannes Meixner
-- []s Herbert ----------------------------------- Departamento de Física de Materiais Instituto de Física Universidade de São Paulo -----------------------------------
No it didn't work! -- []s Herbert ----------------------------------- Departamento de Física de Materiais Instituto de Física Universidade de São Paulo -----------------------------------
Hello, On Oct 26 12:21 Herbert Georg wrote (shortened):
I found the following in my /etc/lpdfilter/cicarelli/redirect file:
/usr/lib/lpdfilter/redirect/samba_print //joaquina/"LaserJet" \ "*******" -U "*******" -N -P
where obviously I have replaced the real username and password by asteriscs. If I understand well, there should be no "-N" option there because this supresses the use of a username and password, right?? It fits well to the problem as in the error message it says that it is tempting to access as an anonymous user. I'll try to delete this option.
It has worked with the -N all the time in the past but it seems that the behaviour has changed. According to "man smbclient" the -N suppresses the normal password prompt from the client to the user. This is useful when accessing a service that does not require a password. This can be read as "only the prompt is suppressed but user and password which are specified as command line parameters are used" or "the prompt is suppressed and an anonymous login is done regardless whether or not user and password are specified as command line parameters". Regards Johannes Meixner -- SUSE LINUX AG, Maxfeldstrasse 5 Mail: jsmeix@suse.de 90409 Nuernberg, Germany WWW: http://www.suse.de/
Anyway, suppressing the -N option didn't work, as well as suppressing the -P option, for which I havent found any description in the man pages. I have also updated my lpdfilters package. So I think I tryied it all... There must be some bug, as the 9.0 works just fine and 9.1 doesn't. Johannes Meixner wrote:
Hello,
On Oct 26 12:21 Herbert Georg wrote (shortened):
I found the following in my /etc/lpdfilter/cicarelli/redirect file:
/usr/lib/lpdfilter/redirect/samba_print //joaquina/"LaserJet" \ "*******" -U "*******" -N -P
where obviously I have replaced the real username and password by asteriscs. If I understand well, there should be no "-N" option there because this supresses the use of a username and password, right?? It fits well to the problem as in the error message it says that it is tempting to access as an anonymous user. I'll try to delete this option.
It has worked with the -N all the time in the past but it seems that the behaviour has changed.
According to "man smbclient" the -N suppresses the normal password prompt from the client to the user. This is useful when accessing a service that does not require a password.
This can be read as "only the prompt is suppressed but user and password which are specified as command line parameters are used" or "the prompt is suppressed and an anonymous login is done regardless whether or not user and password are specified as command line parameters".
Regards Johannes Meixner
-- []s Herbert ----------------------------------- Departamento de Física de Materiais Instituto de Física Universidade de São Paulo -----------------------------------
participants (2)
-
Herbert Georg
-
Johannes Meixner