PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : CUPS Druck Server Problem



Tux-Linux
20.05.03, 23:34
Hallo zusammen,

hier mein Problem:
Also Cups ist installiert V 1.1.18
von Linux aus drucken null Problemo!
Von Win XP kann ich die Drucker als Netzwerkdrucker sehen und auch installieren!
Bekomme dann aber später eine Statusmeldung "Zugriff verweigert,keine Verbindung.."

Habe schon viel gelesen aber so langsam verzweifel ich!!:D

Weiß nicht mehr wo ich den Fehler suchen kann ... über IPP habe ich es auch schon versucht aber auch ohne Erfolg!

Noch einer ne Idee welche mich weiter bringt???

Kann auch vom Client über http://hostname:631/ alles sehen!
Info nutze Suse 8.2

Habe in der cups.conf die IP der Clients freigegeben an zwei stellen!

Habe es eben schon geschafft beim Druckerstatus BEREIT zu bekommen wenn ich dann drucken will kommt eine Windooofs Fehlermeldung Windows kann wegen eines Problems der Druckereinrichtung nicht drucken!(Bin aber sicher nicht zu doof nen Druckertreiber unter Win zu installieren!

Wer kann also helfen???
Danke Euch!

cywolf
21.05.03, 15:28
schau mal nach, welche Rechte auf deinem Spoolverzeichnis vergeben sind!

normalerweise sollten das User:lp + Group:sys sein!

Samba sollte auch laufen.

Tux-Linux
21.05.03, 18:57
Also Samba läuft auch klar!!! Kann auch als der entsprechende Nutzer darauf zugreifen!!!

Die Rechte sind lesen und ausführen! Das sollte doch ok sein?!?!?

Macht das einen Unterschied ob ich als lokaler Benutzer unter Linux drucke oder über den Client???

Tux-Linux
21.05.03, 22:29
Hmmm...

und wie komme ich jetzt weiter?????

Wer kennt eine echt gute FAQ???

Was sool ich denn bei Samba für die Drucker beachten in der smb.conf?

Tux-Linux
23.05.03, 22:16
Es läuft leider immer noch nicht und ich habe das Gefühl mich im Kreise zu drehen,daher hoffe ich auf Eure Hilfe!

So hier meine smb.conf

[global]


encrypt passwords = yes
workgroup = Arbeitsgruppe
guest ok = yes
browseable = yes
log file = /var/log/samba/log.%m
netbios name = Suse
max log size = 1000
wins support = yes
preferred master = yes
local master = yes
os level = 250
hosts allow = 192.168.0.0/255.255.255.0, localhost
printcap name = lpstat
load printers = yes
printing = cups




guest account = nobody
keep alive = 30
kernel oplocks = false
security = share
interfaces = 192.168.0.4/255.255.255.0
bind interfaces only = yes
socket options = TCP_NODELAY

[homes]
comment = Home Directories
valid users = %S
create mask = 0777
directory mask = 0777
browseable = No
hide dot files = yes
writeable = yes
veto files = /.*/*~/



[printers]
comment = All Printer
path = /var/spool/samba
browseable = no
guest ok = yes
writable = no
printable = yes
create mode = 0700
print command = lpr-cups -P %p -o raw %s -r # using client side printer drive
lpq command = lpstat -o %p
lprm command = cancel %p-%j

Als lokaler Benutzer des Servers kann ich drucken!
D.h. ich gehe davon aus das mit samba was nicht stimmt?!?!?:rolleyes: :D

Was also nun???

Zaphod-B
24.05.03, 09:35
Moin,
ich arbeite zwar nicht mit Samba, aber icvh poste hier mal die wichtigsten Eintragungen in der /etc/cups/cups.conf.

#
----------schnipp-----------
# BrowseAddress: specifies a broadcast address to be used. By
# default browsing information is not sent!
#
# Note: HP-UX does not properly handle broadcast unless you have a
# Class A, B, C, or D netmask (i.e. no CIDR support).
#
# Note: Using the "global" broadcast address (255.255.255.255) will
# activate a Linux demand-dial link with the default configuration.
# If you have a LAN as well as the dial-up link, use the LAN's
# broadcast address.
#
# The @LOCAL address broadcasts to all non point-to-point interfaces.
# For example, if you have a LAN and a dial-up link, @LOCAL would
# send printer updates to the LAN but not to the dial-up link.
# Similarly, the @IF(name) address sends to the named network
# interface, e.g. @IF(eth0) under Linux. Interfaces are refreshed
# automatically (no more than once every 60 seconds), so they can
# be used on dynamically-configured interfaces, e.g. PPP, 802.11, etc.
#

#BrowseAddress x.y.z.255
#BrowseAddress x.y.255.255
#BrowseAddress x.255.255.255
#BrowseAddress 255.255.255.255
#BrowseAddress @LOCAL
#BrowseAddress @IF(name)
BrowseAddress 192.168.0.255

------------schnipp------------

#
# BrowseAllow: specifies an address mask to allow for incoming browser
# packets. The default is to allow packets from all addresses.
#
# BrowseDeny: specifies an address mask to deny for incoming browser
# packets. The default is to deny packets from no addresses.
#
# Both "BrowseAllow" and "BrowseDeny" accept the following notations for
# addresses:
#
# All
# None
# *.domain.com
# .domain.com
# host.domain.com
# nnn.*
# nnn.nnn.*
# nnn.nnn.nnn.*
# nnn.nnn.nnn.nnn
# nnn.nnn.nnn.nnn/mm
192.168.0.0/24
# nnn.nnn.nnn.nnn/mmm.mmm.mmm.mmm
# @LOCAL
# @IF(name)
#
# The hostname/domainname restrictions only work if you have turned hostname
# lookups on!
#

BrowseAllow address
#BrowseDeny address

--------------schnipp-------------

# The host and domain address require that you enable hostname lookups
# with "HostNameLookups On" above.
#
# The @LOCAL address allows or denies from all non point-to-point
# interfaces. For example, if you have a LAN and a dial-up link,
# @LOCAL could allow connections from the LAN but not from the dial-up
# link. Similarly, the @IF(name) address allows or denies from the
# named network interface, e.g. @IF(eth0) under Linux. Interfaces are
# refreshed automatically (no more than once every 60 seconds), so
# they can be used on dynamically-configured interfaces, e.g. PPP,
# 802.11, etc.
#
# Encryption: whether or not to use encryption; this depends on having
# the OpenSSL library linked into the CUPS library and scheduler.
#
# Possible values:
#
# Always - Always use encryption (SSL)
# Never - Never use encryption
# Required - Use TLS encryption upgrade
# IfRequested - Use encryption if the server requests it
#
# The default value is "IfRequested".
#

<Location />
Order Deny,Allow
Deny From All
Allow From 192.168.0.0/24
</Location>

------------schnipp------------

## Restrict access to local domain
Order Deny,Allow
Deny From All
Allow From 127.0.0.1

------------schnapp------------


Mit diesen Einstellungen kann jeder Client, egal ob Win Mac oder *NIX, der das IPP beherscht, und eine Lokale IP (192.168.0.0/24) auf meinen Cups Drucker Drucken.

Wichtig:
Wenn ich ma letzten Punkt,

## Restrict access to local domain
Order Deny,Allow
Deny From All
Allow From 127.0.0.1

noch eine IP hinzufüge, geht es nicht, warum auch immer.



Greetings Zaphod-B

vladonline
24.05.03, 15:16
Hm...
Ich habe genau das gleiche Problem und bei mir klapt es so nicht. Was könne es noch sein?

Path: /tmp

Wo findet man normallerweise diesen Verzeichniss?
unter ..home..samba/tmp
oder ..home..cups/tmp

?????????????????????

Tux-Linux
25.05.03, 17:45
Ich verstehe nicht warum keiner versucht zu helfen....:(

Liegt es daran weil keiner will oder keiner kann..???

Eigentlich schade...

Wenn mir jemand auch einen Ansatz sagen könnte wäre schon nicht schlecht!

Na ja......
Ich hoffe noch auf eure Hilfe...

Zaphod-B
25.05.03, 18:28
Moin,
ich wieß nicht warum keiner hilft und, wie ich bereits sagte, habe ich keine Ahnung von SAMBA Vs. CUPS.
Aber ich hab mal Google angeworfen, und hab m.e. ein brauchbaren Link gefunden:

http://www.linux-community.de/Neues/story?storyid=4894

Vielleicht hilft dir das ja weiter.



Greetings Zaphod-B

Cieni
29.05.03, 13:15
Hallo

In der smb.conf wurde ich
schreiben:
printcap name = cups
printing = cups

in der /etc/cups/cups.conf
im Abschnitt

## Restrict access to local domain
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
## Neu
Allow From 192.168.1.2 # IP freigeben

Ich hoffe Dir damit weiterzuhelfen.
Bei mir funktioniert es so.

Bitte auch in /var/log/cups die Dateien auf Fehler ansehen.