Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Samba не хочет читать /etc/printcap
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Russian
View previous topic :: View next topic  
Author Message
fank
l33t
l33t


Joined: 16 Oct 2004
Posts: 794
Location: Minsk, Belarus

PostPosted: Thu Nov 10, 2005 6:57 am    Post subject: Samba не хочет читать /etc/printcap Reply with quote

собственно, добавить нечего к сказанному, окромя конфига:
Quote:
[global]
log file = /var/log/samba3/log.%m
load printers = yes
smb passwd file = /etc/samba/private/smbpasswd
name resolve order = wins lmhosts bcast
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_SNDBUF=8192 SO_RCVBUF=8192
wins server = x.x.x.x
interfaces = eth0 lo
bind interfaces only = yes
map to guest = bad user
hosts allow = x.x.x.x/24 ,127.0.0.0/8
encrypt passwords = yes
security = user
lock directory = /var/lock/samba
dns proxy = yes
browseable = yes
server string = Archive
dos charset = 866
unix charset = koi8-r
local master = no
workgroup = Workgroup
netbios name = Archive
max log size = 50
os level = 33
printing = cups
printcap name = cups
# printer admin = @adm
show add printer wizard = no

[printers]
browseable = no
print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.
printable = yes
guest ok = yes
use client driver = yes
path = /var/spool/samba
comment = Printers
create mode = 0700
write list = @adm,root

[print$]
comment = Printer Drivers
# this path holds the driver structure
path = /var/lib/samba/printers
guest ok = no
browseable = yes
read only = yes
write list = @adm,root


и содержимого логов:
Quote:
smbd version 3.0.20b started.
Copyright Andrew Tridgell and the Samba Team 1992-2005
[2005/11/10 08:53:37, 0] printing/pcap.c:pcap_cache_reload(149)
Unable to open printcap file cups for read!
[2005/11/10 08:53:37, 0] printing/pcap.c:pcap_cache_reload(149)
Unable to open printcap file cups for read!


гугл ничего вразумительного не сообщил...
буду рад любому совету !
Back to top
View user's profile Send private message
viy
Veteran
Veteran


Joined: 03 Jul 2004
Posts: 1580
Location: Riga, Latvia

PostPosted: Thu Nov 10, 2005 8:19 am    Post subject: Reply with quote

ls -l /etc/printcap?..
Back to top
View user's profile Send private message
User Unknown
n00b
n00b


Joined: 09 Aug 2004
Posts: 54

PostPosted: Thu Nov 10, 2005 9:02 am    Post subject: Reply with quote

Ага.. такая же фигня была... просто создал пустой файл printcap И всё.. оно заткнулось:)
Наблюдается ктстати начиная с версии 3.0.12 и выше...
Back to top
View user's profile Send private message
fank
l33t
l33t


Joined: 16 Oct 2004
Posts: 794
Location: Minsk, Belarus

PostPosted: Thu Nov 10, 2005 9:49 am    Post subject: Reply with quote

на соседней тачке всё фурычит с вот такими правами:
Code:
-rw-r--r--  1 root root 166 Nov 10 08:32 /etc/printcap

они же такие выставлены принудительно были, файл удалялся, соответственно затык не в этом

Quote:
Ага.. такая же фигня была... просто создал пустой файл printcap И всё.. оно заткнулось:)
Наблюдается ктстати начиная с версии 3.0.12 и выше...

не помогло...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Russian All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum