LinuxQuestions.org
Visit Jeremy's Blog.
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 07-11-2003, 11:19 AM   #1
anomaly
LQ Newbie
 
Registered: Jul 2003
Posts: 1

Rep: Reputation: 0
Cannot Print to Samba Server


I have a Redhat 8.0 server setup running Samba 2.2 I have shared a few directories and can read/write to those fine on my client WinXP machines. I have setup users and passwords for each WinXP client.

I can see the printer(Brother 1230) I have shared, but when I try to print a test page, nothing happens. In the bottom left corner on the client machine, it says "Access denied, unable to connect". Can anyone help? I can print locally on the Linux machine fine. Here is my smb.conf file:

[global]
log file = /var/log/samba/%m.log
load printers = yes
smb passwd file = /etc/samba/smbpasswd
guest account = abarnett
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
obey pam restrictions = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
null passwords = yes
encrypt passwords = yes
public = yes
passwd program = /usr/bin/passwd %u
dns proxy = no
netbios name = AGJ_SERVER
server string = Samba Server
printing = cups
path = /var/spool/samba
unix password sync = yes
workgroup = AGJSYS
os level = 20
printcap name = lpstat
security = user
preferred master = no
max log size = 0
pam password change = yes

[homes]
comment = Home Directories
browseable = no
writable = yes
valid users = %S
create mode = 0664
directory mode = 0775
# If you want users samba doesn't recognize to be mapped to a guest user
; map to guest = bad user


# Un-comment the following and create the netlogon directory for Domain Logons
; [netlogon]
; comment = Network Logon Service
; path = /usr/local/samba/lib/netlogon
; guest ok = yes
; writable = no
; share modes = no


# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
;[Profiles]
; path = /usr/local/samba/profiles
; browseable = no
; guest ok = yes


# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[printers]
comment = All Printers
printable = yes
guest ok = yes
browseable = yes
public = yes
create mode = 0700

[COMMON]
comment = Common Folder for all Common Files
path = /common
 
Old 07-12-2003, 05:25 PM   #2
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
In the [printers] share, you do not have a path option.
When a print job arrives at a Samba server, the print data needs to be written to disk.
Add the following line.

path = /var/spool/samba

Also, I noticed you did not have a 'hosts allow', although I don't remember if the default is denied all.
example: hosts allow = 192.168.1. 192.168.2. 127.


Consider reading the SMB HOWTO
http://www.linux.org/docs/ldp/howto/SMB-HOWTO.html
 
Old 07-15-2003, 06:59 AM   #3
clk777
LQ Newbie
 
Registered: Apr 2002
Location: london (uk)
Distribution: redhat
Posts: 10

Rep: Reputation: 0
In the [printers] section add the following line below it sounds odd but it worked for me:

use client driver = yes

I hope this works
 
  


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
Find The Bloat! Samba file-print server! Randall Slack Slackware 7 09-13-2005 05:10 PM
Samba Print Server, Modifying Documents NickCoons Linux - Networking 0 08-27-2005 12:39 PM
Unable to print over network to Slackware 10 Server using Samba v3.0.5 DaneM Linux - Networking 6 02-04-2005 02:10 AM
Samba 3.0 WinNT / domain print server deadlock Linux - Networking 9 10-21-2003 08:19 AM
Setting up a Samba network Print Server sancho5 Linux - General 1 02-01-2002 04:34 PM

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

All times are GMT -5. The time now is 01:52 PM.

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