Re: [Samba] Printer drivers

2013-03-23 Thread Fabian von Romberg
Hi, 

is this a bug in Samba 4?

Regards,
Fabian

On 03/21/2013 06:29 AM, Johan Hendriks wrote:
 
 
 Hi Fabian,

 Yes - here is (excerpt from) my setup.
 You also need to set permissions on shares so printer admins can write
 driver files and everybody can print. I think you need arcitecture foldres
 under print$ (W32X86 etc) and set SePrintOperatorPrivilege for users to set
 up printers.

 I got it all working OK (samba 3.5.6), but I do still have troubles with
 printer properties in some drivers. I suspect it might work better in
 samba3.3 and older but have not got as far as testing this.

 Jim
 
 [global]
 ..
load printers = yes
printing = cups
printcap name = cups
 #show add printer wizard = no
use client driver = no
force printername = yes
 #   cups options = raw

 [print$]
comment = windows printer drivers
path = /var/lib/samba/printers
browseable = no
guest ok = yes
read only = no
create mask = 0664
directory mask = 775
force group = print operators
 
 [printers]
comment = all printers
path = /var/spool/samba
printable = yes
 writeable = no
guest ok = no
create mask = 0700
browseable = no


 On 18 March 2013 04:46, Fabian von Romberg fromberg...@hotmail.com wrote:
 
 Hi,

 is it possible to have printer driver on samba and when the user wants to
 use a particular printer can install the drivers automatically from samba?

 Thanks in advance and regards,
 Fabian

 --
 
 Well on samba 3.6.x i got it working also, but on samba4 i do not get the 
 printers and faxes share.
 Whatever i do.
 I do get the printer itself.
 Is the documentation not right and do i need to use the printer share it self.
 
 regards
 Johan
 


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Printer drivers

2013-03-23 Thread Nishant Sharma
On Mar 23, 2013 11:37 PM, Fabian von Romberg fromberg...@hotmail.com
wrote:

 Hi,

 is this a bug in Samba 4?


I am also facing the same problem on samba 4.0.4.

It was working fine on 4.0.1 and when moving to production, I decided to go
with the latest version.

Somehow, driver got uploaded on to the server, but clients are not able to
find/install driver automatically. They get the driver installation wizard
popped up and 'have disk' is required.

I am running Samba 4.0.4 on AMD64 Debian Squeeze. Test system was running
on i386 Debian and Samba 4.0.1.

Regards,
Nishant
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Printer drivers

2013-03-21 Thread Johan Hendriks


Hi Fabian,

Yes - here is (excerpt from) my setup.
You also need to set permissions on shares so printer admins can write
driver files and everybody can print. I think you need arcitecture foldres
under print$ (W32X86 etc) and set SePrintOperatorPrivilege for users to set
up printers.

I got it all working OK (samba 3.5.6), but I do still have troubles with
printer properties in some drivers. I suspect it might work better in
samba3.3 and older but have not got as far as testing this.

Jim

[global]
..
load printers = yes
printing = cups
printcap name = cups
#show add printer wizard = no
use client driver = no
force printername = yes
#   cups options = raw

[print$]
comment = windows printer drivers
path = /var/lib/samba/printers
browseable = no
guest ok = yes
read only = no
create mask = 0664
directory mask = 775
force group = print operators

[printers]
comment = all printers
path = /var/spool/samba
printable = yes
writeable = no
guest ok = no
create mask = 0700
browseable = no


On 18 March 2013 04:46, Fabian von Romberg fromberg...@hotmail.com wrote:

 Hi,

 is it possible to have printer driver on samba and when the user wants to
 use a particular printer can install the drivers automatically from samba?

 Thanks in advance and regards,
 Fabian

 --

Well on samba 3.6.x i got it working also, but on samba4 i do not get the 
printers and faxes share.
Whatever i do.
I do get the printer itself.
Is the documentation not right and do i need to use the printer share it self.

regards
Johan
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Printer drivers

2013-03-19 Thread Jim Potter
Hi Fabian,

Yes - here is (excerpt from) my setup.
You also need to set permissions on shares so printer admins can write
driver files and everybody can print. I think you need arcitecture foldres
under print$ (W32X86 etc) and set SePrintOperatorPrivilege for users to set
up printers.

I got it all working OK (samba 3.5.6), but I do still have troubles with
printer properties in some drivers. I suspect it might work better in
samba3.3 and older but have not got as far as testing this.

Jim

[global]
..
load printers = yes
printing = cups
printcap name = cups
#show add printer wizard = no
use client driver = no
force printername = yes
#   cups options = raw

[print$]
comment = windows printer drivers
path = /var/lib/samba/printers
browseable = no
guest ok = yes
read only = no
create mask = 0664
directory mask = 775
force group = print operators

[printers]
comment = all printers
path = /var/spool/samba
printable = yes
writeable = no
guest ok = no
create mask = 0700
browseable = no


On 18 March 2013 04:46, Fabian von Romberg fromberg...@hotmail.com wrote:

 Hi,

 is it possible to have printer driver on samba and when the user wants to
 use a particular printer can install the drivers automatically from samba?

 Thanks in advance and regards,
 Fabian

 --
 To unsubscribe from this list go to the following URL and read the
 instructions:  https://lists.samba.org/mailman/options/samba

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Printer drivers

2013-03-18 Thread Lukas Gradl


Zitat von Fabian von Romberg fromberg...@hotmail.com:


Hi,

is it possible to have printer driver on samba and when the user  
wants to use a particular printer can install the drivers  
automatically from samba?


Thanks in advance and regards,
Fabian


Do you mean like this:
https://wiki.samba.org/index.php/Samba_AD_DC_HOWTO#Point_and_Print_Drivers

regards
Lukas

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Printer drivers

2013-03-18 Thread Johan Hendriks


Zitat von Fabian von Romberg fromberg...@hotmail.com:

 Hi,

 is it possible to have printer driver on samba and when the user wants 
 to use a particular printer can install the drivers automatically from 
 samba?

 Thanks in advance and regards,
 Fabian

Do you mean like this:
https://wiki.samba.org/index.php/Samba_AD_DC_HOWTO#Point_and_Print_Drivers

regards
Lukas

Sorry if i hyjack
I am trying to get this to work also.
The problem i have is that i do not see a printers and faxes share.
So i can not connect to it
this is my smb4.conf

# Global parameters
[global]
workgroup = TESTBOOM
realm = TESTBOOM.LOCAL
netbios name = SMB-FILER01
server role = active directory domain controller
dns forwarder = 8.8.8.8

nsupdate command = /usr/local/bin/samba-nsupdate -g
#  Printers
   load printers = yes
   printing = cups
   printcap name = cups
   force printername = yes
   cups options = raw


[printers]
comment = All Printers
path = /usr/local/samba/var/spool
browseable = Yes
guest ok = yes
read only = No
printable = Yes

[print$]
comment = Point and Print Printer Drivers
path = /usr/local/samba/var/print
read only = No
use client driver = yes
write list = administrator, @domain admins


regards
johan


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Printer drivers

2013-03-18 Thread Fabian von Romberg

Hi Johan,

I had the same proble where I could not see any share.  I solved it by putting 
the following under [print$]

browseable = yes


I dont know if this is the only way.  If there is any other alternative, please 
let anybody know.

Thanks and regards,
Fabian

On 03/18/2013 06:14 AM, Johan Hendriks wrote:
 
 
 Zitat von Fabian von Romberg fromberg...@hotmail.com:
 
 Hi,

 is it possible to have printer driver on samba and when the user wants 
 to use a particular printer can install the drivers automatically from 
 samba?

 Thanks in advance and regards,
 Fabian
 
 Do you mean like this:
 https://wiki.samba.org/index.php/Samba_AD_DC_HOWTO#Point_and_Print_Drivers
 
 regards
 Lukas
 
 Sorry if i hyjack
 I am trying to get this to work also.
 The problem i have is that i do not see a printers and faxes share.
 So i can not connect to it
 this is my smb4.conf
 
 # Global parameters
 [global]
 workgroup = TESTBOOM
 realm = TESTBOOM.LOCAL
 netbios name = SMB-FILER01
 server role = active directory domain controller
 dns forwarder = 8.8.8.8
 
 nsupdate command = /usr/local/bin/samba-nsupdate -g
 #  Printers
load printers = yes
printing = cups
printcap name = cups
force printername = yes
cups options = raw
 
 
 [printers]
 comment = All Printers
 path = /usr/local/samba/var/spool
 browseable = Yes
 guest ok = yes
 read only = No
 printable = Yes
 
 [print$]
 comment = Point and Print Printer Drivers
 path = /usr/local/samba/var/print
 read only = No
 use client driver = yes
 write list = administrator, @domain admins
 
 
 regards
 johan
 
 


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Printer drivers

2013-03-17 Thread Fabian von Romberg
Hi,

is it possible to have printer driver on samba and when the user wants to use a 
particular printer can install the drivers automatically from samba?

Thanks in advance and regards,
Fabian

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Printer drivers installation: files are not deleted

2011-03-22 Thread Laurent Blume

Le 21.03.2011 16:55, Thomas Stegbauer a écrit :

hi laurent,

i found the error.

with all the tests there was set:
use client driver = yes :(

now i can upload drivers and register drivers by apw and cupsaddsmb


best regards thank you very for your assistance


Heh, you're welcome, but I didn't do much, I didn't think about that at 
all. So thanks for the feedback, that piece of info can be useful in the 
future!


Laurent
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Re: [Samba] Printer drivers installation: files are not deleted

2011-03-21 Thread Thomas Stegbauer


Am 20.03.2011 22:34, schrieb Thomas Stegbauer:


Am 17.03.2011 11:19, schrieb Laurent Blume:

Le 15.03.2011 13:09, Thomas Stegbauer a écrit :

i cant imagin, where this permission is set.

1. i apply the driver via apw from windows xp32 as root
2. net rpc rights list root
Enter root's password:
SePrintOperatorPrivilege
3. i can was able to upload the driver for
HP Color LaserJet PS

but i cant upload
Kyocera 5350 UPD or KX driver
also not
OK ES7411 PS (v1.0.0)


You need to check there is nothing wrong on the print share, like 
subdirectories with the wrong permissions or something like that. 
Remember you need both the rights to manipulate printers and to write 
files in the right place.


Laurent


hi laurent,

now i tried now cupsaddsmb.

it can upload the driver well, there is printer3.ppd (how the printer 
is named). There is also a printer3 in windows under drivers listed.

but the driver is not set for the printer3.

so what is failing, is the following command:
rpcclient pa-server1 -U net\\root -c 'setdriver drucker3 drucker3' 
1/tmp/rpcsetdriver.txt


also
net rpc -S pa-server1 rights list privileges SePrintOperatorPrivilege

gives me the information
NET\root is has the SePrintOperatorPrivilege

also i removed the printer admin parameter from smb.conf and left 
only enable privileges=yes over.

but know change :(

best regards
thomas



hi laurent,

i found the error.

with all the tests there was set:
use client driver = yes :(

now i can upload drivers and register drivers by apw and cupsaddsmb


best regards thank you very for your assistance
thomas
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Re: [Samba] Printer drivers installation: files are not deleted

2011-03-20 Thread Thomas Stegbauer


Am 17.03.2011 11:19, schrieb Laurent Blume:

Le 15.03.2011 13:09, Thomas Stegbauer a écrit :

i cant imagin, where this permission is set.

1. i apply the driver via apw from windows xp32 as root
2. net rpc rights list root
Enter root's password:
SePrintOperatorPrivilege
3. i can was able to upload the driver for
HP Color LaserJet PS

but i cant upload
Kyocera 5350 UPD or KX driver
also not
OK ES7411 PS (v1.0.0)


You need to check there is nothing wrong on the print share, like 
subdirectories with the wrong permissions or something like that. 
Remember you need both the rights to manipulate printers and to write 
files in the right place.


Laurent


hi laurent,

now i tried now cupsaddsmb.

it can upload the driver well, there is printer3.ppd (how the printer is 
named). There is also a printer3 in windows under drivers listed.

but the driver is not set for the printer3.

so what is failing, is the following command:
rpcclient pa-server1 -U net\\root -c 'setdriver drucker3 drucker3' 
1/tmp/rpcsetdriver.txt


also
net rpc -S pa-server1 rights list privileges SePrintOperatorPrivilege

gives me the information
NET\root is has the SePrintOperatorPrivilege

also i removed the printer admin parameter from smb.conf and left only 
enable privileges=yes over.

but know change :(

best regards
thomas

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Re: [Samba] Printer drivers installation: files are not deleted

2011-03-18 Thread Christian PERRIER
Quoting Thomas Stegbauer (tho...@stegbauer.info):
 Hi Laurent, 
 
 i cant imagine it is a permission problem. 
 The driver upload runs as root and i added root 
 
 Also i added root with 
 net rpc rights grant cake\domadm SePrintOperatorPrivilege -U cake/root 
 
 replaced cake with my domain-name. 
 
 Also i find a driver which i can upload 
 HP Color Laserjet 2800 (PS) from Windows XP 32 
 But if Using a driver from Utax (or the appropriate Version from Kyocera) i 
 get the permission error. 
 
 Using a fresh installed Windows for printer driver extraction is imho no long 
 term solution ;) 


FWIW, on the setup described by Laurent (we both work in the same
organization), we finally decided to go back to the method we've
always been using : load drivers from Windows clients. We more and
more only have HP printers and we're indeed using only one driver: the
HP Universal Printing driver (actually, it's more 2-3 different
drivers on each samba print spooler but that's much better than a big
mess of dozens of drivers that mutually overwrite files).


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Printer drivers installation: files are not deleted

2011-03-17 Thread Laurent Blume

Le 15.03.2011 13:09, Thomas Stegbauer a écrit :

i cant imagin, where this permission is set.

1. i apply the driver via apw from windows xp32 as root
2. net rpc rights list root
Enter root's password:
SePrintOperatorPrivilege
3. i can was able to upload the driver for
HP Color LaserJet PS

but i cant upload
Kyocera 5350 UPD or KX driver
also not
OK ES7411 PS (v1.0.0)


You need to check there is nothing wrong on the print share, like 
subdirectories with the wrong permissions or something like that. 
Remember you need both the rights to manipulate printers and to write 
files in the right place.


Laurent
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Re: [Samba] Printer drivers installation: files are not deleted

2011-03-17 Thread Thomas Stegbauer
Hi Daniel, 

thank you for your response. 
What is the value of the variable $DRIVER? 
From documentation i read, this the is driver-name (as listed under advanced in 
the printer-settings on windows) 
But if the driver does not get copied over? 

best regards 
thomas 



- Ursprüngliche Mail -
Von: Daniel Müller muel...@tropenklinik.de 
An: Thomas Stegbauer mailinglis...@stegbauer.info, Laurent Blume 
laur...@opensolaris.org 
CC: samba@lists.samba.org 
Gesendet: Montag, 14. März 2011 08:54:41 
Betreff: AW: [Samba] Printer drivers installation: files are not deleted 

Did you made a: rpcclient -L localhost -Uyouruser -c 'setdriver $DRIVER 
$PRINTER' 

--- 
EDV Daniel Müller 

Leitung EDV 
Tropenklinik Paul-Lechler-Krankenhaus 
Paul-Lechler-Str. 24 
72076 Tübingen 

Tel.: 07071/206-463, Fax: 07071/206-499 
eMail: muel...@tropenklinik.de 
Internet: www.tropenklinik.de 
--- 

-Ursprüngliche Nachricht- 
Von: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org] Im 
Auftrag von Thomas Stegbauer 
Gesendet: Sonntag, 13. März 2011 22:37 
An: Laurent Blume 
Cc: samba@lists.samba.org 
Betreff: Re: [Samba] Printer drivers installation: files are not deleted 

Hallo Laurent, 

i have a similar problem, here. 
When trying to add a new printer via apw from a winXP32, the driver 
files get copied over to print$ on the ubuntu 10.04 Server (Samba 3.4.7) 
afterwards it says Permission denied And the driver get not registered. 

Where do you geht the filenames, the drivers needs? 
as i cant use rpcclient to register the drivers from commandline. 

best regards 
thomas 

# Thomas Stegbauer 
# 
https://keyserver1.pgp.com/vkd/SubmitSearch.event?SearchCriteria=thomas@steg 
bauer.info 
# PGP Fingerprint: C5B5 BDBD 6607 A9DF E545 0EC5 9DDF 9749 BD05 808A 


Am 10.02.2011 15:37, schrieb Laurent Blume: 
 Hello all, 
 
 I'm running Samba 3.5.5 on Debian 5, and following the documentation 
 as closely as I can to install drivers using rpcclient. 
 
 I first install the driver on a Windows 7 x65 workstation, then use 
 rpcclient/smbclient to fetch the files. 
 I then use smbclient to put those on the print$ share of the Samba 
 server. So far, so good. 
 
 Then I use rpcclient to add those files, and that appears to work: 
 rpcclient -U DOMAIN\\LOGIN%PASSWD -c adddriver \Windows x64\ \HP 
 Universal Printing PS 
 
(v5.1):PSCRIPT5.dll:hpcu104s.ppd:hpmdp104.dll:PSCRIPT.HLP:NULL:RAW:hpcdmc64. 
dll,hpbcfgre.dll,hpcpu104.CFG,hpcui104.dll,hpcpe104.dll,hpcur104.dll,hpcpn10 
4.dll,hpcsr104.dll,hpcst104.dll,hpcev104.dll,hpcu104s.hpx,hpcsc104.dtd,hpchl 
104.cab,hpzfn104.ntf,hpcu104.dem,hpmux104.dll,hpmur104.dll,hpmpm081.dll,hpmp 
w081.dll,hpmsn104.dll,hpmsl104.dll,hpcsat20.dll,hpcu104v.ini,hpcu104s.xml,hp 
cls104.dll,hpcss104.dll,FxCompChannel_x64.dll,cioum.dll,cioum64.msi,hpcpn104 
.dll,ps5ui.dll,pscript.ntf,ps_schm.gdl,hppdcompio.dll,hpcc6104.dll,HPDRVJCT. 
dll,hpfxcomw.dll,hpsysobj.dll\ 
 HAPI64-CC 
 Printer Driver HP Universal Printing PS (v5.1) successfully installed. 
 
 
 But actually, things are going wrong: it does create the 3/ 
 subdirectory, it does populate it with the files in print$/x64, but 
 those files are kept there, not deleted as they should. 
 
 If I then try to delete it, there's something similar: 
 
 rpcclient $ deldriverex HP Universal Printing PS (v5.1) 
 Driver HP Universal Printing PS (v5.1) and files removed for arch 
 [Windows x64] (version: 3). 
 
 But none of the files are really removed, they're still all there. 
 
 And so far, no error message that I can see. 
 
 Can anybody shed some light? TIA! 
 
 Laurent 
-- 
To unsubscribe from this list go to the following URL and read the 
instructions: https://lists.samba.org/mailman/options/samba 

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Re: [Samba] Printer drivers installation: files are not deleted

2011-03-17 Thread Thomas Stegbauer
Hi Laurent, 

i cant imagine it is a permission problem. 
The driver upload runs as root and i added root 

Also i added root with 
net rpc rights grant cake\domadm SePrintOperatorPrivilege -U cake/root 

replaced cake with my domain-name. 

Also i find a driver which i can upload 
HP Color Laserjet 2800 (PS) from Windows XP 32 
But if Using a driver from Utax (or the appropriate Version from Kyocera) i get 
the permission error. 

Using a fresh installed Windows for printer driver extraction is imho no long 
term solution ;) 

best regards 
Thomas 



- Ursprüngliche Mail -
Von: Laurent Blume laur...@opensolaris.org 
An: Thomas Stegbauer mailinglis...@stegbauer.info 
CC: samba@lists.samba.org 
Gesendet: Montag, 14. März 2011 09:04:21 
Betreff: Re: [Samba] Printer drivers installation: files are not deleted 

Le 13.03.2011 22:37, Thomas Stegbauer a écrit : 
 i have a similar problem, here. 
 When trying to add a new printer via apw from a winXP32, the driver 
 files get copied over to print$ on the ubuntu 10.04 Server (Samba 3.4.7) 
 afterwards it says Permission denied And the driver get not registered. 

I think thatś most probably a permission issue on the server. Does the 
user you connect with have printer administrator privilege? Ie, member 
of the printadm group or similar? 

 Where do you geht the filenames, the drivers needs? 
 as i cant use rpcclient to register the drivers from commandline. 

I followed the documentation on that: I install them on a clean test 
system (win7 x64), then extract the list of files and the files 
themselves using rpcclient. That part works. 

Laurent 
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Re: [Samba] Printer drivers installation: files are not deleted

2011-03-15 Thread Daniel Müller
Then try first:
Net rpc rights grant yourusername/or groupname SePrintOperatorPrivilege 
-Uyouradmin

The $DRVIER ist the driver you uploaded with rpcclient.
Rpcclient -L localhost -U root -c 'setdriver AdobePs5.dll adobe'



EDV Daniel Müller

Leitung EDV
Tropenklinik Paul-Lechler-Krankenhaus
Paul-Lechler-Str. 24
72076 Tübingen 
Tel.: 07071/206-463, Fax: 07071/206-499
eMail: muel...@tropenklinik.de
Internet: www.tropenklinik.de 

Von: Thomas Stegbauer [mailto:tho...@stegbauer.info] 
Gesendet: Dienstag, 15. März 2011 11:20
An: muel...@tropenklinik.de
Cc: samba@lists.samba.org; Laurent Blume
Betreff: Re: [Samba] Printer drivers installation: files are not deleted

Hi Daniel,

thank you for your response.
What is the value of the variable $DRIVER?
From documentation i read, this the is driver-name (as listed under advanced in 
the printer-settings on windows)
But if the driver does not get copied over?

best regards
thomas



Von: Daniel Müller muel...@tropenklinik.de
An: Thomas Stegbauer mailinglis...@stegbauer.info, Laurent Blume 
laur...@opensolaris.org
CC: samba@lists.samba.org
Gesendet: Montag, 14. März 2011 08:54:41
Betreff: AW: [Samba] Printer drivers installation: files are not deleted

Did you made a: rpcclient -L localhost -Uyouruser -c 'setdriver $DRIVER
$PRINTER'

---
EDV Daniel Müller

Leitung EDV
Tropenklinik Paul-Lechler-Krankenhaus
Paul-Lechler-Str. 24
72076 Tübingen

Tel.: 07071/206-463, Fax: 07071/206-499
eMail: muel...@tropenklinik.de
Internet: www.tropenklinik.de
---

-Ursprüngliche Nachricht-
Von: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org] Im
Auftrag von Thomas Stegbauer
Gesendet: Sonntag, 13. März 2011 22:37
An: Laurent Blume
Cc: samba@lists.samba.org
Betreff: Re: [Samba] Printer drivers installation: files are not deleted

Hallo Laurent,

i have a similar problem, here.
When trying to add a new printer via apw from a winXP32, the driver 
files get copied over to print$ on the ubuntu 10.04 Server (Samba 3.4.7) 
afterwards it says Permission denied And the driver get not registered.

Where do you geht the filenames, the drivers needs?
as i cant use rpcclient to register the drivers from commandline.

best regards
thomas

# Thomas Stegbauer
#
https://keyserver1.pgp.com/vkd/SubmitSearch.event?SearchCriteria=thomas@steg
bauer.info
# PGP Fingerprint: C5B5 BDBD 6607 A9DF E545  0EC5 9DDF 9749 BD05 808A


Am 10.02.2011 15:37, schrieb Laurent Blume:
 Hello all,

 I'm running Samba 3.5.5 on Debian 5, and following the documentation 
 as closely as I can to install drivers using rpcclient.

 I first install the driver on a Windows 7 x65 workstation, then use 
 rpcclient/smbclient to fetch the files.
 I then use smbclient to put those on the print$ share of the Samba 
 server. So far, so good.

 Then I use rpcclient to add those files, and that appears to work:
 rpcclient -U DOMAIN\\LOGIN%PASSWD -c adddriver \Windows x64\ \HP 
 Universal Printing PS 

(v5.1):PSCRIPT5.dll:hpcu104s.ppd:hpmdp104.dll:PSCRIPT.HLP:NULL:RAW:hpcdmc64.
dll,hpbcfgre.dll,hpcpu104.CFG,hpcui104.dll,hpcpe104.dll,hpcur104.dll,hpcpn10
4.dll,hpcsr104.dll,hpcst104.dll,hpcev104.dll,hpcu104s.hpx,hpcsc104.dtd,hpchl
104.cab,hpzfn104.ntf,hpcu104.dem,hpmux104.dll,hpmur104.dll,hpmpm081.dll,hpmp
w081.dll,hpmsn104.dll,hpmsl104.dll,hpcsat20.dll,hpcu104v.ini,hpcu104s.xml,hp
cls104.dll,hpcss104.dll,FxCompChannel_x64.dll,cioum.dll,cioum64.msi,hpcpn104
.dll,ps5ui.dll,pscript.ntf,ps_schm.gdl,hppdcompio.dll,hpcc6104.dll,HPDRVJCT.
dll,hpfxcomw.dll,hpsysobj.dll\ 
 HAPI64-CC
 Printer Driver HP Universal Printing PS (v5.1) successfully installed.


 But actually, things are going wrong: it does create the 3/ 
 subdirectory, it does populate it with the files in print$/x64, but 
 those files are kept there, not deleted as they should.

 If I then try to delete it, there's something similar:

 rpcclient $ deldriverex HP Universal Printing PS (v5.1)
 Driver HP Universal Printing PS (v5.1) and files removed for arch 
 [Windows x64] (version: 3).

 But none of the files are really removed, they're still all there.

 And so far, no error message that I can see.

 Can anybody shed some light? TIA!

 Laurent
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Re: [Samba] Printer drivers installation: files are not deleted

2011-03-15 Thread Thomas Stegbauer

Am 13.03.2011 22:37, schrieb Thomas Stegbauer:

Hallo Laurent,

i have a similar problem, here.
When trying to add a new printer via apw from a winXP32, the driver 
files get copied over to print$ on the ubuntu 10.04 Server (Samba 
3.4.7) afterwards it says Permission denied And the driver get not 
registered.


Where do you geht the filenames, the drivers needs?
as i cant use rpcclient to register the drivers from commandline.

best regards
thomas
# Thomas Stegbauer
#https://keyserver1.pgp.com/vkd/SubmitSearch.event?SearchCriteria=tho...@stegbauer.info
# PGP Fingerprint: C5B5 BDBD 6607 A9DF E545  0EC5 9DDF 9749 BD05 808A

Am 10.02.2011 15:37, schrieb Laurent Blume:

Hello all,

I'm running Samba 3.5.5 on Debian 5, and following the documentation 
as closely as I can to install drivers using rpcclient.


I first install the driver on a Windows 7 x65 workstation, then use 
rpcclient/smbclient to fetch the files.
I then use smbclient to put those on the print$ share of the Samba 
server. So far, so good.


Then I use rpcclient to add those files, and that appears to work:
rpcclient -U DOMAIN\\LOGIN%PASSWD -c adddriver \Windows x64\ \HP 
Universal Printing PS 
(v5.1):PSCRIPT5.dll:hpcu104s.ppd:hpmdp104.dll:PSCRIPT.HLP:NULL:RAW:hpcdmc64.dll,hpbcfgre.dll,hpcpu104.CFG,hpcui104.dll,hpcpe104.dll,hpcur104.dll,hpcpn104.dll,hpcsr104.dll,hpcst104.dll,hpcev104.dll,hpcu104s.hpx,hpcsc104.dtd,hpchl104.cab,hpzfn104.ntf,hpcu104.dem,hpmux104.dll,hpmur104.dll,hpmpm081.dll,hpmpw081.dll,hpmsn104.dll,hpmsl104.dll,hpcsat20.dll,hpcu104v.ini,hpcu104s.xml,hpcls104.dll,hpcss104.dll,FxCompChannel_x64.dll,cioum.dll,cioum64.msi,hpcpn104.dll,ps5ui.dll,pscript.ntf,ps_schm.gdl,hppdcompio.dll,hpcc6104.dll,HPDRVJCT.dll,hpfxcomw.dll,hpsysobj.dll\ 
HAPI64-CC

Printer Driver HP Universal Printing PS (v5.1) successfully installed.


But actually, things are going wrong: it does create the 3/ 
subdirectory, it does populate it with the files in print$/x64, but 
those files are kept there, not deleted as they should.


If I then try to delete it, there's something similar:

rpcclient $ deldriverex HP Universal Printing PS (v5.1)
Driver HP Universal Printing PS (v5.1) and files removed for arch 
[Windows x64] (version: 3).


But none of the files are really removed, they're still all there.

And so far, no error message that I can see.

Can anybody shed some light? TIA!

Laurent

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Printer drivers installation: files are not deleted

2011-03-15 Thread Thomas Stegbauer

my mailserver exchanged my sender-adress before.

Am 11.03.2011 16:59, schrieb Thomas Stegbauer:

Hallo Laurent,

i have a similar problem, here.
When trying to add a new printer via apw from a winXP32, the driver 
files get copied over to print$ on the ubuntu 10.04 Server (Samba 
3.4.7) afterwards it says Permission denied And the driver get not 
registered.


Where do you geht the filenames, the drivers needs?
as i cant use rpcclient to register the drivers from commandline.

best regards
thomas
# Thomas Stegbauer
#https://keyserver1.pgp.com/vkd/SubmitSearch.event?SearchCriteria=tho...@stegbauer.info
# PGP Fingerprint: C5B5 BDBD 6607 A9DF E545  0EC5 9DDF 9749 BD05 808A

Am 10.02.2011 15:37, schrieb Laurent Blume:

Hello all,

I'm running Samba 3.5.5 on Debian 5, and following the documentation 
as closely as I can to install drivers using rpcclient.


I first install the driver on a Windows 7 x65 workstation, then use 
rpcclient/smbclient to fetch the files.
I then use smbclient to put those on the print$ share of the Samba 
server. So far, so good.


Then I use rpcclient to add those files, and that appears to work:
rpcclient -U DOMAIN\\LOGIN%PASSWD -c adddriver \Windows x64\ \HP 
Universal Printing PS 
(v5.1):PSCRIPT5.dll:hpcu104s.ppd:hpmdp104.dll:PSCRIPT.HLP:NULL:RAW:hpcdmc64.dll,hpbcfgre.dll,hpcpu104.CFG,hpcui104.dll,hpcpe104.dll,hpcur104.dll,hpcpn104.dll,hpcsr104.dll,hpcst104.dll,hpcev104.dll,hpcu104s.hpx,hpcsc104.dtd,hpchl104.cab,hpzfn104.ntf,hpcu104.dem,hpmux104.dll,hpmur104.dll,hpmpm081.dll,hpmpw081.dll,hpmsn104.dll,hpmsl104.dll,hpcsat20.dll,hpcu104v.ini,hpcu104s.xml,hpcls104.dll,hpcss104.dll,FxCompChannel_x64.dll,cioum.dll,cioum64.msi,hpcpn104.dll,ps5ui.dll,pscript.ntf,ps_schm.gdl,hppdcompio.dll,hpcc6104.dll,HPDRVJCT.dll,hpfxcomw.dll,hpsysobj.dll\ 
HAPI64-CC

Printer Driver HP Universal Printing PS (v5.1) successfully installed.


But actually, things are going wrong: it does create the 3/ 
subdirectory, it does populate it with the files in print$/x64, but 
those files are kept there, not deleted as they should.


If I then try to delete it, there's something similar:

rpcclient $ deldriverex HP Universal Printing PS (v5.1)
Driver HP Universal Printing PS (v5.1) and files removed for arch 
[Windows x64] (version: 3).


But none of the files are really removed, they're still all there.

And so far, no error message that I can see.

Can anybody shed some light? TIA!

Laurent

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Printer drivers installation: files are not deleted

2011-03-15 Thread Thomas Stegbauer

Hello Daniel,

where do i get all the dlls needed for the driver?
the test HP Color Laserjet 2800 (PS) from Windows XP has 23files?
is it really needed to extract them from a fresh Windows Install?

net rpc rights is already done.

best regards
thomas


Am 15.03.2011 11:36, schrieb Daniel Müller:

Then try first:
Net rpc rights grant yourusername/or groupname SePrintOperatorPrivilege 
-Uyouradmin

The $DRVIER ist the driver you uploaded with rpcclient.
Rpcclient -L localhost -U root -c 'setdriver AdobePs5.dll adobe'



EDV Daniel Müller

Leitung EDV
Tropenklinik Paul-Lechler-Krankenhaus
Paul-Lechler-Str. 24
72076 Tübingen
Tel.: 07071/206-463, Fax: 07071/206-499
eMail: muel...@tropenklinik.de
Internet: www.tropenklinik.de

Von: Thomas Stegbauer [mailto:tho...@stegbauer.info]
Gesendet: Dienstag, 15. März 2011 11:20
An: muel...@tropenklinik.de
Cc: samba@lists.samba.org; Laurent Blume
Betreff: Re: [Samba] Printer drivers installation: files are not deleted

Hi Daniel,

thank you for your response.
What is the value of the variable $DRIVER?
 From documentation i read, this the is driver-name (as listed under advanced 
in the printer-settings on windows)
But if the driver does not get copied over?

best regards
thomas



Von: Daniel Müllermuel...@tropenklinik.de
An: Thomas Stegbauermailinglis...@stegbauer.info, Laurent 
Blumelaur...@opensolaris.org
CC: samba@lists.samba.org
Gesendet: Montag, 14. März 2011 08:54:41
Betreff: AW: [Samba] Printer drivers installation: files are not deleted

Did you made a: rpcclient -L localhost -Uyouruser -c 'setdriver $DRIVER
$PRINTER'

---
EDV Daniel Müller

Leitung EDV
Tropenklinik Paul-Lechler-Krankenhaus
Paul-Lechler-Str. 24
72076 Tübingen

Tel.: 07071/206-463, Fax: 07071/206-499
eMail: muel...@tropenklinik.de
Internet: www.tropenklinik.de
---

-Ursprüngliche Nachricht-
Von: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org] Im
Auftrag von Thomas Stegbauer
Gesendet: Sonntag, 13. März 2011 22:37
An: Laurent Blume
Cc: samba@lists.samba.org
Betreff: Re: [Samba] Printer drivers installation: files are not deleted

Hallo Laurent,

i have a similar problem, here.
When trying to add a new printer via apw from a winXP32, the driver
files get copied over to print$ on the ubuntu 10.04 Server (Samba 3.4.7)
afterwards it says Permission denied And the driver get not registered.

Where do you geht the filenames, the drivers needs?
as i cant use rpcclient to register the drivers from commandline.

best regards
thomas

# Thomas Stegbauer
#
https://keyserver1.pgp.com/vkd/SubmitSearch.event?SearchCriteria=thomas@steg
bauer.info
# PGP Fingerprint: C5B5 BDBD 6607 A9DF E545  0EC5 9DDF 9749 BD05 808A


Am 10.02.2011 15:37, schrieb Laurent Blume:

Hello all,

I'm running Samba 3.5.5 on Debian 5, and following the documentation
as closely as I can to install drivers using rpcclient.

I first install the driver on a Windows 7 x65 workstation, then use
rpcclient/smbclient to fetch the files.
I then use smbclient to put those on the print$ share of the Samba
server. So far, so good.

Then I use rpcclient to add those files, and that appears to work:
rpcclient -U DOMAIN\\LOGIN%PASSWD -c adddriver \Windows x64\ \HP
Universal Printing PS


(v5.1):PSCRIPT5.dll:hpcu104s.ppd:hpmdp104.dll:PSCRIPT.HLP:NULL:RAW:hpcdmc64.
dll,hpbcfgre.dll,hpcpu104.CFG,hpcui104.dll,hpcpe104.dll,hpcur104.dll,hpcpn10
4.dll,hpcsr104.dll,hpcst104.dll,hpcev104.dll,hpcu104s.hpx,hpcsc104.dtd,hpchl
104.cab,hpzfn104.ntf,hpcu104.dem,hpmux104.dll,hpmur104.dll,hpmpm081.dll,hpmp
w081.dll,hpmsn104.dll,hpmsl104.dll,hpcsat20.dll,hpcu104v.ini,hpcu104s.xml,hp
cls104.dll,hpcss104.dll,FxCompChannel_x64.dll,cioum.dll,cioum64.msi,hpcpn104
.dll,ps5ui.dll,pscript.ntf,ps_schm.gdl,hppdcompio.dll,hpcc6104.dll,HPDRVJCT.
dll,hpfxcomw.dll,hpsysobj.dll\

HAPI64-CC
Printer Driver HP Universal Printing PS (v5.1) successfully installed.


But actually, things are going wrong: it does create the 3/
subdirectory, it does populate it with the files in print$/x64, but
those files are kept there, not deleted as they should.

If I then try to delete it, there's something similar:

rpcclient $  deldriverex HP Universal Printing PS (v5.1)
Driver HP Universal Printing PS (v5.1) and files removed for arch
[Windows x64] (version: 3).

But none of the files are really removed, they're still all there.

And so far, no error message that I can see.

Can anybody shed some light? TIA!

Laurent

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Re: [Samba] Printer drivers installation: files are not deleted

2011-03-15 Thread Daniel Müller
If you already uploaded the driver  to  [print$]

 rpcclient -U DOMAIN\\LOGIN%PASSWD -c adddriver \Windows x64\ \HP 
 Universal Printing PS 
 (v5.1):PSCRIPT5.dll:hpcu104s.ppd:hpmdp104.dll:PSCRIPT.HLP:NULL:RAW:hpcdmc64.dll,hpbcfgre.dll,hpcpu104.CFG,hpcui104.dll,hpcpe104.dll,hpcur104.dll,hpcpn104.dll,hpcsr104.dll,hpcst104.dll,hpcev104.dll,hpcu104s.hpx,hpcsc104.dtd,hpchl104.cab,hpzfn104.ntf,hpcu104.dem,hpmux104.dll,hpmur104.dll,hpmpm081.dll,hpmpw081.dll,hpmsn104.dll,hpmsl104.dll,hpcsat20.dll,hpcu104v.ini,hpcu104s.xml,hpcls104.dll,hpcss104.dll,FxCompChannel_x64.dll,cioum.dll,cioum64.msi,hpcpn104.dll,ps5ui.dll,pscript.ntf,ps_schm.gdl,hppdcompio.dll,hpcc6104.dll,HPDRVJCT.dll,hpfxcomw.dll,hpsysobj.dll\
 HAPI64-CC
 Printer Driver HP Universal Printing PS (v5.1) successfully installed.



You need in this second step only to know what is the main driver:
This could be

Rpcclient -L localhost -U root -c 'setdriver PSCRIPT5.dll HP  Universal 
Printing PS '

---
EDV Daniel Müller

Leitung EDV
Tropenklinik Paul-Lechler-Krankenhaus
Paul-Lechler-Str. 24
72076 Tübingen

Tel.: 07071/206-463, Fax: 07071/206-499
eMail: muel...@tropenklinik.de
Internet: www.tropenklinik.de
---

-Ursprüngliche Nachricht-
Von: Thomas Stegbauer [mailto:mailinglis...@stegbauer.info] 
Gesendet: Dienstag, 15. März 2011 12:02
An: muel...@tropenklinik.de
Cc: samba@lists.samba.org
Betreff: Re: [Samba] Printer drivers installation: files are not deleted

Hello Daniel,

where do i get all the dlls needed for the driver?
the test HP Color Laserjet 2800 (PS) from Windows XP has 23files?
is it really needed to extract them from a fresh Windows Install?

net rpc rights is already done.

best regards
thomas


Am 15.03.2011 11:36, schrieb Daniel Müller:
 Then try first:
 Net rpc rights grant yourusername/or groupname SePrintOperatorPrivilege 
 -Uyouradmin

 The $DRVIER ist the driver you uploaded with rpcclient.
 Rpcclient -L localhost -U root -c 'setdriver AdobePs5.dll adobe'



 EDV Daniel Müller

 Leitung EDV
 Tropenklinik Paul-Lechler-Krankenhaus
 Paul-Lechler-Str. 24
 72076 Tübingen
 Tel.: 07071/206-463, Fax: 07071/206-499
 eMail: muel...@tropenklinik.de
 Internet: www.tropenklinik.de

 Von: Thomas Stegbauer [mailto:tho...@stegbauer.info]
 Gesendet: Dienstag, 15. März 2011 11:20
 An: muel...@tropenklinik.de
 Cc: samba@lists.samba.org; Laurent Blume
 Betreff: Re: [Samba] Printer drivers installation: files are not deleted

 Hi Daniel,

 thank you for your response.
 What is the value of the variable $DRIVER?
  From documentation i read, this the is driver-name (as listed under advanced 
 in the printer-settings on windows)
 But if the driver does not get copied over?

 best regards
 thomas


 
 Von: Daniel Müllermuel...@tropenklinik.de
 An: Thomas Stegbauermailinglis...@stegbauer.info, Laurent 
 Blumelaur...@opensolaris.org
 CC: samba@lists.samba.org
 Gesendet: Montag, 14. März 2011 08:54:41
 Betreff: AW: [Samba] Printer drivers installation: files are not deleted

 Did you made a: rpcclient -L localhost -Uyouruser -c 'setdriver $DRIVER
 $PRINTER'

 ---
 EDV Daniel Müller

 Leitung EDV
 Tropenklinik Paul-Lechler-Krankenhaus
 Paul-Lechler-Str. 24
 72076 Tübingen

 Tel.: 07071/206-463, Fax: 07071/206-499
 eMail: muel...@tropenklinik.de
 Internet: www.tropenklinik.de
 ---

 -Ursprüngliche Nachricht-
 Von: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org] Im
 Auftrag von Thomas Stegbauer
 Gesendet: Sonntag, 13. März 2011 22:37
 An: Laurent Blume
 Cc: samba@lists.samba.org
 Betreff: Re: [Samba] Printer drivers installation: files are not deleted

 Hallo Laurent,

 i have a similar problem, here.
 When trying to add a new printer via apw from a winXP32, the driver
 files get copied over to print$ on the ubuntu 10.04 Server (Samba 3.4.7)
 afterwards it says Permission denied And the driver get not registered.

 Where do you geht the filenames, the drivers needs?
 as i cant use rpcclient to register the drivers from commandline.

 best regards
 thomas

 # Thomas Stegbauer
 #
 https://keyserver1.pgp.com/vkd/SubmitSearch.event?SearchCriteria=thomas@steg
 bauer.info
 # PGP Fingerprint: C5B5 BDBD 6607 A9DF E545  0EC5 9DDF 9749 BD05 808A


 Am 10.02.2011 15:37, schrieb Laurent Blume:
 Hello all,

 I'm running Samba 3.5.5 on Debian 5, and following the documentation
 as closely as I can to install drivers using rpcclient.

 I first install the driver on a Windows 7 x65 workstation, then use
 rpcclient/smbclient to fetch the files.
 I then use smbclient to put those on the print$ share of the Samba
 server. So far, so good.

 Then I use rpcclient to add those files, and that appears to work:
 rpcclient -U DOMAIN\\LOGIN%PASSWD -c adddriver \Windows x64\ \HP
 Universal Printing PS

 (v5.1):PSCRIPT5.dll:hpcu104s.ppd:hpmdp104

Re: [Samba] Printer drivers installation: files are not deleted

2011-03-15 Thread Thomas Stegbauer

ok, where do i know what files do need?
all files from the extracted directory?
for example i have an oki ES7411 the extracted directory looks like this:

not all files listed.
oki-c610
  OKB3S035.INF file
  OK091U0S.CCM file
  okb3x035.hlp file
  i386 directory (containing 19files)
askoki.dll
OKC711B3.PPD
..
  amd64 directory (containing 17 files)
OKC711BA.PPD
...

interesting there are PPD in one directory, but not in the other.

where do i get the driver Name HP Universal Printing PS (v5.1)
this is the name listd in the advanced tab driver on the windows client?
or can this get extracted from the inf file?






Am 15.03.2011 12:30, schrieb Daniel Müller:

If you already uploaded the driver  to  [print$]


rpcclient -U DOMAIN\\LOGIN%PASSWD -c adddriver \Windows x64\ \HP
Universal Printing PS
(v5.1):PSCRIPT5.dll:hpcu104s.ppd:hpmdp104.dll:PSCRIPT.HLP:NULL:RAW:hpcdmc64.dll,hpbcfgre.dll,hpcpu104.CFG,hpcui104.dll,hpcpe104.dll,hpcur104.dll,hpcpn104.dll,hpcsr104.dll,hpcst104.dll,hpcev104.dll,hpcu104s.hpx,hpcsc104.dtd,hpchl104.cab,hpzfn104.ntf,hpcu104.dem,hpmux104.dll,hpmur104.dll,hpmpm081.dll,hpmpw081.dll,hpmsn104.dll,hpmsl104.dll,hpcsat20.dll,hpcu104v.ini,hpcu104s.xml,hpcls104.dll,hpcss104.dll,FxCompChannel_x64.dll,cioum.dll,cioum64.msi,hpcpn104.dll,ps5ui.dll,pscript.ntf,ps_schm.gdl,hppdcompio.dll,hpcc6104.dll,HPDRVJCT.dll,hpfxcomw.dll,hpsysobj.dll\
HAPI64-CC
Printer Driver HP Universal Printing PS (v5.1) successfully installed.



You need in this second step only to know what is the main driver:
This could be

Rpcclient -L localhost -U root -c 'setdriver PSCRIPT5.dll HP  Universal Printing 
PS '

---
EDV Daniel Müller

Leitung EDV
Tropenklinik Paul-Lechler-Krankenhaus
Paul-Lechler-Str. 24
72076 Tübingen

Tel.: 07071/206-463, Fax: 07071/206-499
eMail: muel...@tropenklinik.de
Internet: www.tropenklinik.de
---

-Ursprüngliche Nachricht-
Von: Thomas Stegbauer [mailto:mailinglis...@stegbauer.info]
Gesendet: Dienstag, 15. März 2011 12:02
An: muel...@tropenklinik.de
Cc: samba@lists.samba.org
Betreff: Re: [Samba] Printer drivers installation: files are not deleted

Hello Daniel,

where do i get all the dlls needed for the driver?
the test HP Color Laserjet 2800 (PS) from Windows XP has 23files?
is it really needed to extract them from a fresh Windows Install?

net rpc rights is already done.

best regards
thomas


Am 15.03.2011 11:36, schrieb Daniel Müller:

Then try first:
Net rpc rights grant yourusername/or groupname SePrintOperatorPrivilege 
-Uyouradmin

The $DRVIER ist the driver you uploaded with rpcclient.
Rpcclient -L localhost -U root -c 'setdriver AdobePs5.dll adobe'



EDV Daniel Müller

Leitung EDV
Tropenklinik Paul-Lechler-Krankenhaus
Paul-Lechler-Str. 24
72076 Tübingen
Tel.: 07071/206-463, Fax: 07071/206-499
eMail: muel...@tropenklinik.de
Internet: www.tropenklinik.de

Von: Thomas Stegbauer [mailto:tho...@stegbauer.info]
Gesendet: Dienstag, 15. März 2011 11:20
An: muel...@tropenklinik.de
Cc: samba@lists.samba.org; Laurent Blume
Betreff: Re: [Samba] Printer drivers installation: files are not deleted

Hi Daniel,

thank you for your response.
What is the value of the variable $DRIVER?
  From documentation i read, this the is driver-name (as listed under advanced 
in the printer-settings on windows)
But if the driver does not get copied over?

best regards
thomas



Von: Daniel Müllermuel...@tropenklinik.de
An: Thomas Stegbauermailinglis...@stegbauer.info, Laurent 
Blumelaur...@opensolaris.org
CC: samba@lists.samba.org
Gesendet: Montag, 14. März 2011 08:54:41
Betreff: AW: [Samba] Printer drivers installation: files are not deleted

Did you made a: rpcclient -L localhost -Uyouruser -c 'setdriver $DRIVER
$PRINTER'

---
EDV Daniel Müller

Leitung EDV
Tropenklinik Paul-Lechler-Krankenhaus
Paul-Lechler-Str. 24
72076 Tübingen

Tel.: 07071/206-463, Fax: 07071/206-499
eMail: muel...@tropenklinik.de
Internet: www.tropenklinik.de
---

-Ursprüngliche Nachricht-
Von: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org] Im
Auftrag von Thomas Stegbauer
Gesendet: Sonntag, 13. März 2011 22:37
An: Laurent Blume
Cc: samba@lists.samba.org
Betreff: Re: [Samba] Printer drivers installation: files are not deleted

Hallo Laurent,

i have a similar problem, here.
When trying to add a new printer via apw from a winXP32, the driver
files get copied over to print$ on the ubuntu 10.04 Server (Samba 3.4.7)
afterwards it says Permission denied And the driver get not registered.

Where do you geht the filenames, the drivers needs?
as i cant use rpcclient to register the drivers from commandline.

best regards
thomas

# Thomas Stegbauer
#
https://keyserver1.pgp.com/vkd/SubmitSearch.event?SearchCriteria=thomas@steg
bauer.info
# PGP Fingerprint: C5B5 BDBD 6607 A9DF

Re: [Samba] Printer drivers installation: files are not deleted

2011-03-15 Thread Thomas Stegbauer


Am 14.03.2011 09:04, schrieb Laurent Blume:

Le 13.03.2011 22:37, Thomas Stegbauer a écrit :

i have a similar problem, here.
When trying to add a new printer via apw from a winXP32, the driver
files get copied over to print$ on the ubuntu 10.04 Server (Samba 3.4.7)
afterwards it says Permission denied And the driver get not 
registered.


I think thatś most probably a permission issue on the server. Does the 
user you connect with have printer administrator privilege? Ie, member 
of the printadm group or similar?



Where do you geht the filenames, the drivers needs?
as i cant use rpcclient to register the drivers from commandline.


I followed the documentation on that: I install them on a clean test 
system (win7 x64), then extract the list of files and the files 
themselves using rpcclient. That part works.


Laurent


hi laurent,

i cant imagin, where this permission is set.

1. i apply the driver via apw from windows xp32 as root
2. net rpc rights list root
Enter root's password:
SePrintOperatorPrivilege
3. i can was able to upload the driver for
HP Color LaserJet PS

but i cant upload
Kyocera 5350 UPD or KX driver
also not
OK ES7411 PS (v1.0.0)

best regards
thomas



--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Re: [Samba] Printer drivers installation: files are not deleted

2011-03-14 Thread Daniel Müller
Did you made a: rpcclient -L localhost -Uyouruser -c 'setdriver $DRIVER
$PRINTER'

---
EDV Daniel Müller

Leitung EDV
Tropenklinik Paul-Lechler-Krankenhaus
Paul-Lechler-Str. 24
72076 Tübingen

Tel.: 07071/206-463, Fax: 07071/206-499
eMail: muel...@tropenklinik.de
Internet: www.tropenklinik.de
---

-Ursprüngliche Nachricht-
Von: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org] Im
Auftrag von Thomas Stegbauer
Gesendet: Sonntag, 13. März 2011 22:37
An: Laurent Blume
Cc: samba@lists.samba.org
Betreff: Re: [Samba] Printer drivers installation: files are not deleted

Hallo Laurent,

i have a similar problem, here.
When trying to add a new printer via apw from a winXP32, the driver 
files get copied over to print$ on the ubuntu 10.04 Server (Samba 3.4.7) 
afterwards it says Permission denied And the driver get not registered.

Where do you geht the filenames, the drivers needs?
as i cant use rpcclient to register the drivers from commandline.

best regards
thomas

# Thomas Stegbauer
#
https://keyserver1.pgp.com/vkd/SubmitSearch.event?SearchCriteria=thomas@steg
bauer.info
# PGP Fingerprint: C5B5 BDBD 6607 A9DF E545  0EC5 9DDF 9749 BD05 808A


Am 10.02.2011 15:37, schrieb Laurent Blume:
 Hello all,

 I'm running Samba 3.5.5 on Debian 5, and following the documentation 
 as closely as I can to install drivers using rpcclient.

 I first install the driver on a Windows 7 x65 workstation, then use 
 rpcclient/smbclient to fetch the files.
 I then use smbclient to put those on the print$ share of the Samba 
 server. So far, so good.

 Then I use rpcclient to add those files, and that appears to work:
 rpcclient -U DOMAIN\\LOGIN%PASSWD -c adddriver \Windows x64\ \HP 
 Universal Printing PS 

(v5.1):PSCRIPT5.dll:hpcu104s.ppd:hpmdp104.dll:PSCRIPT.HLP:NULL:RAW:hpcdmc64.
dll,hpbcfgre.dll,hpcpu104.CFG,hpcui104.dll,hpcpe104.dll,hpcur104.dll,hpcpn10
4.dll,hpcsr104.dll,hpcst104.dll,hpcev104.dll,hpcu104s.hpx,hpcsc104.dtd,hpchl
104.cab,hpzfn104.ntf,hpcu104.dem,hpmux104.dll,hpmur104.dll,hpmpm081.dll,hpmp
w081.dll,hpmsn104.dll,hpmsl104.dll,hpcsat20.dll,hpcu104v.ini,hpcu104s.xml,hp
cls104.dll,hpcss104.dll,FxCompChannel_x64.dll,cioum.dll,cioum64.msi,hpcpn104
.dll,ps5ui.dll,pscript.ntf,ps_schm.gdl,hppdcompio.dll,hpcc6104.dll,HPDRVJCT.
dll,hpfxcomw.dll,hpsysobj.dll\ 
 HAPI64-CC
 Printer Driver HP Universal Printing PS (v5.1) successfully installed.


 But actually, things are going wrong: it does create the 3/ 
 subdirectory, it does populate it with the files in print$/x64, but 
 those files are kept there, not deleted as they should.

 If I then try to delete it, there's something similar:

 rpcclient $ deldriverex HP Universal Printing PS (v5.1)
 Driver HP Universal Printing PS (v5.1) and files removed for arch 
 [Windows x64] (version: 3).

 But none of the files are really removed, they're still all there.

 And so far, no error message that I can see.

 Can anybody shed some light? TIA!

 Laurent
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Printer drivers installation: files are not deleted

2011-03-14 Thread Laurent Blume

Le 13.03.2011 22:37, Thomas Stegbauer a écrit :

i have a similar problem, here.
When trying to add a new printer via apw from a winXP32, the driver
files get copied over to print$ on the ubuntu 10.04 Server (Samba 3.4.7)
afterwards it says Permission denied And the driver get not registered.


I think thatś most probably a permission issue on the server. Does the 
user you connect with have printer administrator privilege? Ie, member 
of the printadm group or similar?



Where do you geht the filenames, the drivers needs?
as i cant use rpcclient to register the drivers from commandline.


I followed the documentation on that: I install them on a clean test 
system (win7 x64), then extract the list of files and the files 
themselves using rpcclient. That part works.


Laurent
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Re: [Samba] Printer drivers installation: files are not deleted

2011-03-13 Thread Thomas Stegbauer

Hallo Laurent,

i have a similar problem, here.
When trying to add a new printer via apw from a winXP32, the driver 
files get copied over to print$ on the ubuntu 10.04 Server (Samba 3.4.7) 
afterwards it says Permission denied And the driver get not registered.


Where do you geht the filenames, the drivers needs?
as i cant use rpcclient to register the drivers from commandline.

best regards
thomas

# Thomas Stegbauer
# 
https://keyserver1.pgp.com/vkd/SubmitSearch.event?SearchCriteria=tho...@stegbauer.info
# PGP Fingerprint: C5B5 BDBD 6607 A9DF E545  0EC5 9DDF 9749 BD05 808A


Am 10.02.2011 15:37, schrieb Laurent Blume:

Hello all,

I'm running Samba 3.5.5 on Debian 5, and following the documentation 
as closely as I can to install drivers using rpcclient.


I first install the driver on a Windows 7 x65 workstation, then use 
rpcclient/smbclient to fetch the files.
I then use smbclient to put those on the print$ share of the Samba 
server. So far, so good.


Then I use rpcclient to add those files, and that appears to work:
rpcclient -U DOMAIN\\LOGIN%PASSWD -c adddriver \Windows x64\ \HP 
Universal Printing PS 
(v5.1):PSCRIPT5.dll:hpcu104s.ppd:hpmdp104.dll:PSCRIPT.HLP:NULL:RAW:hpcdmc64.dll,hpbcfgre.dll,hpcpu104.CFG,hpcui104.dll,hpcpe104.dll,hpcur104.dll,hpcpn104.dll,hpcsr104.dll,hpcst104.dll,hpcev104.dll,hpcu104s.hpx,hpcsc104.dtd,hpchl104.cab,hpzfn104.ntf,hpcu104.dem,hpmux104.dll,hpmur104.dll,hpmpm081.dll,hpmpw081.dll,hpmsn104.dll,hpmsl104.dll,hpcsat20.dll,hpcu104v.ini,hpcu104s.xml,hpcls104.dll,hpcss104.dll,FxCompChannel_x64.dll,cioum.dll,cioum64.msi,hpcpn104.dll,ps5ui.dll,pscript.ntf,ps_schm.gdl,hppdcompio.dll,hpcc6104.dll,HPDRVJCT.dll,hpfxcomw.dll,hpsysobj.dll\ 
HAPI64-CC

Printer Driver HP Universal Printing PS (v5.1) successfully installed.


But actually, things are going wrong: it does create the 3/ 
subdirectory, it does populate it with the files in print$/x64, but 
those files are kept there, not deleted as they should.


If I then try to delete it, there's something similar:

rpcclient $ deldriverex HP Universal Printing PS (v5.1)
Driver HP Universal Printing PS (v5.1) and files removed for arch 
[Windows x64] (version: 3).


But none of the files are really removed, they're still all there.

And so far, no error message that I can see.

Can anybody shed some light? TIA!

Laurent

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Printer drivers installation: files are not deleted

2011-03-13 Thread Thomas Stegbauer

Hallo Laurent,

i have a similar problem, here.
When trying to add a new printer via apw from a winXP32, the driver 
files get copied over to print$ on the ubuntu 10.04 Server (Samba 3.4.7) 
afterwards it says Permission denied And the driver get not registered.


Where do you geht the filenames, the drivers needs?
as i cant use rpcclient to register the drivers from commandline.

best regards
thomas

# Thomas Stegbauer
# 
https://keyserver1.pgp.com/vkd/SubmitSearch.event?SearchCriteria=tho...@stegbauer.info
# PGP Fingerprint: C5B5 BDBD 6607 A9DF E545  0EC5 9DDF 9749 BD05 808A


Am 10.02.2011 15:37, schrieb Laurent Blume:

Hello all,

I'm running Samba 3.5.5 on Debian 5, and following the documentation 
as closely as I can to install drivers using rpcclient.


I first install the driver on a Windows 7 x65 workstation, then use 
rpcclient/smbclient to fetch the files.
I then use smbclient to put those on the print$ share of the Samba 
server. So far, so good.


Then I use rpcclient to add those files, and that appears to work:
rpcclient -U DOMAIN\\LOGIN%PASSWD -c adddriver \Windows x64\ \HP 
Universal Printing PS 
(v5.1):PSCRIPT5.dll:hpcu104s.ppd:hpmdp104.dll:PSCRIPT.HLP:NULL:RAW:hpcdmc64.dll,hpbcfgre.dll,hpcpu104.CFG,hpcui104.dll,hpcpe104.dll,hpcur104.dll,hpcpn104.dll,hpcsr104.dll,hpcst104.dll,hpcev104.dll,hpcu104s.hpx,hpcsc104.dtd,hpchl104.cab,hpzfn104.ntf,hpcu104.dem,hpmux104.dll,hpmur104.dll,hpmpm081.dll,hpmpw081.dll,hpmsn104.dll,hpmsl104.dll,hpcsat20.dll,hpcu104v.ini,hpcu104s.xml,hpcls104.dll,hpcss104.dll,FxCompChannel_x64.dll,cioum.dll,cioum64.msi,hpcpn104.dll,ps5ui.dll,pscript.ntf,ps_schm.gdl,hppdcompio.dll,hpcc6104.dll,HPDRVJCT.dll,hpfxcomw.dll,hpsysobj.dll\ 
HAPI64-CC

Printer Driver HP Universal Printing PS (v5.1) successfully installed.


But actually, things are going wrong: it does create the 3/ 
subdirectory, it does populate it with the files in print$/x64, but 
those files are kept there, not deleted as they should.


If I then try to delete it, there's something similar:

rpcclient $ deldriverex HP Universal Printing PS (v5.1)
Driver HP Universal Printing PS (v5.1) and files removed for arch 
[Windows x64] (version: 3).


But none of the files are really removed, they're still all there.

And so far, no error message that I can see.

Can anybody shed some light? TIA!

Laurent

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Printer drivers installation: files are not deleted

2011-02-10 Thread Laurent Blume

Hello all,

I'm running Samba 3.5.5 on Debian 5, and following the documentation as 
closely as I can to install drivers using rpcclient.


I first install the driver on a Windows 7 x65 workstation, then use 
rpcclient/smbclient to fetch the files.
I then use smbclient to put those on the print$ share of the Samba 
server. So far, so good.


Then I use rpcclient to add those files, and that appears to work:
rpcclient -U DOMAIN\\LOGIN%PASSWD -c adddriver \Windows x64\ \HP 
Universal Printing PS 
(v5.1):PSCRIPT5.dll:hpcu104s.ppd:hpmdp104.dll:PSCRIPT.HLP:NULL:RAW:hpcdmc64.dll,hpbcfgre.dll,hpcpu104.CFG,hpcui104.dll,hpcpe104.dll,hpcur104.dll,hpcpn104.dll,hpcsr104.dll,hpcst104.dll,hpcev104.dll,hpcu104s.hpx,hpcsc104.dtd,hpchl104.cab,hpzfn104.ntf,hpcu104.dem,hpmux104.dll,hpmur104.dll,hpmpm081.dll,hpmpw081.dll,hpmsn104.dll,hpmsl104.dll,hpcsat20.dll,hpcu104v.ini,hpcu104s.xml,hpcls104.dll,hpcss104.dll,FxCompChannel_x64.dll,cioum.dll,cioum64.msi,hpcpn104.dll,ps5ui.dll,pscript.ntf,ps_schm.gdl,hppdcompio.dll,hpcc6104.dll,HPDRVJCT.dll,hpfxcomw.dll,hpsysobj.dll\ 
HAPI64-CC

Printer Driver HP Universal Printing PS (v5.1) successfully installed.


But actually, things are going wrong: it does create the 3/ 
subdirectory, it does populate it with the files in print$/x64, but 
those files are kept there, not deleted as they should.


If I then try to delete it, there's something similar:

rpcclient $ deldriverex HP Universal Printing PS (v5.1)
Driver HP Universal Printing PS (v5.1) and files removed for arch 
[Windows x64] (version: 3).


But none of the files are really removed, they're still all there.

And so far, no error message that I can see.

Can anybody shed some light? TIA!

Laurent
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] printer drivers from windows 7 MMC?

2010-12-24 Thread Christ Schlacta
I found a fancy, easy (seeming) way to add printer drivers in windows 7 
since the old methods don't seem to work anymore.


if you run mmc, you can add a snapin called print management, which 
enables you to manage various things (drivers, forms, ports, and 
printers to be most important).  Problem is, I can't figure out how to 
use the Drivers method to add drivers.  I get a Failed to add driver. 
Access is denied error, can I can't figure fromwhere this error might 
be issued.  my laptop is ikari, so I tried to less 
/var/log/samba/log.ikari, but there were no errors relating to 
permission being denied..  my user is a member of the samba group 
lpadmin, and the share has write list = @lpadmin and the directory 
it points to is chmod g+s and chgrp -R lpadmin.  far as I can tell I can 
write to this directory and there's no reason I shan't be able to 
accomplish this except the mysterious access denied error.


I tried adding the (Apparently deprecated) printer admin = @lpadmin 
option to the printer and print$ shares, but it didn't help.  I'll be 
removing it.  my google-fu couldn't find the replacement attribute.


so the question is..  what do I need to do?  is windows 7 incapable of 
doing this, or do I just need to somehow add the missing magic 
permission somewhere?


PS: This isn't a member of a domain, it's not currently related to my 
other domain issues, though the server will eventually be in the final, 
completed domain)

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] printer drivers from windows 7 MMC?

2010-12-24 Thread Ryan Novosielski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 12/24/2010 03:32 AM, Christ Schlacta wrote:
 I found a fancy, easy (seeming) way to add printer drivers in windows 7
 since the old methods don't seem to work anymore.
 
 if you run mmc, you can add a snapin called print management, which
 enables you to manage various things (drivers, forms, ports, and
 printers to be most important).  Problem is, I can't figure out how to
 use the Drivers method to add drivers.  I get a Failed to add driver.
 Access is denied error, can I can't figure fromwhere this error might
 be issued.  my laptop is ikari, so I tried to less
 /var/log/samba/log.ikari, but there were no errors relating to
 permission being denied..  my user is a member of the samba group
 lpadmin, and the share has write list = @lpadmin and the directory
 it points to is chmod g+s and chgrp -R lpadmin.  far as I can tell I can
 write to this directory and there's no reason I shan't be able to
 accomplish this except the mysterious access denied error.
 
 I tried adding the (Apparently deprecated) printer admin = @lpadmin
 option to the printer and print$ shares, but it didn't help.  I'll be
 removing it.  my google-fu couldn't find the replacement attribute.
 
 so the question is..  what do I need to do?  is windows 7 incapable of
 doing this, or do I just need to somehow add the missing magic
 permission somewhere?
 
 PS: This isn't a member of a domain, it's not currently related to my
 other domain issues, though the server will eventually be in the final,
 completed domain)

I could be on the wrong track here, but could the
SePrintOperatorPrivilege that's set with the net command have anything
to do with this (and if not that specific privilege, one of the others
that is in the same set). That's been the right way to delegate
permissions to a printer admin for some time, even before Windows 7.

If that's all it is, thanks for the neat trick!

- -- 
-  _  _ _  _ ___  _  _  _
|Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Sr. Systems Programmer
|$| |__| |  | |__/ | \| _| |novos...@umdnj.edu - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent.|IST/CST-Academic Svcs. - ADMC 450, Newark
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0UyGUACgkQmb+gadEcsb6QMQCdF5OqykkOIgN/i0lWO3YvyyYc
VYoAoNGpp8YZI+KYAutek2AoyJ9Plsyt
=XEkw
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Re: [Samba] printer drivers from windows 7 MMC?

2010-12-24 Thread Christ Schlacta
I didn't figure out how to add that permission.  is there a guide 
somewhere that lists all relevant permissions and how to set them?


turns out that a big part of the problem was related to changing the 
samba host SID.  that raises an interresting question which I'll ask in 
a separate post.


I still had to map drivers to printers using the command line, but other 
than that, it worked excellently to load drivers.


the process to map drivers is this easy:
rpcclient -c enumprinters  printserver
rpcclient -c enumdrivers printserver
sudo rpcclient -c 'setdriver printer from 1 driver from 2 density

but because of the permission problem above I had to run the last as 
root, which meant adding a password and re-enabling samba root account.


On 12/24/2010 08:20, Ryan Novosielski wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 12/24/2010 03:32 AM, Christ Schlacta wrote:

I found a fancy, easy (seeming) way to add printer drivers in windows 7
since the old methods don't seem to work anymore.

if you run mmc, you can add a snapin called print management, which
enables you to manage various things (drivers, forms, ports, and
printers to be most important).  Problem is, I can't figure out how to
use the Drivers method to add drivers.  I get a Failed to add driver.
Access is denied error, can I can't figure fromwhere this error might
be issued.  my laptop is ikari, so I tried to less
/var/log/samba/log.ikari, but there were no errors relating to
permission being denied..  my user is a member of the samba group
lpadmin, and the share has write list = @lpadmin and the directory
it points to is chmod g+s and chgrp -R lpadmin.  far as I can tell I can
write to this directory and there's no reason I shan't be able to
accomplish this except the mysterious access denied error.

I tried adding the (Apparently deprecated) printer admin = @lpadmin
option to the printer and print$ shares, but it didn't help.  I'll be
removing it.  my google-fu couldn't find the replacement attribute.

so the question is..  what do I need to do?  is windows 7 incapable of
doing this, or do I just need to somehow add the missing magic
permission somewhere?

PS: This isn't a member of a domain, it's not currently related to my
other domain issues, though the server will eventually be in the final,
completed domain)

I could be on the wrong track here, but could the
SePrintOperatorPrivilege that's set with the net command have anything
to do with this (and if not that specific privilege, one of the others
that is in the same set). That's been the right way to delegate
permissions to a printer admin for some time, even before Windows 7.

If that's all it is, thanks for the neat trick!

- -- 
-  _  _ _  _ ___  _  _  _

|Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Sr. Systems Programmer
|$| |__| |  | |__/ | \| _| |novos...@umdnj.edu - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent.|IST/CST-Academic Svcs. - ADMC 450, Newark
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0UyGUACgkQmb+gadEcsb6QMQCdF5OqykkOIgN/i0lWO3YvyyYc
VYoAoNGpp8YZI+KYAutek2AoyJ9Plsyt
=XEkw
-END PGP SIGNATURE-


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] printer drivers from windows 7 MMC?

2010-12-24 Thread dale

-Original message-
From: Christ Schlacta li...@aarcane.org
Date: Fri, 24 Dec 2010 14:10:38 -0600
To: samba@lists.samba.org
Subject: Re: [Samba] printer drivers from windows 7 MMC?

 I didn't figure out how to add that permission.  is there a guide 
 somewhere that lists all relevant permissions and how to set them?

I believe this is what you're looking for:
http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/NetCommand.html#id2601333

Dale
 
 turns out that a big part of the problem was related to changing the

 samba host SID.  that raises an interresting question which I'll ask
in 
 a separate post.
 
 I still had to map drivers to printers using the command line, but
other 
 than that, it worked excellently to load drivers.
 
 the process to map drivers is this easy:
 rpcclient -c enumprinters printserver
 rpcclient -c enumdrivers printserver
 sudo rpcclient -c 'setdriver   density
 
 but because of the permission problem above I had to run the last as

 root, which meant adding a password and re-enabling samba root
account.
 
 On 12/24/2010 08:20, Ryan Novosielski wrote:
  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1
 
  On 12/24/2010 03:32 AM, Christ Schlacta wrote:
  I found a fancy, easy (seeming) way to add printer drivers in
windows 7
  since the old methods don't seem to work anymore.
 
  if you run mmc, you can add a snapin called print management,
which
  enables you to manage various things (drivers, forms, ports, and
  printers to be most important).  Problem is, I can't figure out
how to
  use theDrivers method to add drivers.  I get a Failed to add
driver.
  Access is denied error, can I can't figure fromwhere this error
might
  be issued.  my laptop is ikari, so I tried to less
  /var/log/samba/log.ikari, but there were no errors relating to
  permission being denied..  my user is a member of the samba group
  lpadmin, and the share has write list = @lpadmin and the
directory
  it points to is chmod g+s and chgrp -R lpadmin.  far as I can
tell I can
  write to this directory and there's no reason I shan't be able to
  accomplish this except the mysterious access denied error.
 
  I tried adding the (Apparently deprecated) printer admin =
@lpadmin
  option to the printer and print$ shares, but it didn't help. 
I'll be
 removing it.  my google-fu couldn't find the replacement
attribute.
 
  so the question is..  what do I need to do?  is windows 7
incapable of
  doing this, or do I just need to somehow add the missing magic
  permission somewhere?
 
  PS: This isn't a member of a domain, it's not currently related
to my
  other domain issues, though the server will eventually be in the
final,
  completed domain)
  I could be on the wrong track here, but could the
  SePrintOperatorPrivilege that's set with the net command have
anything
  to do with this (and if not that specific privilege, one of the
others
  that is in the same set). That's been the right way to delegate
  permissions to a printer admin for some time, even before Windows
7.
 
  If that's all it is,thanks for the neat trick!
 
  - -- 
  -  _  _ _  _ ___  _  _  _
  |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Sr. Systems
Programmer
  |$| |__| |  | |__/ | \| _| |novos...@umdnj.edu - 973/972.0922
(2-0922)
  \__/ Univ. of Med. and Dent.|IST/CST-Academic Svcs. - ADMC 450,
Newark
  -BEGIN PGP SIGNATURE-
  Version: GnuPG v1.4.10 (GNU/Linux)
  Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
 
  iEYEARECAAYFAk0UyGUACgkQmb+gadEcsb6QMQCdF5OqykkOIgN/i0lWO3YvyyYc
  VYoAoNGpp8YZI+KYAutek2AoyJ9Plsyt
  =XEkw
  -END PGP SIGNATURE-
 
 -- 
 To unsubscribe from this list go to the following URL and read the
 instructions:  https://lists.samba.org/mailman/options/samba
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] printer drivers - Add Printer Wizard disabled

2008-05-27 Thread Joshua Swink
I'm following along in the guide, trying to make printer drivers
available from Samba. But when I right-click on a printer in Windows
XP and select the properties tab, it's disabled:

http://tinypic.com/usermedia.php?uo=BMeeHijW2w%2FyTvDsjpQbEQ%3D%3D

So how do I enable this so the client can upload the drivers? So far I
have tried:

* Add the name of the user as printer admin = username in smb.conf.
However, testparm told me that printer admin was deprecated. Also it
didn't work.
* I wasn't sure if I was connected as a guest, so disabled all guest
ok = yes settings. However, this didn't prompt Windows to pop up a
login dialog and the printer wizard remains disabled.


Here is the output of smbstatus. It shows the machine I was connected
from. smb.conf contains printer admin = pmoose in the [print$]
section, yet I still can't upload the driver.

==CUT===
[EMAIL PROTECTED]:/etc/samba# smbstatus

Samba version 3.0.28a
PID Username  Group Machine
---

Service  pid machine   Connected at
---
IPC$ 16232   pmoose1   Tue May 27 23:38:06 2008

No locked files
==CUT===

Thanks for any assistance.

Josh
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] printer drivers - Add Printer Wizard disabled

2008-05-27 Thread Lukasz Szybalski
On Tue, May 27, 2008 at 6:55 PM, Joshua Swink [EMAIL PROTECTED] wrote:
 I'm following along in the guide, trying to make printer drivers
 available from Samba. But when I right-click on a printer in Windows
 XP and select the properties tab, it's disabled:

 http://tinypic.com/usermedia.php?uo=BMeeHijW2w%2FyTvDsjpQbEQ%3D%3D

 So how do I enable this so the client can upload the drivers? So far I
 have tried:

 * Add the name of the user as printer admin = username in smb.conf.
 However, testparm told me that printer admin was deprecated. Also it
 didn't work.
 * I wasn't sure if I was connected as a guest, so disabled all guest
 ok = yes settings. However, this didn't prompt Windows to pop up a
 login dialog and the printer wizard remains disabled.


 Here is the output of smbstatus. It shows the machine I was connected
 from. smb.conf contains printer admin = pmoose in the [print$]
 section, yet I still can't upload the driver.

 ==CUT===
 [EMAIL PROTECTED]:/etc/samba# smbstatus

 Samba version 3.0.28a
 PID Username  Group Machine
 ---

 Service  pid machine   Connected at
 ---
 IPC$ 16232   pmoose1   Tue May 27 23:38:06 2008

 No locked files
 ==CUT===


as a temorary workaround try using:

force user = myusername

myusername should be somebody that has privillages to write to samba
driver directory..

Lucas
http://www.lucasmanual.com/mywiki/SambaDomainController
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] printer drivers - Add Printer Wizard disabled

2008-05-27 Thread Michael Heydon

Joshua Swink wrote:

* Add the name of the user as printer admin = username in smb.conf.
However, testparm told me that printer admin was deprecated. Also it
didn't work.

  

From the smb.conf man page:

 printer admin (S)
 ...
This  parameter  has been marked deprecated in favor of 
using the
SePrintOperatorPrivilege and individual print  security  
descrip-

tors. It will be removed in a future release.

You can use the net command to grant SePrintOperatorPrivilege to your 
user.




*Michael Heydon - IT Administrator *
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Printer Drivers on Samba server

2007-04-03 Thread Willy Offermans
Hello Lutieri and Samba Friends,

On Tue, Mar 27, 2007 at 05:46:38PM +, Lutieri G. wrote:
 take a look here:
 http://www.wlug.org.nz/SambaPrinting
 
 and
 
 http://samba.org/samba/docs/man/Samba-HOWTO-Collection/CUPS-printing.html#id373732
 
 2007/3/20, Willy Offermans [EMAIL PROTECTED]:
 Dear Samba friends,
 
 I want to have the printer drivers on the samba server. I have created
 the following share in the smb.conf file:
 
 [print$]
 comment = Printer Driver Download Area
 path = /usr/local/samba/printers
 valid users = @XXX
 write list = @YYY, root, jo, willy
 printer admin = @YYY
 browseable = No
 
 @XXX are the normal printer users. @YYY are administrators.
 
 This is the physical directory:
 
 drwxrwxrwx  3 root  @YYY  512 Feb 13 16:49 /usr/local/samba/printers
 
 There is another share for the printers:
 
 [printers]
 comment = All Printers
 path = /var/spool/samba
 printer admin = @RompenStaff
 guest ok = Yes
 printable = Yes
 browseable = No
 
 However this share can not be accessed. It cannot be found from the
 windows xp clients. I do not know how to upload the printer drivers. I
 do not know if this setup is going to work at all.
 
 Can someone help me?

I have solved the problem successfully. The key to the solution was the
execution of \\sun\print$ from the windows start execute thingy, that
did not work. Running \\sun however worked and gave me access to the
pinters and faxes subdirectory mouse right click in this area and
choose something like server properties. Then if you have configured
all right and have added printer admin = user with the right
credentials, you may be able to add new printer drivers, after that you
can follow the samba handbook and all works like charm.

Actually I should write this in clear text and add to the Howto
collection. However I do not have time at the moment.

-- 
Met vriendelijke groeten,
With kind regards,
Mit freundlichen Gruessen,
De jrus wah,

Willy

*
W.K. Offermans
Home:   +31 45 544 49 44
Mobile: +31 653 27 16 23
e-mail: [EMAIL PROTECTED]

   Powered by 

(__)
 \\\'',)
   \/  \ ^
   .\._/_)

   www.FreeBSD.org
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Printer Drivers on Samba server

2007-03-27 Thread Willy Offermans
Dear Samba friends,

I want to have the printer drivers on the samba server. I have created
the following share in the smb.conf file:

[print$]
comment = Printer Driver Download Area
path = /usr/local/samba/printers
valid users = @XXX
write list = @YYY, root, jo, willy
printer admin = @YYY
browseable = No

@XXX are the normal printer users. @YYY are administrators. 

This is the physical directory:

drwxrwxrwx  3 root  @YYY  512 Feb 13 16:49 /usr/local/samba/printers

There is another share for the printers:

[printers]
comment = All Printers
path = /var/spool/samba
printer admin = @RompenStaff
guest ok = Yes
printable = Yes
browseable = No

However this share can not be accessed. It cannot be found from the
windows xp clients. I do not know how to upload the printer drivers. I
do not know if this setup is going to work at all.

Can someone help me?

-- 
Met vriendelijke groeten,
With kind regards,
Mit freundlichen Gruessen,
De jrus wah,

Willy

*
W.K. Offermans
Home:   +31 45 544 49 44
Mobile: +31 653 27 16 23
e-mail: [EMAIL PROTECTED]

   Powered by 

(__)
 \\\'',)
   \/  \ ^
   .\._/_)

   www.FreeBSD.org
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Printer Drivers on Samba server

2007-03-27 Thread Lutieri G.

take a look here:
http://www.wlug.org.nz/SambaPrinting

and

http://samba.org/samba/docs/man/Samba-HOWTO-Collection/CUPS-printing.html#id373732

2007/3/20, Willy Offermans [EMAIL PROTECTED]:

Dear Samba friends,

I want to have the printer drivers on the samba server. I have created
the following share in the smb.conf file:

[print$]
comment = Printer Driver Download Area
path = /usr/local/samba/printers
valid users = @XXX
write list = @YYY, root, jo, willy
printer admin = @YYY
browseable = No

@XXX are the normal printer users. @YYY are administrators.

This is the physical directory:

drwxrwxrwx  3 root  @YYY  512 Feb 13 16:49 /usr/local/samba/printers

There is another share for the printers:

[printers]
comment = All Printers
path = /var/spool/samba
printer admin = @RompenStaff
guest ok = Yes
printable = Yes
browseable = No

However this share can not be accessed. It cannot be found from the
windows xp clients. I do not know how to upload the printer drivers. I
do not know if this setup is going to work at all.

Can someone help me?

--
Met vriendelijke groeten,
With kind regards,
Mit freundlichen Gruessen,
De jrus wah,

Willy

*
W.K. Offermans
Home:   +31 45 544 49 44
Mobile: +31 653 27 16 23
e-mail: [EMAIL PROTECTED]

   Powered by 

(__)
 \\\'',)
   \/  \ ^
   .\._/_)

   www.FreeBSD.org
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba




--
Att.
Lutieri G. B.
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Printer drivers

2004-06-11 Thread mm

Hi all

I have a linux system running samba Samba 2.2.7a-SuSE.  I have a networked
printer installed locally on the linux machine which has been created on the
samba gui 901.  Users from NT machines can see the printer over the
network using a UNC path.  When the remote user clicks onto the printer, a
prompt appears declaring that the printer needs to be set up on the
computer.  I click on Yes to accept the request.  A warning message then
appears stating that the server on which the printer resides does not have
suitable driver installed.  Click ok if you wish to install the driver.

I would like to automate the process for the users using the networked
printer.  How do you configure samba to allow the remote NT workstation to
connect and use the printer without installing the drivers locally on the NT
machine


Regards

Matthew

The contents of this email may be confidential or protected from disclosure
to other than intended recipients.If it has reached you by mistake, we
apologise and request you to advise us by emailing [EMAIL PROTECTED]
Thank you.

BYTRON cannot accept responsibility for any loss or damage arising from the
use of this email or attachments.

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.698 / Virus Database: 455 - Release Date: 6/2/04

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Printer drivers

2004-06-11 Thread samba

Hi all

I have a linux system running samba Samba 2.2.7a-SuSE.  I have a networked
printer installed locally on the linux machine which has been created on the
samba gui 901.  Users from NT machines can see the printer over the
network using a UNC path.  When the remote user clicks onto the printer, a
prompt appears declaring that the printer needs to be set up on the
computer.  I click on Yes to accept the request.  A warning message then
appears stating that the server on which the printer resides does not have
suitable driver installed.  Click ok if you wish to install the driver.

I would like to automate the process for the users using the networked
printer.  How do you configure samba to allow the remote NT workstation to
connect and use the printer without installing the drivers locally on the NT
machine


Regards

Matthew


The contents of this email may be confidential or protected from disclosure
to other than intended recipients.If it has reached you by mistake, we
apologise and request you to advise us by emailing [EMAIL PROTECTED]
Thank you.

BYTRON cannot accept responsibility for any loss or damage arising from the
use of this email or attachments.

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.698 / Virus Database: 455 - Release Date: 6/2/04

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Printer Drivers

2004-06-11 Thread samba

Hi all

I have a linux system running samba Samba 2.2.7a-SuSE.  I have a networked
printer installed locally on the linux machine which has been created on the
samba gui 901.  Users from NT machines can see the printer over the
network using a UNC path.  When the remote user clicks onto the printer, a
prompt appears declaring that the printer needs to be set up on the
computer.  I click on Yes to accept the request.  A warning message then
appears stating that the server on which the printer resides does not have
suitable driver installed.  Click ok if you wish to install the driver.

I would like to automate the process for the users using the networked
printer.  How do you configure samba to allow the remote NT workstation to
connect and use the printer without installing the drivers locally on the NT
machine


Regards

Matthew

The contents of this email may be confidential or protected from disclosure
to other than intended recipients.If it has reached you by mistake, we
apologise and request you to advise us by emailing [EMAIL PROTECTED]
Thank you.

BYTRON cannot accept responsibility for any loss or damage arising from the
use of this email or attachments.

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.698 / Virus Database: 455 - Release Date: 6/2/04

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Printer Drivers

2004-06-11 Thread Hamish
I am no expert but I struggled for a bit with this as well... What it 
looks like you need to do is add a raw print queue, this is fairly 
simple, you may need to edit some files as well. If you use CUPS, look 
for and uncomment
#application/octet-...
in the files:
/etc/cups/mime.types and /etc/cups/mime.convs

Check this for help:
http://de.samba.org/samba/docs/man/CUPS-printing.html#id2557437
You can add a raw queue from the cups http interface: http://localhost:631
Once you have a raw queue, (and also / load printers = yes in [global] 
of smb.conf) /you need to connect to the printer as a printer admin 
(printer admin = YOURDOMAIN+YOU) from a windows box. Open 
\\yoursambaserver and connect to Printers and Faxes. Get properties on 
the printer, it will warn that no driver is installed and offer to do 
one - this bombed out for me, so now i just click cancel there, then go 
to the advanced tab in the properties dialog and add the driver from there.
Once that is done, windows clients just browse the samba box, right 
click the printer, and say connect
Hope that helps!

samba wrote:
Hi all
I have a linux system running samba Samba 2.2.7a-SuSE.  I have a networked
printer installed locally on the linux machine which has been created on the
samba gui 901.  Users from NT machines can see the printer over the
network using a UNC path.  When the remote user clicks onto the printer, a
prompt appears declaring that the printer needs to be set up on the
computer.  I click on Yes to accept the request.  A warning message then
appears stating that the server on which the printer resides does not have
suitable driver installed.  Click ok if you wish to install the driver.
I would like to automate the process for the users using the networked
printer.  How do you configure samba to allow the remote NT workstation to
connect and use the printer without installing the drivers locally on the NT
machine
Regards
Matthew
The contents of this email may be confidential or protected from disclosure
to other than intended recipients.If it has reached you by mistake, we
apologise and request you to advise us by emailing [EMAIL PROTECTED]
Thank you.
BYTRON cannot accept responsibility for any loss or damage arising from the
use of this email or attachments.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.698 / Virus Database: 455 - Release Date: 6/2/04
 

--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Printer Drivers Database Lost With 'rpm -Uvh'

2004-02-06 Thread Lee Thao
Since upgrading from 3.0.1 (when I installed all printer and all worked
successfully) to 3.0.2pre, clients can't download drivers automatically
anymore.  I have backed up all my tdbs and config files before upgrading
from 3.0.1 to 3.0.2pre.  How do I restore this information.  All of the
driver files are still in the proper directories.

I tried copying over the nt*.tdb files from my backup but no-go.

Lee.

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Printer Drivers Question

2003-07-30 Thread Corey Hart
Ok..I can not get any windows clients to see the printer drivers associated with
each printer on my Samba Server.  I am running RH 8.0 and Samba 2.2.8a.  I am
trying to utilize CUPS Printing + ESP Print Pro.  Here is my smb.conf

[global]
workgroup = STEDS
netbios name = EDSHARE
server string = Steds File Share
interfaces = 209.99.108.82 127.0.0.1
bind interfaces only = Yes
encrypt passwords = Yes
log level = 2
time server = Yes
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=8192
printcap name = cups
add user script = /usr/sbin/useradd -d /dev/null -g 527 -c Machine -s
/bin/false -M %u
logon script = logon.bat
logon path = \\%N\prifiles\%u
domain logons = Yes
os level = 255
preferred master = Yes
domain master = Yes
wins support = Yes
ldap server = ldap1.stedwards.edu
ldap port = 9111
ldap suffix = dc=stedwards,dc=edu
ldap admin dn = cn=Manager,dc=stedwards,dc=edu
ldap ssl = no
invalid users = bin daemon sys man postfix mail ftp
admin users = root coreyh
printing = cups
load printers = yes
printcap name = cups


[printers]
comment = All Printers
path = /var/spool/samba
browsable = No
public = Yes
guest ok = Yes
writeable = No
printable = Yes
printer admin = root coreyh

[print$]
comment = Printer Drivers
path = /usr/local/drivers
browsable = No
guest ok = No
read only = yes
write list = root coreyh

Now in ESP Print I have all my printers setup and I run the Export Command to
export my Printers to Samba.  The printers show up in samba, you can select the
printers and them to your local desktop (XP, 95/98 verified) but they do not have
a server side driver associated with them.  How in the world do I get a driver
associated with a printer in samba so that my clients do not have to install a
driver themselves?



--

Corey Hart
Systems/Security Analyst
St. Edward's University
[EMAIL PROTECTED]
512/428-1038 - voice
512/448-8492 - fax
512/470-8462 - cell


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Printer Drivers Question

2003-07-30 Thread Mark Cooke
Hi Corey,

I was just playing with this, using the instructions in the 3.0/HEAD
howto for manual driver addition using rpcclient.

It also works for 2.2.8a.

However, the one caveat I have found is that I can't (with 2.2.8a or
3.0b3) get the properties for the printer set so new clients get the
right printer configuration, but at least the printer drivers are
auto-installed.[*]

Mark

[*] Despite much cursing with 'printer admin', turning on and off guest
accesses, etc etc.  The closest I got was being able to change the
properties pages after adding the printer (rather than having greyed out
choices), but they wouldn't apply back to the samba server.

Setup is a workgroup with a mix of W9x and 2K machines and a central
print server running samba 3.0b3 upgraded from 2.2.8a.  Are there any
known gotchas with the passdb backends during a migration ?

It seemed the ACLs on the printers were everyone print,
samba-server\root full control, but I couldn't find any way to change
that, despite much experimentation with 'net use' and the acl options in
smb.conf.

On Wed, 2003-07-30 at 22:40, Corey Hart wrote:
 Ok..I can not get any windows clients to see the printer drivers associated with
 each printer on my Samba Server.  I am running RH 8.0 and Samba 2.2.8a.  I am
 trying to utilize CUPS Printing + ESP Print Pro.  Here is my smb.conf
 
 [global]
 workgroup = STEDS
 netbios name = EDSHARE
 server string = Steds File Share
 interfaces = 209.99.108.82 127.0.0.1
 bind interfaces only = Yes
 encrypt passwords = Yes
 log level = 2
 time server = Yes
 socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=8192
 printcap name = cups
 add user script = /usr/sbin/useradd -d /dev/null -g 527 -c Machine -s
 /bin/false -M %u
 logon script = logon.bat
 logon path = \\%N\prifiles\%u
 domain logons = Yes
 os level = 255
 preferred master = Yes
 domain master = Yes
 wins support = Yes
 ldap server = ldap1.stedwards.edu
 ldap port = 9111
 ldap suffix = dc=stedwards,dc=edu
 ldap admin dn = cn=Manager,dc=stedwards,dc=edu
 ldap ssl = no
 invalid users = bin daemon sys man postfix mail ftp
 admin users = root coreyh
 printing = cups
 load printers = yes
 printcap name = cups
 
 
 [printers]
 comment = All Printers
 path = /var/spool/samba
 browsable = No
 public = Yes
 guest ok = Yes
 writeable = No
 printable = Yes
 printer admin = root coreyh
 
 [print$]
 comment = Printer Drivers
 path = /usr/local/drivers
 browsable = No
 guest ok = No
 read only = yes
 write list = root coreyh
 
 Now in ESP Print I have all my printers setup and I run the Export Command to
 export my Printers to Samba.  The printers show up in samba, you can select the
 printers and them to your local desktop (XP, 95/98 verified) but they do not have
 a server side driver associated with them.  How in the world do I get a driver
 associated with a printer in samba so that my clients do not have to install a
 driver themselves?
 
 
 
 --
 
 Corey Hart
 Systems/Security Analyst
 St. Edward's University
 [EMAIL PROTECTED]
 512/428-1038 - voice
 512/448-8492 - fax
 512/470-8462 - cell
-- 
Mark Cooke [EMAIL PROTECTED]

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Printer drivers on a samba 2.2.8a server: how?

2003-06-27 Thread Kurt Pfeifle
Fabio Muzzi liste at kurgan.org

Wed Jun 25 18:10:33 GMT 2003

I'd  like to set up my samba 2.2.8a server to serve printer drivers to
clients  when needed. I have set up the print$ share, in which I still
have  no  drivers.  Tried adding drivers from a win2000 workstation by
using  server  properties  command,  I  can't add anything since all
buttons  are  greyed  out. The user I am using is in the printer admin
group  in  smb.conf.  I  can  provide  snippets of the config files if
needed.
Is  there  some  docs I can read about my specific issue,
   http://www.linuxprinting.org/kpfeifle/SambaPrintHOWTO/

or generally
about printing with samba 2.2.8 and cups?
most of above 3.0 doc applies to Samba 2.2.x too.

--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Printer drivers on a samba 2.2.8a server: how?

2003-06-25 Thread Fabio Muzzi

I'd  like to set up my samba 2.2.8a server to serve printer drivers to
clients  when needed. I have set up the print$ share, in which I still
have  no  drivers.  Tried adding drivers from a win2000 workstation by
using  server  properties  command,  I  can't add anything since all
buttons  are  greyed  out. The user I am using is in the printer admin
group  in  smb.conf.  I  can  provide  snippets of the config files if
needed.

Is  there  some  docs I can read about my specific issue, or generally
about printing with samba 2.2.8 and cups?

Thanks a lot.
  

-- 
Best regards,
 Fabio  mailto:[EMAIL PROTECTED]

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Printer drivers on Samba server

2003-03-04 Thread Gerald (Jerry) Carter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 27 Feb 2003, maq wrote:

 Hi,
   have a printer connected to a Samba server.
 I'd prefer clients to use the linux drivers instead of 
 the windows' 

Doesn't work that way.  







cheers, jerry
 --
 Hewlett-Packard- http://www.hp.com
 SAMBA Team -- http://www.samba.org
 GnuPG Key   http://www.plainjoe.org/gpg_public.asc
 You can never go home again, Oatman, but I guess you can shop there.  
--John Cusack - Grosse Point Blank (1997)

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.0 (GNU/Linux)
Comment: For info see http://quantumlab.net/pine_privacy_guard/

iD8DBQE+ZLuXIR7qMdg1EfYRAksqAJ9P3hzE3tXksUya/ng7h7OQdc23GwCeKlhn
LEGAcbnt+0mQbKlwCe6pKlg=
=tLAW
-END PGP SIGNATURE-

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Printer drivers on Samba server

2003-02-27 Thread maq
Hi,
have a printer connected to a Samba server.
I'd prefer clients to use the linux drivers instead of 
the windows' but cannot achieve this: 'No suitable drivers available'
is the response i get when trying to connect the printer from windows.

Hints?

Thank you 

maq




-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Printer Drivers

2003-01-22 Thread Kenny Mann
Is it possible to have samba share the drivers for Win9X/2K/XP on a
printer share?
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



RE: RE: [Samba] printer drivers

2002-06-11 Thread Van Sickler, Jim

I think I've lost the big picture...time to
step back and look at what you're trying
(and unable) to do.

1.  Is \\server\Printer being added to
the clients as a Network or Local Printer?

2.  If Network, are you trying to install
the printer drivers from the server?

3.  Are you a member of the Linux admins
group?

4.  Did you delete the default printer
apps on the Linux box, and create symlinks
to the cups equivalents? (e.g. lpr, lprm, lpd, lpq)
(This has bitten me on OpenBSD upgrades;  the
upgrade overwrites the symlinks with executables,
and I have to go back and redo the LPRng symlinks)

5.  Re-read the doc's and HOW-TOs for printing
setup-a lot has changed in 2.2.x...maybe something
will pop up that you missed.

6.  If you're not interested in the spoolss support,
or it gives you more pain than pleasure (my case!!!)
use disable spoolss=yes and use printer driver=no
in smb.conf's [Global], remove all connections to
\\server\Printer in your workstations' Printers and
the Registry.  Then re-install \\server\Printer as 
a Network Printer, and the Port it attaches to should
show up listed in the Properties as a LAN Manager
Printer Port.  This is the pre-spoolss type of printer
connection, and I think the easier to set up/manage.

7.  Linux prints via cups, and you can see the share-
you're almost there...

Good luck!
Jim

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



RE: RE: [Samba] printer drivers

2002-06-11 Thread Mark Brosius

Thanks for responding.
On Tue, 11 Jun 2002, Van Sickler, Jim wrote:

 I think I've lost the big picture...time to
 step back and look at what you're trying
 (and unable) to do.

 1.  Is \\server\Printer being added to
 the clients as a Network or Local Printer?

  Network

 2.  If Network, are you trying to install
 the printer drivers from the server

  I am installing the drivers from the client

 3.  Are you a member of the Linux admins
 group?

  Good question.  I don't think so.

 4.  Did you delete the default printer
 apps on the Linux box, and create symlinks
 to the cups equivalents? (e.g. lpr, lprm, lpd, lpq)
 (This has bitten me on OpenBSD upgrades;  the
 upgrade overwrites the symlinks with executables,
 and I have to go back and redo the LPRng symlinks)

  I did not delete the printer apps on the Linux box

 5.  Re-read the doc's and HOW-TOs for printing
 setup-a lot has changed in 2.2.x...maybe something
 will pop up that you missed.

  Okay. Dumb question, where are they.  I can't seem to find them.

 6.  If you're not interested in the spoolss support,
 or it gives you more pain than pleasure (my case!!!)
 use disable spoolss=yes and use printer driver=no
 in smb.conf's [Global], remove all connections to
 \\server\Printer in your workstations' Printers and
 the Registry.  Then re-install \\server\Printer as
 a Network Printer, and the Port it attaches to should
 show up listed in the Properties as a LAN Manager
 Printer Port.  This is the pre-spoolss type of printer
 connection, and I think the easier to set up/manage.

  I haven't even considered spoolss.

 7.  Linux prints via cups, and you can see the share-
 you're almost there...

  To be honest, I'm not sure how I am printing from linux.  Maybe it is
cups...maybe not.  Sorry.  I am able to see the share from the windows
client though.

 Good luck!

  Thanks, I think I need it.  I appreciate your help!

 Jim



-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



RE: RE: [Samba] printer drivers

2002-06-11 Thread Van Sickler, Jim



 -Original Message-
 From: Mark Brosius [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 11, 2002 9:13 AM
 To: Van Sickler, Jim
 Cc: [EMAIL PROTECTED]
 Subject: RE: RE: [Samba] printer drivers
 
 
 Thanks for responding.
 On Tue, 11 Jun 2002, Van Sickler, Jim wrote:
 
  I think I've lost the big picture...time to
  step back and look at what you're trying
  (and unable) to do.
 
  1.  Is \\server\Printer being added to
  the clients as a Network or Local Printer?
 
   Network
 
Okay

  2.  If Network, are you trying to install
  the printer drivers from the server
 
   I am installing the drivers from the client
 
If disable spoolss=yes, or pre-2.2.1a(I think)
this is your only choice.  I found it works
best...for my setup, at least.  Others may
feel free to offer different advice.  No
two setups are the same.

  3.  Are you a member of the Linux admins
  group?
 
   Good question.  I don't think so.
If you're not sure, you probably aren't.
This is an issue with spoolss support enabled.
 
  4.  Did you delete the default printer
  apps on the Linux box, and create symlinks
  to the cups equivalents? (e.g. lpr, lprm, lpd, lpq)
  (This has bitten me on OpenBSD upgrades;  the
  upgrade overwrites the symlinks with executables,
  and I have to go back and redo the LPRng symlinks)
 
   I did not delete the printer apps on the Linux box

Enabling cups in smb.conf has no effect if cups isn't
installed on the server.  You may want to return to the
default settings for printing, and see if that changes
anything.  Remarking out the printer entries (with #
at the start of the line) will allow
the defaults to be used.

 
  5.  Re-read the doc's and HOW-TOs for printing
  setup-a lot has changed in 2.2.x...maybe something
  will pop up that you missed.
 
   Okay. Dumb question, where are they.  I can't seem to find them.

If you've got SWAT running, you can get to some of the 
documentation through the home page;  more doc's are
available through the samba.org documentation link - e.g.
http://us4.samba.org/samba/docs/

  6.  If you're not interested in the spoolss support,
  or it gives you more pain than pleasure (my case!!!)
  use disable spoolss=yes and use printer driver=no
  in smb.conf's [Global], remove all connections to
  \\server\Printer in your workstations' Printers and
  the Registry.  Then re-install \\server\Printer as
  a Network Printer, and the Port it attaches to should
  show up listed in the Properties as a LAN Manager
  Printer Port.  This is the pre-spoolss type of printer
  connection, and I think the easier to set up/manage.
 
   I haven't even considered spoolss.

If you installed 2.2.3a, I think it was enabled by default.
I'm not sure about 2.2.1a, but I'd put
disable spoolss=yes just in case.
If testparm complains about an invalid entry, delete it.

 
  7.  Linux prints via cups, and you can see the share-
  you're almost there...
 
   To be honest, I'm not sure how I am printing from linux.  
 Maybe it is cups...maybe not.  Sorry.  I am able to see
 the share from the windows client though.

A visible share is just that, unfortunately.  If the
printing subsystem is defective, it won't change
anything.  But you already knew that  ;-)

 
  Good luck!
 
   Thanks, I think I need it.  I appreciate your help!
 
You're welcome-I've gotten a lot of help from
the list in the past. Eventually you'll
get the answers you need, either from the list
or your own efforts.  

Jim


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



[Samba] printer drivers

2002-06-10 Thread Alex Meaden

In order for Windows clients to automagically download printer drivers for
network printers, I have to put the drivers in a share called print$. What
files exactly should I put here - should it be an .inf file and related
files for each printer? Should each different printer's driver be in a
seperate subdirectory? What about for different client OSes? The printers
are an HP DeskJet 720C, and HP DeskJet
850C, a Brother HL-1250 laser, and a Panasonic KXP-1124 dot matrix. Client
machines are running Windows 2000 Pro, Windows XP Pro, Windows 98, and
Windows NT4 Workstation.

TIA for any help,

Alex.

--
Mr Alex Meaden
Computer Science Undergraduate
University of Kent at Canterbury
http://meaden.dyndns.org


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] printer drivers

2002-06-10 Thread Bradley W. Langhorst

On Mon, 2002-06-10 at 14:35, Alex Meaden wrote:
 In order for Windows clients to automagically download printer drivers for
 network printers, I have to put the drivers in a share called print$. What
 files exactly should I put here - should it be an .inf file and related
 files for each printer? Should each different printer's driver be in a
 seperate subdirectory? What about for different client OSes? The printers
 are an HP DeskJet 720C, and HP DeskJet
 850C, a Brother HL-1250 laser, and a Panasonic KXP-1124 dot matrix. Client
 machines are running Windows 2000 Pro, Windows XP Pro, Windows 98, and
 Windows NT4 Workstation.

you've got the wrong idea  (i had the same wrong idea so don't feel bad)

after you create the print$ share you create the
WIN40 and W32X86 folders in there

then you have to use an NT4 box to upload the drivers - it will
make the subdirectories and put the right files in the right spots.

make sure you haven't disabled spoolss since you need that to do the
uploading (i think)

to do the upload just browse to the printers and faxes folder on
your server and follow the howto collection...

brad


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] printer drivers

2002-06-10 Thread Alex Meaden

- Original Message -
From: Bradley W. Langhorst [EMAIL PROTECTED]
To: Alex Meaden [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, June 10, 2002 7:43 PM
Subject: Re: [Samba] printer drivers

 then you have to use an NT4 box to upload the drivers - it will
 make the subdirectories and put the right files in the right spots.

Does this have to be a NT4 Server (which I don't have), or will NT
Workstation do?

 make sure you haven't disabled spoolss since you need that to do the
 uploading (i think)

Is spoolss a Samba or NT thing?

TIA,

Alex.



-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] printer drivers

2002-06-10 Thread Mark Brosius

I'm having a problem getting my HP 722c printer working from my Win98
client.  Would you be willing to copy and paste your smb.conf file here so
I can see where I am making my mistake?  Thanks.

Mark

On Mon, 10 Jun 2002, Alex Meaden wrote:

 - Original Message -
 From: Bradley W. Langhorst [EMAIL PROTECTED]
 To: Alex Meaden [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Monday, June 10, 2002 7:43 PM
 Subject: Re: [Samba] printer drivers

  then you have to use an NT4 box to upload the drivers - it will
  make the subdirectories and put the right files in the right spots.

 Does this have to be a NT4 Server (which I don't have), or will NT
 Workstation do?

  make sure you haven't disabled spoolss since you need that to do the
  uploading (i think)

 Is spoolss a Samba or NT thing?

 TIA,

 Alex.






-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] printer drivers

2002-06-10 Thread Bradley W. Langhorst

On Mon, 2002-06-10 at 15:23, Mark Brosius wrote:
 I'm having a problem getting my HP 722c printer working from my Win98
 client.  Would you be willing to copy and paste your smb.conf file here so
 I can see where I am making my mistake?  Thanks.
 
 Mark
well there's not much in the smb.conf here are the relevant bits

printing = cups
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
[print$]
path = /etc/samba/printers
write list = root

make sure you have the correct permissions on the subdirs of
/etc/samba/printers (or wherever you put your print$ share)

all the other printing stuff is set to the default setting.

I'm using 2.2.5pre1 

brad



-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] printer drivers

2002-06-10 Thread Alex Meaden

- Original Message -
From: Mark Brosius [EMAIL PROTECTED]
To: Alex Meaden [EMAIL PROTECTED]
Cc: Bradley W. Langhorst [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, June 10, 2002 8:23 PM
Subject: Re: [Samba] printer drivers


 I'm having a problem getting my HP 722c printer working from my Win98
 client.  Would you be willing to copy and paste your smb.conf file here so
 I can see where I am making my mistake?  Thanks.

Here's the global and printers sections from my smb.conf:

[global]
 netbios name = MARS
 workgroup = GALAXY
 encrypt passwords = Yes
 log file = /var/log/samba/log.%m
 max log size = 50
 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
 printcap name = lpstat
 dns proxy = No
 printing = cups
 utmp = true
 status = yes
 security = user
 domain logons = yes
 os level = 65
 domain admin group = @adm
 nt acl support = no

[printers]
 comment = All Printers
 path = /var/spool/samba
 create mask = 0700
 guest ok = Yes
 printable = Yes
 print command = lpr-cups -P %p -o raw %s -r   # using client side printer
drivers.
 lpq command = lpstat -o %p
 lprm command = cancel %p-%j
 browseable = No

I am using CUPS which seems to greatly simplify printer management. Note
that the share for the printer should not have any drivers installed on the
server side - select generic printer. You should install the drivers under
Windows, which will format the output and send it to Samba, which will pass
it to the printer.

Alex.

--
Mr Alex Meaden
Computer Science Undergraduate
University of Kent at Canterbury
[EMAIL PROTECTED]
http://meaden.dyndns.org





-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] printer drivers

2002-06-10 Thread Bradley W. Langhorst


  printcap name = lpstat
what's this about?


  print command = lpr-cups -P %p -o raw %s -r   # using client side printer
 drivers.
i can use the default with cups' lpr compatibility commands


brad


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] printer drivers

2002-06-10 Thread mark

Alex,
Thank for your help but I still can't print.   Here is my smb.conf file. 
 My file sharing works but not my printer.  Can you see what I'm doing 
wrong?

Mark

[global]
workgroup = K9PC
netbios name = MARK
server string = Samba Server %v
encrypt passwords = Yes
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = lpstat
dns proxy = No
wins support = Yes
hosts allow = 127.0.0. 192.168.1.
printing = cups

[homes]
comment = Home Directories
read only = No
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
guest ok = Yes
printable = Yes
print command = lpr-cups -P %p -o raw %s -r   # using client 
side printer drivers.
lpq command = lpstat -o %p
lprm command = cancel %p-%j
browseable = No

[elaine]
path = /home/elaine

[Printer]
path = /tmp
guest ok = Yes
printable = Yes

Alex Meaden wrote:

- Original Message -
From: Mark Brosius [EMAIL PROTECTED]
To: Alex Meaden [EMAIL PROTECTED]
Cc: Bradley W. Langhorst [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, June 10, 2002 8:23 PM
Subject: Re: [Samba] printer drivers


  

I'm having a problem getting my HP 722c printer working from my Win98
client.  Would you be willing to copy and paste your smb.conf file here so
I can see where I am making my mistake?  Thanks.



Here's the global and printers sections from my smb.conf:

[global]
 netbios name = MARS
 workgroup = GALAXY
 encrypt passwords = Yes
 log file = /var/log/samba/log.%m
 max log size = 50
 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
 printcap name = lpstat
 dns proxy = No
 printing = cups
 utmp = true
 status = yes
 security = user
 domain logons = yes
 os level = 65
 domain admin group = @adm
 nt acl support = no

[printers]
 comment = All Printers
 path = /var/spool/samba
 create mask = 0700
 guest ok = Yes
 printable = Yes
 print command = lpr-cups -P %p -o raw %s -r   # using client side printer
drivers.
 lpq command = lpstat -o %p
 lprm command = cancel %p-%j
 browseable = No

I am using CUPS which seems to greatly simplify printer management. Note
that the share for the printer should not have any drivers installed on the
server side - select generic printer. You should install the drivers under
Windows, which will format the output and send it to Samba, which will pass
it to the printer.

Alex.

--
Mr Alex Meaden
Computer Science Undergraduate
University of Kent at Canterbury
[EMAIL PROTECTED]
http://meaden.dyndns.org





  





-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] printer drivers

2002-06-10 Thread Alex Meaden

- Original Message -
From: mark [EMAIL PROTECTED]
To: Alex Meaden [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, June 11, 2002 12:02 AM
Subject: Re: [Samba] printer drivers


 Alex,
 Thank for your help but I still can't print.   Here is my smb.conf file.
  My file sharing works but not my printer.  Can you see what I'm doing
 wrong?

I'm not that you should have a [Printer] share in your smb.conf. If you
open \\mark from a Windows PC, and then double-click the Printers folder,
what if anything is listed?

Alex.

 [global]
 workgroup = K9PC
 netbios name = MARK
 server string = Samba Server %v
 encrypt passwords = Yes
 log file = /var/log/samba/log.%m
 max log size = 50
 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
 printcap name = lpstat
 dns proxy = No
 wins support = Yes
 hosts allow = 127.0.0. 192.168.1.
 printing = cups

 [homes]
 comment = Home Directories
 read only = No
 browseable = No

 [printers]
 comment = All Printers
 path = /var/spool/samba
 create mask = 0700
 guest ok = Yes
 printable = Yes
 print command = lpr-cups -P %p -o raw %s -r   # using client
 side printer drivers.
 lpq command = lpstat -o %p
 lprm command = cancel %p-%j
 browseable = No

 [elaine]
 path = /home/elaine

 [Printer]
 path = /tmp
 guest ok = Yes
 printable = Yes


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] printer drivers

2002-06-10 Thread mark

When I open the printer folder I see the printer there.  It is not 
shaded (indicating that the printer is offline).  I can actually see it 
in Network Neighborhood.  If I use the the 720c drivers provided by HP, 
I get an error message stating:
There was an error writing to \\server\printer for the printer (driver):
Your file waiting to be printed was deleted

I am trying the basic HP Deskjet driver now just to see what happens.  

Mark

Alex Meaden wrote:

- Original Message -
From: mark [EMAIL PROTECTED]
To: Alex Meaden [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, June 11, 2002 12:02 AM
Subject: Re: [Samba] printer drivers


  

Alex,
Thank for your help but I still can't print.   Here is my smb.conf file.
 My file sharing works but not my printer.  Can you see what I'm doing
wrong?



I'm not that you should have a [Printer] share in your smb.conf. If you
open \\mark from a Windows PC, and then double-click the Printers folder,
what if anything is listed?

Alex.

  

[global]
workgroup = K9PC
netbios name = MARK
server string = Samba Server %v
encrypt passwords = Yes
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = lpstat
dns proxy = No
wins support = Yes
hosts allow = 127.0.0. 192.168.1.
printing = cups

[homes]
comment = Home Directories
read only = No
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
guest ok = Yes
printable = Yes
print command = lpr-cups -P %p -o raw %s -r   # using client
side printer drivers.
lpq command = lpstat -o %p
lprm command = cancel %p-%j
browseable = No

[elaine]
path = /home/elaine

[Printer]
path = /tmp
guest ok = Yes
printable = Yes






-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



RE: [Samba] printer drivers

2002-06-10 Thread Van Sickler, Jim

What happens when you run
testparm?  Do you see any
error messages?

 -Original Message-
 From: mark [mailto:[EMAIL PROTECTED]]
 Sent: Monday, June 10, 2002 4:09 PM
 To: Alex Meaden
 Cc: [EMAIL PROTECTED]
 Subject: Re: [Samba] printer drivers
 
 
 When I open the printer folder I see the printer there.  It is not 
 shaded (indicating that the printer is offline).  I can 
 actually see it 
 in Network Neighborhood.  If I use the the 720c drivers 
 provided by HP, 
 I get an error message stating:
 There was an error writing to \\server\printer for the 
 printer (driver):
 Your file waiting to be printed was deleted
 
 I am trying the basic HP Deskjet driver now just to see what 
 happens.  
 
 Mark
 
 Alex Meaden wrote:
 
 - Original Message -
 From: mark [EMAIL PROTECTED]
 To: Alex Meaden [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Sent: Tuesday, June 11, 2002 12:02 AM
 Subject: Re: [Samba] printer drivers
 
 
   
 
 Alex,
 Thank for your help but I still can't print.   Here is my 
 smb.conf file.
  My file sharing works but not my printer.  Can you see 
 what I'm doing
 wrong?
 
 
 
 I'm not that you should have a [Printer] share in your 
 smb.conf. If you
 open \\mark from a Windows PC, and then double-click the 
 Printers folder,
 what if anything is listed?
 
 Alex.
 
   
 
 [global]
 workgroup = K9PC
 netbios name = MARK
 server string = Samba Server %v
 encrypt passwords = Yes
 log file = /var/log/samba/log.%m
 max log size = 50
 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
 printcap name = lpstat

Should this be /etc/printcap or /usr/local/etc/printcap?
I'm not sure which one cups uses :-(

 dns proxy = No
 wins support = Yes
 hosts allow = 127.0.0. 192.168.1.
 printing = cups
 
 [homes]
 comment = Home Directories
 read only = No
 browseable = No
 
 [printers]
 comment = All Printers
 path = /var/spool/samba
 create mask = 0700
 guest ok = Yes
 printable = Yes
 print command = lpr-cups -P %p -o raw %s -r   # using client
 side printer drivers.
 lpq command = lpstat -o %p
 lprm command = cancel %p-%j
 browseable = No

I think the samba spool dir needs to be 777 or 1777
try #'ing this entry to see if it changes anything.

then:

chown root.daemon /var/spool/samba
chmod 777 /var/spool/samba

Come to think of it, if you have an entry for the
printer, you don't need the [printers]
entry.  Rename the [printers] section to [Printer],
and delete the other [Printer] entry.  Modify it
to read:

[Printer]
comment = HP720C
path = /var/spool/samba
guest ok = Yes
printable = Yes
print command = lpr-cups -P %p -o raw %s -r
# using client side printer drivers.
lpq command = lpstat -o %p
lprm command = cancel %p-%j
browseable = No


What I think is happening is that you can see
the Printer share, but samba and cups aren't
talking correctly.  Samba spools the job, and
sends it to cups.  Each print process must be
working in order for the job to be processed.
Look at your printcap entry for the printer,
and make sure it matches what you have in the
smb.conf [Printer] and [Global] sections.

You may consider creating the printcap entry
as hp720 or something similar;  chances are
you're going to end up servicing more than
one printer via your server.  Create
/var/spool/samba/hp720 and make the
[Printer] section [HP720C].  Modify the
path=/var/spool/samba/hp720 as well.  As you
add more printers,  you'll be able to give them
names that match their model.  Printer, Printer2,
etc. will add confusion instead of clarity...

If the HP720C driver won't work, try the
HP550C driver.  It's what I have to use for our
networked OfficeJet 570, and HP mentions it as a
solution for other networked DeskJets.

Hope this helps,

Jim

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] printer drivers

2002-06-10 Thread mark

I don't see any errors when I run testparm.  I was running samba version 
2.2.3.a and since I didn't have any success I downgraded to 2.2.1a.  I 
have been working on this for months with no success.  Any idea?

Mark

Van Sickler, Jim wrote:

What happens when you run
testparm?  Do you see any
error messages?

  

-Original Message-
From: mark [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 4:09 PM
To: Alex Meaden
Cc: [EMAIL PROTECTED]
Subject: Re: [Samba] printer drivers


When I open the printer folder I see the printer there.  It is not 
shaded (indicating that the printer is offline).  I can 
actually see it 
in Network Neighborhood.  If I use the the 720c drivers 
provided by HP, 
I get an error message stating:
There was an error writing to \\server\printer for the 
printer (driver):
Your file waiting to be printed was deleted

I am trying the basic HP Deskjet driver now just to see what 
happens.  

Mark

Alex Meaden wrote:



- Original Message -
From: mark [EMAIL PROTECTED]
To: Alex Meaden [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, June 11, 2002 12:02 AM
Subject: Re: [Samba] printer drivers


 

  

Alex,
Thank for your help but I still can't print.   Here is my 


smb.conf file.


My file sharing works but not my printer.  Can you see 


what I'm doing


wrong?
   



I'm not that you should have a [Printer] share in your 
  

smb.conf. If you


open \\mark from a Windows PC, and then double-click the 
  

Printers folder,


what if anything is listed?

Alex.

 

  

[global]
   workgroup = K9PC
   netbios name = MARK
   server string = Samba Server %v
   encrypt passwords = Yes
   log file = /var/log/samba/log.%m
   max log size = 50
   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
   printcap name = lpstat



Should this be /etc/printcap or /usr/local/etc/printcap?
I'm not sure which one cups uses :-(

  

   dns proxy = No
   wins support = Yes
   hosts allow = 127.0.0. 192.168.1.
   printing = cups

[homes]
   comment = Home Directories
   read only = No
   browseable = No

[printers]
   comment = All Printers
   path = /var/spool/samba
   create mask = 0700
   guest ok = Yes
   printable = Yes
   print command = lpr-cups -P %p -o raw %s -r   # using client
side printer drivers.
   lpq command = lpstat -o %p
   lprm command = cancel %p-%j
   browseable = No



I think the samba spool dir needs to be 777 or 1777
try #'ing this entry to see if it changes anything.

then:

chown root.daemon /var/spool/samba
chmod 777 /var/spool/samba

Come to think of it, if you have an entry for the
printer, you don't need the [printers]
entry.  Rename the [printers] section to [Printer],
and delete the other [Printer] entry.  Modify it
to read:

[Printer]
comment = HP720C
path = /var/spool/samba
guest ok = Yes
printable = Yes
print command = lpr-cups -P %p -o raw %s -r
# using client side printer drivers.
lpq command = lpstat -o %p
lprm command = cancel %p-%j
browseable = No


What I think is happening is that you can see
the Printer share, but samba and cups aren't
talking correctly.  Samba spools the job, and
sends it to cups.  Each print process must be
working in order for the job to be processed.
Look at your printcap entry for the printer,
and make sure it matches what you have in the
smb.conf [Printer] and [Global] sections.

You may consider creating the printcap entry
as hp720 or something similar;  chances are
you're going to end up servicing more than
one printer via your server.  Create
/var/spool/samba/hp720 and make the
[Printer] section [HP720C].  Modify the
path=/var/spool/samba/hp720 as well.  As you
add more printers,  you'll be able to give them
names that match their model.  Printer, Printer2,
etc. will add confusion instead of clarity...

If the HP720C driver won't work, try the
HP550C driver.  It's what I have to use for our
networked OfficeJet 570, and HP mentions it as a
solution for other networked DeskJets.

Hope this helps,

Jim

  





-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba