Google Groups unterstützt keine neuen Usenet-Beiträge oder ‑Abos mehr. Bisherige Inhalte sind weiterhin sichtbar.

Printing problem from windows to linux

0 Aufrufe
Direkt zur ersten ungelesenen Nachricht

Stephen Patterson

ungelesen,
09.08.2001, 06:33:4709.08.01
an
I have samba set up to share a linux printer, it works fine if I print
by using smbclient on linux to copy a file onto the share. It also
works fine if I use the DOS copy command on a windows 95 or NT machine
to copy a text file onto the share (copy /b foo.txt \\steve\lp), but I
van't get it to print from windows (standard test page from control
panel).

The only error message I get is "Access denied, Unable to connect",
this is confusing me because I've set the security level to share and
it works fine from linux with or without a username and password. The
linux usernames and passwords I've got are completely different from
the windows ones.

my smb.conf file is as follows:

[global]
workgroup = DOMAIN_21433
interfaces = eth0
security = SHARE
log file = /var/log/samba/samba.log.%m
local master = No
domain master = False
wins server = 192.168.1.3
guest account = steve
guest only = Yes

[lp]
comment = HP Laserjet 4Si
path = /var/spool/lpd/samba
read only = No
guest ok = Yes
printable = Yes
printing = lprng
print command = /usr/bin/lpr -P%p -r %s
lpq command = /usr/bin/lpq -P%p
lprm command = /usr/bin/lprm -P%p %j
lppause command = /usr/sbin/lpc hold %p %j
lpresume command = /usr/sbin/lpc release %p %j
queuepause command = /usr/sbin/lpc -P%p stop
queueresume command = /usr/sbin/lpc -P%p start
printer name = lp
oplocks = No
share modes = No

TIA Steve

Matt Alderson

ungelesen,
09.08.2001, 15:45:2609.08.01
an
Remove the line "read only = No" from the [lp] definintion.
Put "printing = lprng" in the [global] definition.
Start with the simplest possible definition for [lp], maybe like

[lp]
comment = HP Laserjet 4Si
path = /var/spool/lpd/samba
guest ok = Yes
printable = Yes
printer name = lp

Run testparm to check for errors, if no errors try printing again.
Should work.
s.pat...@freeuk.com (Stephen Patterson) writes:

--
Matt Alderson GIS Specialist . Arizona Game and Fish Department
email: mald...@gf.state.az.us . 2221 W. Greenway Road
voice-mail: (602) 789-3610 . Phoenix, AZ 85023 U.S.A.

Alexander Ziemann

ungelesen,
09.08.2001, 10:12:0309.08.01
an
Hi, Jeff or whom it may concern.

I answered this question so often in the last days (it is a FAQ), that i
will simply post 2 of my previous answers.

One is short and english.
Hi,
you should use a [print$] share as explained in the dokus coming with samba
2.2.1a and you must (after building that share and the subdirs as explained
in the doku) log in from a w2k station as root.

Then do a normal network-printer setup using the w2k assistant and you will
be fine.

Delete old printers (unix and samba) before that action and rebuild them
with non-similar names.


One is long and german.

1. Auf dem Samba Server alle vorhandenen Drucker und die dazugehörigen
Linux-Drucker (Printqueues) komplett löschen.
2. Linux Drucker neu erstellen (zeigt bei mir auf einen Laserjet mit
Jet-Direct Karte).
3. Die print$ Share neu erstellen mit Unterverzeichnissen, wie in der
Printer-Doku zur aktuellen Samba Distribution beschrieben.
4. Samba Drucker neu erstellen (dabei jeweils andere Namen verwenden!).
5. Als root über win2k von einer WS aus normal am Samba-Server anmelden. Es
sollte schon der root account sein. Mindestens sind volle root-Rechte unter
Unix und volle Printer-Admin Rechte unter w2k erforderlich.
6. Danach in der Netzwerkumgebung den Samba Server und dort den
Druckerordner durchsuchen.
7. Über den w2k Assistenten "Neuen Drucker einrichten" die benötigten
Druckertreiber AUF DEM SAMBASERVER einrichten. Dazu wird die w2k CD mit den
Standarddruckertreibern benötigt.
8. Danach (immer noch als root eingeloggt) den Netzwerkdrucker über die
Eigenschaftenseite (rechte Maustaste auf Drucker klicken) wie gewünscht
konfigurieren (Duplex, Schächte, Papierformat, Speicherausstattung des
Druckers u.s.w.).

Danach läuft alles super.

Alles andere ging bei mir nicht. Insbesondere ließ sich der Netzwerkdrucker
von w2k aus weder konfigurieren, noch mit anderen Treibern ausstatten, noch
ließ sich ein zusätzlicher Drucker installieren.

Problem scheint zu sein, dass wenigstens bei der Einrichtung des Druckers
auf der Unix-Seite root-Rechte und auf der Windoze-Seite volle Admin-Rechte
benötigt werden.

Einen derartigen Account musste ich (da das bisher noch nie benötigt wurde),
erst anlegen.

Watch:

Take care, that you build the dirs exactly as described in the samba docs.
You must be logged in as root from nt/w2k WS, when installing the printer
drivers.

How about consulting other NGs as linux.samba or google next time?

hth
Alex


0 neue Nachrichten