Solved

Samba Printer on XP Home, password

Posted on 2004-09-27
15
191 Views
Last Modified: 2010-03-18
I've recently bought a new laptop, which legitimately has a copy of XP Home licensed and installed.  There are advantages and disadvantages of home, but at this point upgrading to pro is out of the question.

I have a server machine at home, running linux, with samba sharing out many files and a printer to my windows machines.  This all works flawlessly from my old machines, running 98SE and 2000 Pro.  My new machine with xp home cannot access the printer.  I can install it, I can try to print to it, but it never works.

It never asks for a password, at any point, when I connect to this printer.  This printer, as everything on my network, is password protected.  How can I make xp home use a username&password to connect to a printer?
0
Comment
Question by:arantius
  • 8
  • 7
15 Comments
 
LVL 18

Expert Comment

by:crissand
ID: 12161829
If you have ICS or WF enabled you must open port 139/TCP. Or, if it's a local network, you can disable any firewall.
0
 
LVL 18

Author Comment

by:arantius
ID: 12162105
This is not in any way related to a firewall, both machines are directly connected on a network.

The problem is that though xp home can see and "access" the printer, it never asks me for a password.  I assume it does not supply a password, and access to the printer is denied.
0
 
LVL 18

Expert Comment

by:crissand
ID: 12162132
Use the account from another machine to connect to the printer. Do you have a blank password?
0
Simple, centralized multimedia control

Watch and learn to see how ATEN provided an easy and effective way for three jointly-owned pubs to control the 60 televisions located across their three venues utilizing the ATEN Control System, Modular Matrix Switch and HDBaseT extenders.

 
LVL 18

Author Comment

by:arantius
ID: 12163992
No it is not blank.  The printer works, as I said, from 98SE and 2K.
There's no "the account" on another machine, I have no domain.
0
 
LVL 18

Expert Comment

by:crissand
ID: 12169081
I have to see the samba config file.
0
 
LVL 18

Author Comment

by:arantius
ID: 12172392
I reiterate that the printer, and samba, work perfectly.  The issue is only that I cannot type in a password to use, so I am denied access as I have never supplied the password.

smb.conf:

[global]
        workgroup = INSANE ASYLUM
        netbios name = PARANOID
        server string =
        interfaces = 127.0.0.1, 192.168.1.254
        #bind interfaces only = Yes
        encrypt passwords = Yes
        log level = 4
        log file = /var/log/samba/log.%m
        max log size = 50
        deadtime = 10
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        show add printer wizard = No
        os level = 65
        lm announce = No
        preferred master = Yes
        domain master = No
        printer admin = t-bone
        create mask = 0640
        directory mask = 0750
        hosts allow = 127.0.0.1, 192.168.1.
        printing = cups

[t-bone]
        path = /home/t-bone
        username = t-bone
        valid users = t-bone
        force user = t-bone
        read only = No

[htdocs]
        path = /var/www/localhost/htdocs
        valid users = apache,t-bone
        force user = apache
        force group = apache
        read only = No

[www]
        path = /home/www
        valid users = www,t-bone
        force user = www
        force group = apache
        read only = No

[printers]
        path = /var/spool/samba
        printable = Yes
        browseable = No
0
 
LVL 18

Expert Comment

by:crissand
ID: 12178719
The samba config looks well. But there are accounts on w98 and w2k, these are local accounts. Also windows xp has integrated firewall, which is by default active and is blocking the printing port. My guess is the forewall on the xp is active, since there are no problem with samba configuration.

Anyway, since I found that line is missing add the following

use client driver = Yes

under

[printers] section

Sometimes for XP this line is requested.

0
 
LVL 18

Author Comment

by:arantius
ID: 12185276
Added use client driver, no help.
Disabled firewall, no help.

I still say the problem is the fact that I am never typing in a password.  Perhaps someone can help me with that?
0
 
LVL 18

Expert Comment

by:crissand
ID: 12188910
What are the logon user name on every computer? The one that can printer the the one that cannot print.
0
 
LVL 18

Author Comment

by:arantius
ID: 12192824
all the same, t-bone
0
 
LVL 18

Expert Comment

by:crissand
ID: 12198958
Ok, this is the only user that can print. Now, is the password the same on all three computers?
0
 
LVL 18

Author Comment

by:arantius
ID: 12201372
there is no password in 9x, and it works.
password on linux and xp home is the same
0
 
LVL 18

Accepted Solution

by:
crissand earned 125 total points
ID: 12201443
Then let's look at the samba's log: /var/log/samba/log.%m, where %M is replaced by the name of the machine. But I remember you cannot have a user with or without password. Try a blank password on the xp machine.
0
 
LVL 18

Author Comment

by:arantius
ID: 12203182
Extremely strange.  After viewing the log (I should have from the begninning!) I saw a permission error.  /var/spool/samba/ to 777 and it works.  Now I get to fix it better than that.
0
 
LVL 18

Expert Comment

by:crissand
ID: 12226069
I'm glad you solved the problem.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes you might need to configure routing based not only on destination IP address, but also on a combination of destination IP address (or hostname) and destination port number. I will describe a method how to accomplish this with free tools. …
Have you ever set up your wireless router at home or in the office to find that you little pop-up bubble in the bottom right-hand corner of Windows read "IP Conflict - One of more computers on the network have been assigned the following IP address"…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question