Hi
i have a linux mandrake 7.2 server
using cups
I am triying to use samba for printig
but it is not working
this is my smb.conf file
;*******************section global*****************
[global]
workgroup = KVJ
server string = Samba Server %v
printcap name = cups
load printers = yes
printing = cups
log file = /var/log/samba/log.%m
max log size = 50
security = user
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = no
hosts allow = 192.168.0. 127.0.0.
netbios aliases = printer
smb passwd file = /etc/smbpasswd
encrypt passwords = no
interfaces = 192.168.0.1/24 127.0.0.1/24
local master = yes
bind interfaces only = yes
;*******************section homes*****************
[homes]
comment = Home Directories
browseable = no
writable = yes
;*******************section printers*****************
[printers]
comment = All Printers
path = /var/spool/samba
browseable = yes
guest ok = yes
writable = no
printable = yes
create mode = 0700
print command = lpr-cups -P %p %s
lpq command = lpstat -o %p
lprm command = cancel %p-%j
;****************************************************
[cdrom]
path = /mnt/cdrom
root preexec = mount /mnt/cdrom
root postexec = umount /mnt/cdrom
comment = Unidad CDROM del Servidor
guest ok = yes
public = yes
browseable = yes
--------------------------------------
please help me
i don't know what i am doing wrong
my network ips are : 192.168.0.1-20
my server ip : 192.168.0.1
thanks
Wenceslao Hernandez C.
Hi Wenceslao,
first check if samba is compiled in with cups support:
You can check it with this command:
ldd /usr/sbin/smbd
It shows you which library's will be loaded by samba, and cups should be
there as a library. If libcups is not there, downloaded samba sources and
compile samba with cups support. If you do a configure make sure cups is
running on the machine where you do your compilation, cups support will not
be supported if cups was not running!
I had to add this options in my [global] section
printing = cups
printcap name = cups
load printers = yes
That's just it. From what I can see now, cups is just not supported in
samba.
Are you seeing your printers in the browselist? If so, cups is supported but
cups is doing something strange.
Did you add a user to the lp and/or lpadmin groups?
If a user here is not added to the lp group, the print job is silantly delete.
Ries
thanks for your help now my winodws clients can see all the shares in the samba server but the problem is in the server side when i send a page to printer the things appear to be good but nothing is printing in the server i hace this messages when run smbstatus : [root@jupiter /home]# smbstatus Samba version 2.0.7 Service uid gid pid machine ---------------------------------------------- lp whc xgrp 3258 station10 (192.168.0.110) Fri Apr 13 04:48:49 2001 Can't create or use IPC area. Error was El fichero existe ERROR: Failed to initialise share modes Can't initialise shared memory - exiting and in the /var/log/messages [root@jupiter /home]# tail -f /var/log/messages abr 13 04:21:15 jupiter smb: smbd shutdown succeeded abr 13 04:21:15 jupiter smb: nmbd shutdown succeeded abr 13 04:21:15 jupiter smb: smbd startup succeeded abr 13 04:21:15 jupiter smb: nmbd startup succeeded Apr 13 04:21:22 jupiter PAM_unix[3236]: authentication failure; (uid=3D0) -> whc for system-aut h service Apr 13 04:21:25 jupiter PAM_unix[3237]: authentication failure; (uid=3D0) -> whc for system-aut h service Apr 13 04:26:32 jupiter PAM_unix[3241]: authentication failure; (uid=3D0) -> whc for system-aut h service Apr 13 04:40:36 jupiter PAM_unix[3254]: authentication failure; (uid=3D0) -> whc for system-aut h service Apr 13 04:48:44 jupiter PAM_unix[3256]: authentication failure; (uid=3D0) -> whc for system-aut h service Apr 13 04:48:49 jupiter PAM_unix[3258]: authentication failure; (uid=3D0) -> whc for system-aut h service my log for machine is : [2001/04/13 04:52:35, 1] smbd/service.c:make_connection (550) station10 (192.168.0.110) connect to service lp as user whc (uid=3D501, gid=3D501) (pid 3271) [ i have 2 days trying i don=B4t have an idea of what i am doing wrong please help me Wenceslao Hernandez C. ________________________________________________________________ UOLMAIL - Todo Venezolano tiene derecho a tener su e-mail. http://www.uolmail.com.ve