LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-03-2002, 05:02 PM   #1
sjr
Member
 
Registered: Oct 2002
Location: Maryland
Distribution: SUSE 10.1 and 10.2
Posts: 44

Rep: Reputation: 15
Samba printing help!!


I'm having trouble printing from a Windows box (both ME and 98SE) to a printer attached to my Mandrake Linux box. When I turn on Samba logging, I get the following messages:

[2002/10/03 17:45:05, 1] smbd/service.c:make_connection(640)
dell-steve (192.168.1.102) connect to service hpprinter as user nobody (uid=99
, gid=99) (pid 5434)
[2002/10/03 17:45:05, 2] lib/access.c:check_access(329)
Allowed connection from (192.168.1.102)
[2002/10/03 17:45:05, 2] smbd/password.c:pass_check_smb(575)
pass_check_smb failed - invalid password for user [steve]
[2002/10/03 17:45:07, 2] lib/access.c:check_access(329)
Allowed connection from (192.168.1.102)
[2002/10/03 17:45:07, 2] smbd/password.c:pass_check_smb(575)
pass_check_smb failed - invalid password for user [steve]

I've got security = SHARE, guest user is set to nobody, and guest ok for the printer is set to yes. I'm logged in to the Windows box as user "steve", but why is it trying to look up steve's password, when it's connecting to hpprinter as user nobody?

Users "steve" and "nobody" are both defined in passwd and smbpasswd. I've tried various passwords (the Windows steve's password and the Linux steve's password) for "steve" in smbpasswd, with no effect.

Here's my smb.conf:

# Samba config file created using SWAT
# from localhost.localdomain (127.0.0.1)
# Date: 2002/10/03 17:21:46

# Global parameters
[global]
netbios name = DELL
security = SHARE
encrypt passwords = Yes
log level = 2
log file = /var/log/samba/log.%m
max log size = 50
message command = /usr/bin/linpopup "%f" "%m" %s; rm %s &
hosts allow = 192.168.1. 127.

[hpprinter]
path = /var/spool/samba
guest ok = Yes
printable = Yes

[C]
comment = Dell C drive
path = /mnt/win_c
guest ok = Yes

I have no problems connecting with the "C" share.

Any help would be greatly appreciated!
 
Old 10-04-2002, 12:08 PM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
So "steve" is the Windows logon/pc name on the Win pc?

Regards,
Peter

Last edited by peter_robb; 10-04-2002 at 12:09 PM.
 
Old 10-04-2002, 08:21 PM   #3
sjr
Member
 
Registered: Oct 2002
Location: Maryland
Distribution: SUSE 10.1 and 10.2
Posts: 44

Original Poster
Rep: Reputation: 15
Smile I figured it out

Sorry to bother you all. Problem solved. I needed to make a couple of changes: set "guest only = yes" in the [printers] section of smb.conf, and define a separate printer in CUPS, defined as a raw printer (and set up the Windows printer to use that new share). Then everything worked.

By the way, this problem started when I upgraded from Mandrake 8.1 to 9.0. Mandrake 8.1 had Samba 2.2.1a, and Mandrake 9.0 has Samba 2.2.6pre2. I didn't change a thing in smb.conf, and suddenly the printer didn't work anymore after the upgrade. But that's ok; it works, and I can feel good about overcoming another Linux hurdle and learning something in the process.

- Steve
 
  


Reply



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
Samba Printing garr0323 Linux - Newbie 1 10-24-2003 06:38 AM
Samba printing leonardox Linux - Networking 1 08-30-2003 11:49 PM
samba printing haydn Linux - Networking 2 07-29-2003 09:18 AM
samba printing bmcneely0 Linux - Networking 14 07-20-2003 07:07 AM
printing + samba? aeshley Linux - Newbie 1 06-22-2002 10:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:58 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
Open Source Consulting | Domain Registration