LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-16-2004, 09:53 PM   #1
tank728
Member
 
Registered: Sep 2003
Posts: 142

Rep: Reputation: 17
More Samba questions


Sorry for posting the same topic again, but nothing I have done throughout my research has worked. I am trying to set up Samba on my Slack9.1 box(server). So far I have successfully set it up as a file server. My windows clients can sucessfully connect and write and delete files as necessary. The problem comes with my hp932c printer. I have it set up with cups. From the server I can print and the quality looks goot. I can not print from my other windows boxes tho. I can see it in "My Network Places". I even installed the mofo. Here is my /etc/samba/smb.conf

[global]
security = share
workgroup = WORKGROUP
guest account = nobody
printing = cups
printcap = cups
load printers = yes
log file = /var/log/samba-log.%m
lock directory = /var/lock/samba

[Shared]
comment = Shared
path = /home/shared
guest ok = yes
writeable = yes
printable = no
public = yes

[printers]
comment = Downstairs
browseable = yes
printable = yes
public = yes
create mode = 0700
guest only = yes
use client driver = yes
guest account = smbprint
path = /var/spool/cups


I have a user named smbprint w/o a password, and have executed this command smbpasswd -a smbprint and every thing went well. I have also uncommented the following lines from the following files.
/etc/cups/mime.convs:
application/octet-stream application/vnd.cups-raw 0 -

/etc/cups/mime.types:
application/octet-stream

I have also slightly modified my /etc/cups/cupsd.conf file like this
<Location />
Deny From All
Allow From 127.0.0.1
Allow From All
</Location>

I have been at this for quite some time and I have a feeling it is the littlest thing in the world. Any help would be appreciated, from what I have read alot of you have got this to work, I just can seem to get it together. Thanks alot.
 
Old 04-17-2004, 12:32 AM   #2
AutOPSY
Member
 
Registered: Mar 2004
Location: US
Distribution: Redhat 9 - Linux 2.6.3
Posts: 836

Rep: Reputation: 31
<Location />
Deny From All
Allow From 127.0.0.1
Allow From All
</Location>

This may be causing not being able to print from anywhere.
Or am I on the wrong track here. ?
 
Old 04-17-2004, 11:20 AM   #3
tank728
Member
 
Registered: Sep 2003
Posts: 142

Original Poster
Rep: Reputation: 17
Thanks, I'll look in to it. I all so edited my /etc/cups/cupsd.conf it now looks like this:

<Location />
Order Deny, Allow
Deny From None
Allow From 127.0.01
Allow From All
</Location>

<Location /printers>
AuthType None
Order Deny, Allow
Deny From None
Allow From All
</Location>

AutOPSY thanks for your help. Does anyone else have any ideas.

-tank
 
Old 04-17-2004, 05:04 PM   #4
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
i may be off track here, but, do you have the samba backend for cups?

ls -l /usr/lib/cups/backend/smb

if the file isn't there, then create it

ln -s `which smbspool` /usr/lib/cups/backend/smb

restart the daemon. hope that helps.
good luck.
 
Old 04-18-2004, 11:20 AM   #5
tank728
Member
 
Registered: Sep 2003
Posts: 142

Original Poster
Rep: Reputation: 17
PEACEDOG, yes I have that file, it is a symlink to /usr/bin/smbspool. What does this do?

-tank
 
Old 04-18-2004, 05:12 PM   #6
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,091

Rep: Reputation: 41
if you can see the printer on the linux machien from the win machine... then add this line under global in xmb.conf

use client driver = yes

this tells the client to provide the driver, otherwise you can load the printer you just wont be able to print to it.
 
Old 04-21-2004, 04:38 PM   #7
tank728
Member
 
Registered: Sep 2003
Posts: 142

Original Poster
Rep: Reputation: 17
Thank you for your previous replies, but I have completely rewritten by smb.conf. Here it is:
Code:
[global]
security = SHARE
workgroup = WORKGROUP
guest account = nobody
printer command = lpr-cups -r -P'%p' %s
lpq command = lpq-cups -P'%p'
lprm command = lprm-cups -P'%p' %j
printing = cups
log file = /var/log/samba/samba-log.m%m
load printers = Yes

[hp932]
path = /var/spool/samba
guest ok = Yes
printable = Yes
use client driver = Yes

[Shared]
comment = Shared
path = /home/shared
public = Yes
writeable = Yes
guest account = Yes
With this new smb.conf I can install the printer on my windows boxes. Then I go to properties and click print test page I wait a little bit and a box comes up saying A test page is now being sent to your printer ya da ya ya. From here I can click Ok mean the page printed, or troubleshoot. I am at a loss here peopele. If you fellas have any other suggestions let me know. As always thanks for the help.

-tank

Last edited by tank728; 04-21-2004 at 04:42 PM.
 
Old 04-21-2004, 05:57 PM   #8
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
OK, I could be way off base (since I have to use Samba to connect to a printer on a Windoze box and not the other way around), but....

... are the users who are trying to print from Windows authorized Samba users? Meaning, have they been added to smbpasswd using the -a and -e options? That's the only thing left I can think of that might be the problem. You might also have to make them users on your Linux box (using the same username and password as Windows)... sometimes Samba doesn't seem to like unknown users being added to its authorization list.

Hope this helps.
 
Old 04-21-2004, 07:47 PM   #9
tank728
Member
 
Registered: Sep 2003
Posts: 142

Original Poster
Rep: Reputation: 17
Thank you for the quick reply. I just tried it now that you mentioned it, and here is the exact command I typed:
Code:
smbpasswd -a -e First\ Last password
The user name and password that I enter was that of my window box correct? I get this error after I type that:
Code:
Failed to Initialise SAM_ACCOUNT for user First Last
Failed to modify password entry for user First Last
Should I just try to add them as actual user to the system via adduser? Is it going to have a problem with my windows user names having spaces in them. Because my windows user names (and this is what I enter above) "First Last". First and Last being my real name.

-tank

Last edited by tank728; 04-21-2004 at 07:49 PM.
 
Old 04-24-2004, 06:31 AM   #10
wwpusa
LQ Newbie
 
Registered: Sep 2003
Location: Georgia, USA
Distribution: SLACKWARE SLACKWARE and SLACKWARE !!
Posts: 21

Rep: Reputation: 15
yes the smb user must first be a local user, then do smbpasswd (user). don't forget also to smbpasswd -e (user) to enable that user.
 
  


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] some questions billiejoex Linux - Software 10 10-31-2005 01:04 PM
Samba Questions robertwolfe Debian 6 07-13-2005 10:50 AM
Samba questions subaruwrx Linux - Networking 13 07-16-2004 07:06 AM
Samba Questions Flipn Linux - Newbie 1 11-12-2003 11:51 AM
Questions about Samba 3? gsmonk Linux - Networking 0 08-08-2003 11:53 AM

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

All times are GMT -5. The time now is 10:22 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