LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 06-21-2018, 11:12 AM   #1
Acester25
LQ Newbie
 
Registered: Jun 2018
Posts: 3

Rep: Reputation: Disabled
Exclamation Printing to Windows 7 Pro from RHEL ES release 3 (taroon update 4) (very old!)


I'm having tons of problems trying to print to a Windows 7 Pro PC from Red Hat Enterprise Linux ES release 3 (Taroon Update 4). Yes, a very old version of Red Hat...

The printer is shared as "rectemp", the workgroup is workgroup, the PC has a static IP address, the PC sharename is "tbreg1".

It's a simple Generic Text Only printer... sending a test print from Windows (locally) works... Attempting to print from Linux to the printer on the Windows 7 PC does NOT work...

The printers.conf entry in /etc/cups is the following (I've tried all the DeviceURI's listed plus more that aren't listed... the one without the # is the one currently in place... as you probably know)...


<Printer receipt>
# DeviceURI smb://guest@WORKGROUP/tbreg1/rectemp
# DeviceURI smb://admin:<password>@WORKGROUP/tbreg1/rectemp
DeviceURI smb://guest@tbreg1/rectemp
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
Page Limit 0
KLimit 0
</Printer>

Smbtree does NOT show a shared printer... I only see the the PC share name...

[root@<user> cups] # smbtree -u guest
Password:
WORKGROUP
\\TBREG1
\\HP-20C20AIO
read_socket_with_timeout: timeout read. read error = Connection reset by peer.
failed negprot
[root@<user> cups] #


Also, smbclient -L tbreg1 gives the following...

[root@<user> cups] # smbclient -L tbreg1
Password:
Anonymous login successful
Domain=[WORKGROUP] OS=[Windows 7 Professional 7601 Service Pack 1] Server=[Windows 7 Professional 6.1]

Sharename Type Comment
--------- ---- -------
Error returning browse list: NT_STATUS_ACCESS_DENIED
Anonymous login successful
Domain=[WORKGROUP] OS=[Windows 7 Professional 7601 Service Pack 1] Server=[Windows 7 Professional 6.1]

Server Comment
------ -------
HP-20C20AIO
TBREG1

Workgroup Master
--------- ------
WORKGROUP TBREG1
[root@<user> cups] #

Smbstatus shows
[root@<user> cups] # smbstatus --shares

Samba version 3.0.7-1.3E.1
PID Username Group Machine
-------------------------------------------------------------

Service pid machine Connected at
----------------------------------------------------------
[root@<user> cups] #

Here's a command which alludes to the old RHEL ES release 3 server believing NetBIOS is not enabled on the PC... but the PC says it is...

[root@<user> cups] # smbclient -L 192.168.254.17 -U guest
Password:
Anonymous login successful
Domain=[WORKGROUP] OS=[Windows 7 Professional 7601 Service Pack 1] Server=[Windows 7 Professional 6.1]

Sharename Type Comment
--------- ---- -------
Error returning browse list: NT_STATUS_ACCESS_DENIED
session request to 192.168.254.17 failed (Called name not present)
session request to 192 failed (Called name not present)
session request to *SMBSERVER failed (Called name not present)
NetBIOS over TCP disabled -- no workgroup available (<--the workgroup is actually set to WORKGROUP and NetBIOS is enabled on the PC)
[root@<user> cups] #

If I try to print to the "receipt" printer from the linux server, the print job just gets stuck in the receipt print queue... it shows up when I do an lpstat -l -o...

My questions are:
1) Does anyone know how to get the old RHEL release 3 server to be able to send jobs to a Windows 7 Pro shared printer?
2) Is it possible to update samba and/or cups on this old Red Hat Enterprise Linux ES release 3 (Taroon Update 4) linux server? And if it is... Does anyone know which specific versions I can upgrade them to? And how do I install them?

Thanks for anyone's help!
Acester25
 
Old 06-26-2018, 12:36 AM   #2
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 3,049

Rep: Reputation: 500Reputation: 500Reputation: 500Reputation: 500Reputation: 500Reputation: 500
It looks like the Windows machine is set up to be a member of a domain rather than a workgroup...
Code:
[root@<user> cups] # smbclient -L tbreg1
Password:
Anonymous login successful
Domain=[WORKGROUP] OS=[Windows 7 Professional 7601 Service Pack 1] Server=[Windows 7 Professional 6.1]

Sharename Type Comment
--------- ---- -------
Error returning browse list: NT_STATUS_ACCESS_DENIED
Anonymous login successful
Domain=[WORKGROUP] OS=[Windows 7 Professional 7601 Service Pack 1] Server=[Windows 7 Professional 6.1]
From the RH machine, the following can be used to find domains...
Code:
smbtree -D
From the Windows server (via Windows command)...
Code:
net config workstation
A server configured with a workgroup should report something like
Code:
Workstation domain                  SERVER-1
while a domain member more like this...
Code:
Workstation Domain DNS Name          mydomain.co.nz
Logon domain                         MYDOMAIN
 
Old 06-26-2018, 05:49 AM   #3
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 3,049

Rep: Reputation: 500Reputation: 500Reputation: 500Reputation: 500Reputation: 500Reputation: 500
Another thought that I had is to make sure guest access is configured in the Windows 7 host. Guest access is usually fairly locked down (and for good security reasons), so you may need to review/adjust the guest settings....

https://www.techrepublic.com/blog/wi...-in-windows-7/
 
Old 06-26-2018, 06:29 AM   #4
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 3,049

Rep: Reputation: 500Reputation: 500Reputation: 500Reputation: 500Reputation: 500Reputation: 500
FWIW, I tried configuring a samba printer connected to a Windows 7 host and found that I could not get guest access working. I could print successfully with user account access though...
Code:
smb://user:password@servername/printername
This was also reflected in my attempts with smblient which worked with my configured user...
Code:
~> smbclient //probook001/Brother_DCP-7055 -U dean
Enter ******\dean's password: 
Try "help" to get a list of possible commands.
smb: \>
...but not with guest access (guest account was turned on). I haven't investigated this further.
Code:
~> smbclient //probook001/Brother_DCP-7055 -U guest
Enter ******\guest's password: 
session setup failed: NT_STATUS_NO_LOGON_SERVERS
 
  


Reply

Tags
cups, red hat, samba, windows 7


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Red Hat Enterprise Linux AS release 3 (Taroon Update 8) Installables gnanam_v Linux - Server 1 03-10-2010 08:01 AM
red hat 3 taroon update 8 techwar Red Hat 3 02-04-2010 10:44 PM
How to wwpn on Red Hat Enterprise Linux AS release 3 (Taroon Update 7) gurasalak Linux - Newbie 2 07-11-2009 08:02 AM
i want to install FTP on my Red hat Linux ES release 3(Taroon update 7). rachala2 Linux - Networking 2 01-19-2009 06:51 PM
2007 DST for Enterprise ES release 3 (Taroon) EddieNewYork Linux - Enterprise 1 03-08-2007 06:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 03:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration