[Samba] Trouble with CUPS/SAMBA
Bo Mellberg
bo.mellberg at jolife.se
Mon Jun 23 08:34:12 GMT 2003
Hi all,
I'm new to this list, as to SAMBA, and I'm
struggling with getting a printer to work
as a shared printer in a Windows network
with a redhat 9 server.
The printer is a HP 4550 Color LaserJet, installed
with CUPS to the server, via JetDirect (port 9100).
It prints testpages fine from the Linux-server. It
was installed with the install-printer-utility in
RedHat9.
I have then shared the printer via samba, to be
able to access it from the Windows machines (2000, XP).
It shows up fine, and accept print jobs, but nothing
happens after the jobs has been processed, and no
errors are being generated.
I would be grateful for any help.
/Bo Mellberg
cupsd.conf:
LogLevel info
MaxLogSize 0
Printcap /etc/printcap
PrintcapFormat BSD
RequestRoot /var/spool/cups
TempDir /tmp
AuthType None
<Location /admin>
AuthType Basic
AuthClass System
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
</Location>
<Location /printers/hp4550>
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
AuthType None
Allow from All
</Location>
<Location />
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
</Location>
Browsing On
BrowseProtocols cups
BrowseOrder Deny,Allow
BrowseAllow from @LOCAL
BrowseAddress 255.255.255.255
Listen *:631
smb.conf:
[global]
workgroup = jolife
server string = samba server
hosts allow = 192.168.1. 127.
printing = cups
printcap = cups
load printers = yes
; guest account = pcguest
log file = /var/log/samba/%m.log
max log size = 0
; password server = <NT-Server-Name>
; password level = 8
; username level = 8
smb passwd file = /etc/samba/smbpasswd
; ssl CA certFile = /usr/share/ssl/certs/ca-bundle.crt
unix password sync = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n
*passwd:*all*authentication*tokens*updated*successfully*
pam password change = yes
; username map = /etc/samba/smbusers
; include = /etc/samba/smb.conf.%m
obey pam restrictions = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
; remote browse sync = 192.168.3.25 192.168.5.255
; remote announce = 192.168.1.255 192.168.2.44
; local master = no
; os level = 33
domain master = yes
; preferred master = yes
; domain logons = yes
; logon script = %m.bat
; logon script = %U.bat
; logon path = \\%L\Profiles\%U
; wins support = yes
; wins server = w.x.y.z
; wins proxy = yes
username map = /etc/samba/smbusers
encrypt passwords = yes
guest ok = yes
dns proxy = no
; preserve case = no
; short preserve case = no
; default case = lower
; case sensitive = no
[homes]
comment = Home Directories
browseable = no
writeable = yes
valid users = %S
create mode = 0664
directory mode = 0775
; map to guest = bad user
; [netlogon]
; comment = Network Logon Service
; path = /usr/local/samba/lib/netlogon
; guest ok = yes
; writable = no
; share modes = no
;[Profiles]
; path = /usr/local/samba/profiles
; browseable = no
; guest ok = yes
[printers]
comment = All Printers
path = /var/spool/samba
public = yes
guest ok = yes
printable = yes
printer admin = root, @ntadmins
;[tmp]
; comment = Temporary file space
; path = /tmp
; read only = no
; public = yes
;[public]
; comment = Public Stuff
; path = /home/samba
; public = yes
; writable = yes
; printable = no
; write list = @staff
;[fredsprn]
; comment = Fred's Printer
; valid users = fred
; path = /home/fred
; printer = freds_printer
; public = no
; writable = no
; printable = yes
;[fredsdir]
; comment = Fred's Service
; path = /usr/somewhere/private
; valid users = fred
; public = no
; writable = yes
; printable = no
;[pchome]
; comment = PC Directories
; path = /usr/local/pc/%m
; public = no
; writable = yes
;[public]
; path = /usr/somewhere/else/public
; public = yes
; only guest = yes
; writable = yes
; printable = no
;[myshare]
; comment = Mary's and Fred's stuff
; path = /usr/somewhere/shared
; valid users = mary fred
; public = no
; writable = yes
; printable = no
; create mask = 0765
[jolife shared]
comment = Shared Jolife documents
path = /home/jolife/
writeable = yes
guest ok = yes
[bosse]
comment = Bosses documents
path = /home/bosse
valid users = bosse
writeable = yes
[lennart]
comment = Lennarts documents
path = /home/lennart
writeable = yes
valid users = lennart
[martin]
comment = Martins documents
path = /home/martin
writeable = yes
valid users = martin
[peter]
comment = Peters documents
path = /home/peter
writeable = yes
valid users = peter
[semmy]
comment = Semmys documents
path = /home/semmy
writeable = yes
valid users = semmy
[steven]
comment = Stevens documents
path = /home/steven
writeable = yes
valid users = steven
cups error_log:
E [23/Jun/2003:09:51:31 +0200] Scheduler shutting down due to SIGTERM.
E [23/Jun/2003:09:51:31 +0200] Unknown directive AuthType on line 729.
I [23/Jun/2003:09:51:31 +0200] Sending browsing info to ffffffff:631
I [23/Jun/2003:09:51:31 +0200] Listening to 0:631
I [23/Jun/2003:09:51:31 +0200] Configured for up to 100 clients.
I [23/Jun/2003:09:51:31 +0200] Allowing up to 10 client connections per
host.
I [23/Jun/2003:09:51:31 +0200] LoadPPDs: Read "/etc/cups/ppds.dat", 13
PPDs...
I [23/Jun/2003:09:51:31 +0200] LoadPPDs: No new or changed PPDs...
I [23/Jun/2003:09:51:47 +0200] Job 30 queued on 'hp4550' by 'bosse'.
I [23/Jun/2003:09:51:47 +0200] Started filter
/usr/lib/cups/filter/cupsomatic (PID 32466) \
for job 30.
I [23/Jun/2003:09:51:47 +0200] Started backend /usr/lib/cups/backend/socket
(PID 32467) fo\
r job 30.
I [23/Jun/2003:10:02:06 +0200] Job 31 queued on 'hp4550' by 'bosse'.
I [23/Jun/2003:10:02:06 +0200] Started filter
/usr/lib/cups/filter/cupsomatic (PID 335) fo\
r job 31.
I [23/Jun/2003:10:02:06 +0200] Started backend /usr/lib/cups/backend/socket
(PID 336) for \
job 31.
More information about the samba
mailing list