LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 01-09-2004, 02:13 PM   #16
filipanu
LQ Newbie
 
Registered: Sep 2003
Distribution: Red Hat 9.0 (Shrike)
Posts: 8

Rep: Reputation: 0

Quote:
Originally posted by baldy3105
I played with this for quite a while and I found that you MUST have a password. It appears that Samba's idea of a blank password is not the same as Windows idea of a blank password. Create a new user "printer" with a password of "printer" and use these in the printer config box i.e

smb://printerrinter@hostname

this was the only way I could get around the NT Access denied message. You can stop this new user appearing in the log in screen on XP, in the control panel somewhere.

Cheers

Pete
In fact there is an security option in XP that by default disallows logging in remotely without a password.
You can change that by opening mmc, adding group policy then computer settings\windows settings\policy options\security options\Accounts: Allow local use of blank passwords only.
 
Old 01-09-2004, 02:59 PM   #17
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 876

Rep: Reputation: 184Reputation: 184
Good tip filipanu, you wanna watch that though, you might be suspected of being some sort of Windoze expert! They burn you at the stake around here for that (yes that was a joke chaps )

Last edited by baldy3105; 01-09-2004 at 03:00 PM.
 
Old 01-10-2004, 01:14 AM   #18
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Rep: Reputation: 30
I'm sry, really dunno
 
Old 01-16-2004, 08:04 PM   #19
kwunderlich
LQ Newbie
 
Registered: Dec 2003
Location: Chicago,IL
Distribution: RH8
Posts: 6

Rep: Reputation: 0
Figured one SAMBA issue out!

The response to windows and microsoft not seeing the equivalent blank password was part of the problem.

However, after reviewing my system I had 4 packages installed.
#rpm -qa | grep samba displayed:
samba-*
samba-swat-*
samba-common-*
samba-client-*

The samba-* and SWAT are print server services (in part). I removed SWAT.

if I issued the same command
#rpm -qa | grep samba

I get samba-common and samba client only.

Note: RPM is the Red Hat Package handler

Hope this helps. The test command above worked for me. Thanks all.
 
Old 03-14-2004, 04:24 PM   #20
sissipher
LQ Newbie
 
Registered: Mar 2004
Posts: 25

Rep: Reputation: 15
I have no idea how to get my printer to work either. I read this post and it just does not make sense as I don't understand command line that much. I have SuSE Pro 9.0 and I have my printer shared on my Windows XP machine. My windows machines can print fine to the printer. How can my SuSE machine print to the printer on the Windows XP machine? I do see the printing wizard in KDE/Yast but I never see the printer. There has to be an easy way since Windows was ever so simple and works. I would like to change over to SuSE because I have heard it is great, but if I can't even have my machine print to my windows printer, then why bother. Thanks in advance for the step by step help!!!
 
Old 03-15-2004, 07:45 AM   #21
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Rep: Reputation: 30
The easiest way is by using the KDE Printing Manager, you should be able to get it by clicking the KDE Menu -> settings -> Control Panel, then click on peripherals -> printers.
Next you click on the button which says 'administrator mode', fill in your root password and click ok.
Make sure the combo box at your right side is set on 'CUPS (Common UNIX Printing System'), then click on the first icon in the toolbar above. This should bring up a wizard.

From here you should be able to manage to configure the printer. If there are questions, just ask.

Greetingz and Succes,
elluva
 
Old 04-05-2004, 08:17 PM   #22
cjorli
LQ Newbie
 
Registered: Oct 2002
Location: US
Distribution: Fedora FC1
Posts: 16

Rep: Reputation: 0
I am able to see the shares and printer on my Server 2003 box:

Domain=[LOCAL] OS=[Windows Server 2003 3790] Server=[Windows Server 2003 5.2]
Sharename Type Comment
--------- ---- -------
faxclient Disk Microsoft Shared Fax Clients
tsweb Disk
clients Disk Windows Small Business Server Client Setup
IPC$ IPC Remote IPC
D$ Disk Default share
print$ Disk Printer Drivers
Resources$ Disk "Event logging files"
NETLOGON Disk Logon server share
HPDeskJe Printer HP DeskJet 880C
Share Disk
Users Disk Users Shared Folders
ClientApps Disk Windows Small Business Server Client Applications
F$ Disk Default share
Music Disk
ADMIN$ Disk Remote Admin
SYSVOL Disk Logon server share
FxsSrvCp$ Disk Common Fax Cover Pages Folder
VPLOGON Disk Symantec AntiVirus
C$ Disk Default share
VPHOME Disk Symantec AntiVirus
Address Disk "Access to address objects"
tsclient Disk
Domain=[ORLINET] OS=[Windows Server 2003 3790] Server=[Windows Server 2003 5.2]
Server Comment
--------- -------
SERVER
Workgroup Master
--------- -------
LOCAL SERVER


but receive the following error when I execute this command:

# echo "test" | smbclient //SERVER/HPDeskJe -P -U administrator -c 'print -'
ERROR: Unable to fetch machine password


"SERVER" and "LOCAL" are pseudonyms for my server and domain, I didn't want to pass that info along (;

Do i have the syntax wrong? or is it something else?
 
Old 04-06-2004, 04:48 PM   #23
cjorli
LQ Newbie
 
Registered: Oct 2002
Location: US
Distribution: Fedora FC1
Posts: 16

Rep: Reputation: 0
Never mind, I figured it out. This is what worked for me:

I ran the Gnome Print Manager in Fedora Core 1 and entered the following:

Selected "Networked Windows (SMB)"
Domain: DOMAIN
Share: //DOMAIN/printer
User: administrator
password: *************

Then I selected my printer from the pulldown menu, test print and it works fine. A lot easier than I first realized.
 
Old 04-12-2004, 12:47 AM   #24
linuxnoviate
LQ Newbie
 
Registered: Mar 2004
Distribution: Mandrake 9.2 10
Posts: 2

Rep: Reputation: 0
Printing from Linux to Windows XP local printer

Yipee, I finally got my local Mandrake 10 box printing to my HP Deskjet attached to my Windows XP box.

A painful process that doesn't appear to be overly well documented. Along the way I encountered lot of NT_STATUS_ACCESS_DENIED problems, basically windows telling CUPS to piss off because it didn't have adequate permissions.

Key Changes I made to get my printer working:
a) On Windows XP, enable the Guest User account from control panel
b) On Windows XP, create a share name for the printer as hpdeskjet
c) On KDE Printing Manager (a neat interface for CUPS), firstly set the Configuration Owner to be ROOT
d) On KDE Printing Manager, created new printer with User Identification set to Guest,
e) On KDE Printing Manager, set Domain = MSHOME, server=myXPboxname, printer=hpdeskjet all of which generated a URI of smb://MSHOME/myXPboxname/hpdeskjet
A bit of messing around with password dialogues but I have been able to replicate the process.

Life shouldn't be this painful
 
Old 04-20-2004, 03:14 AM   #25
brasshopper
LQ Newbie
 
Registered: Apr 2004
Location: Boca Raton, Florida
Distribution: Fedora/Redhat
Posts: 8

Rep: Reputation: 3
This is a bug

Internally, the various elements that print on SMB printers in Linux (CUPS, lprNG) use a command called

smbspool

which is a part of samba. This is the formal interface from samba to the world of windows printing - that is, this is the package that printer spoolers are supposed to use to get your data to the windows box. This package does nothing about getting the data into the right format for your system. That is handled by other programs. smbspool is just a transport pprogram.

This command takes a printer location in the form of a "URL"

The URL looks like

smb://[userid[:password]][/workgroup]/systemname/share

Where the workgroup is optional, as is the userid and password. Details are on the smbspool man page. I have indicated optional parts by enclosinbg them in square braces, and the square braces are not actually entered.

I believe that there is a bug (which Redhat knows about, there is a bug opened in Bugzilla) I posted a workaround for. Seems that he smbspool command has a bug - when your printer is open for all comers to print on, (and maybe when the printer is defined on XP) the smbspool can't connect to it.

But if you specify a userid, any userid, even one that does not exist, smbspool does not have trouble connecting.

Thus, you can specify the userid guest, even if the guest userid is not defined on the windows system or the Linux system, and it will work.

If you defined the printer directly to CUPS, then edit the printer and access the screen whereupon the url was defined.

Add

guest@ to the url right after the double slash so that it looks like:

smb://guest@systemname/queuename

By using smbspool directly, you can determine if you have solved the access problem at least.

Try

smbspool smb://SYSTEM/queue 1 user title '' 1 /path/to/small/file

smbspool smb://WORKGROUP/SYSTEM/queue 1 user title '' 1 /path/to/small/file

smbspool smb://guest@WORKGROUP/SYSTEM/queue 1 user title '' 1 /path/to/small/file

Where you should substitute your real workgroup name and system name for the ones that are in the example command lines above.

If you defined the printer using redhat-config-printers then edit the printer using that same program and use the "queue type" tab to add a username.

I have a Windows 2000 system which I have locked down - it denies access to the browse list for example, and to print to that system I must specify a real userid, as must I also for accessin a printer on the system. Part of the lockdown was disabling the guest account.

However, XP applies a different semantic to the whole filesharing/device sharing issue. And it is my belief that Samba has not yet been changed to deal with it. For example, to access open shares on XP I have to specify a userid.

There may well be multiple issues at work here, but the access issues should be fixable by specifying a bogus userid, or a real one wirh a password.

Good luck and let us know how it goes.
 
  


Reply


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
Printing to a shared XP printer nyumedic2000 Linux - Newbie 1 05-17-2005 09:46 PM
Printing to a Windows Shared printer rwillard Linux - Newbie 8 03-17-2005 10:05 AM
Print from a winxp shared printer on Solaris9.0 UltraSoul Solaris / OpenSolaris 4 02-18-2005 11:30 AM
Printing to Win2K shared Printer pstoddard Linux - Wireless Networking 1 05-15-2004 03:13 AM
Printing to WinXP shared printer from Linux? DStar Linux - Networking 6 12-25-2003 12:24 PM


All times are GMT -5. The time now is 05:47 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration