Unable to connect to network printer after Win 7 Install (Solved)

Laptop


## Browsing/Identification ###

# Change this to the workgroup/NT-domain name your Samba server will part of
   workgroup = WORKGROUP

# server string is the equivalent of the NT Description field
   server string = %h server (Samba, Ubuntu)

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable its WINS Server
#   wins support = no

# 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 = w.x.y.z

# This will prevent nmbd to search for NetBIOS names through DNS.
   dns proxy = no

Chloes PC

#======================= Global Settings =======================

[global]

## Browsing/Identification ###

# Change this to the workgroup/NT-domain name your Samba server will part of
   workgroup = WORKGROUP

# server string is the equivalent of the NT Description field
   server string = %h server (Samba, Ubuntu)

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable its WINS Server
#   wins support = no

# 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 = w.x.y.z

# This will prevent nmbd to search for NetBIOS names through DNS.
   dns proxy = no

You could try adding wins to /etc/nsswitch.conf

hosts:          files wins mdns4_minimal [NOTFOUND=return] dns mdns4

In my experience this helps with name resolving.
Can the Win7 machine see the other (non win) machines on the network?

if you go to:
smb://
in pcnmanfm

does it still prompt for a password ?

does it do this from Chloes ?

Yeh, adding wins might also help … I haven’t personally had to do this since Ubuntu 10.xx, but it used to help

hosts: files wins mdns4_minimal [NOTFOUND=return] dns mdns4

I tried that still no joy

does it still prompt for a password ?

Yes but it doesn’t ask for a password on any of the the other 2 PC’s

Can the Win7 machine see the other (non win) machines on the network?

Yes they’re listed under “Network” , when I open either PC icon all the shared printers are listed

Another strange thing that might be significant is in the add printer dialogue box it’s showing the PC’s as printers, see screenshot

Linux 2 = Chloe, Linux3 = Graeme

Try this:-

Make the hosts line in /etc/nsswitch.conf read:-

hosts:          files mdns4_minimal [NOTFOUND=return] wins dns mdns4

and install winbind:

sudo apt-get install winbind

Dose the windows box see the Linux boxes?

Hi Tramlink

Dose the windows box see the Linux boxes?

Yes they’re listed under “Network” , when I open either PC icon all the shared printers are listed

I am told by a friend that the version of Win7 can impact on the way it interfaces with other computers what version are you using?
is it a wired or wi-fi system?

Can you remember what the XP box was called?

Did I miss something which computer is the printer connected to?

@ Emegra

Have you tried my last response yet ?

Have you tried my last response yet ?

Sorry Mark I was working late

Ok sorted or at least I think it is I did what you suggested and it all went perfectly and I was able to a test print, but I get this message in the Printer status "
Idle - Session setup failed: NT_STATUS_LOGON_FAILURE" it didn’t stop it printing so I can live with that.

Also the Win7 PC has a habit of logging off and sitting on the login screen and I can’t connect until I log in which is a bit unhandy for connecting with a laptop but I should be able to change something to stop the Win 7 PC logging off

Hi tramlink thanks for your input, It looks like we’ve got it working, but to answer your questions the printer is connected to a Windows 7 PC (ultimate version) and i was trying to connect to it via wIfI

Many thanks

Graeme

Pleased to hear you got it working.

Just discovered another wee problem

If I try to print a document I’m prompted for a password (see screenshot) , it,s not a huge problem I can live with it but I’d prefer not to :slight_smile:

Graeme

There’s something mighty odd going on here … that “NT_STATUS_LOGON_FAILURE” is usually caused by the workgroup of the Linux box being different to the Windows box … that would also be why you’re being asked to log in to print.

Here’s the odd bit … workgroup = WORKGROUP is the same on the laptop and Chloe’s PC

[EDIT]

add to that, I’d have expected nsswitch.conf to have already contained the mdns stuff on the host line ???

Maybe not so odd, I just checked there and Chloe’s PC is asking for a password as well it never done that when the printer was attached to Win XP machine

I’ve just spotted another difference between Chloes nsswitch.conf and the laptops …

This is Chloes:-

# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd:         compat
group:          compat
shadow:         compat

hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       nis

The laptops is missing the

nis

from the “netgroup:” line

can you run:

sudo gedit /etc/nsswitch.conf

and add that.

Then reboot, and see if it still prompts for a password.

If I’m right, we may be able to remove winbind and the wins from nsswitch.conf too.

I take it you meant on the laptop, if so that line is there.


 /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd:         compat
group:          compat
shadow:         compat

hosts:          hosts:          files mdns4_minimal [NOTFOUND=return] wins dns mdns4
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       nis
hosts:          files wins mdns4_minimal [NOTFOUND=return] dns mdns4

Can you not enter the authentication details here:-

http://1-ps.googleusercontent.com/h/www.liberiangeek.net/wp-content/uploads/2012/04/591x481xwindows_precise_printer_2_thumb.png.pagespeed.ic.8AiC742KjU.png

Yeah that works, I never thought to do that, but then I’ve never had to before :slight_smile:

:slight_smile: