RE: [Samba] cups driver

2005-09-09 Thread Bruno Guerreiro
Hi.
Do you have print admin privileges?

Best Regards,
Bruno Guerreiro

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: sexta-feira, 9 de Setembro de 2005 9:55
To: samba@lists.samba.org
Subject: [Samba] cups driver


hello 
i think always the same problem :(

so i would like to put drivers on my samba server in $print

in howto they said in section Add printer wizard driver 
installation chap 20 :

 Do not click on Yes! Instead, click on No in the error 
dialog. Now you will be presented with the printer properties 
window. From here, the way to assign a driver to a printer is open. 

- Select a driver from the pop-up list of installed drivers. 
Initially this list will be empty.
ok it's really empty but i cannot add new driver (hide)  

so what can i do ?

so what's wrong

thank you !

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

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


Re: RE: [Samba] cups driver

2005-09-09 Thread stenon
hi,

how do i configure the admin privileges ?

because i'm logged in administrator account on my windows

i don't understand ... 

thanks

 Hi.
 Do you have print admin privileges?
 
 Best Regards,
 Bruno Guerreiro
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 Sent: sexta-feira, 9 de Setembro de 2005 9:55
 To: samba@lists.samba.org
 Subject: [Samba] cups driver
 
 
 hello 
 i think always the same problem :(
 
 so i would like to put drivers on my samba server in $print
 
 in howto they said in section Add printer wizard driver 
 installation chap 20 :
 
  Do not click on Yes! Instead, click on No in the error 
 dialog. Now you will be presented with the printer properties 
 window. From here, the way to assign a driver to a printer is open. 
 
 - Select a driver from the pop-up list of installed drivers. 
 Initially this list will be empty.
 ok it's really empty but i cannot add new driver (hide)  
 
 so what can i do ?
 
 so what's wrong
 
 thank you !
 
 -- 
 To unsubscribe from this list go to the following URL and read the
 instructions:  https://lists.samba.org/mailman/listinfo/samba
 
 
 
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


RE: RE: [Samba] cups driver

2005-09-09 Thread Bruno Guerreiro
First thing first?
Which samba release are you using?

Bruno Guerreiro

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: sexta-feira, 9 de Setembro de 2005 10:19
To: [EMAIL PROTECTED]
Cc: samba@lists.samba.org
Subject: Re: RE: [Samba] cups driver


hi,

how do i configure the admin privileges ?

because i'm logged in administrator account on my windows

i don't understand ... 

thanks

 Hi.
 Do you have print admin privileges?
 
 Best Regards,
 Bruno Guerreiro
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 Sent: sexta-feira, 9 de Setembro de 2005 9:55
 To: samba@lists.samba.org
 Subject: [Samba] cups driver
 
 
 hello 
 i think always the same problem :(
 
 so i would like to put drivers on my samba server in $print
 
 in howto they said in section Add printer wizard driver 
 installation chap 20 :
 
  Do not click on Yes! Instead, click on No in the error 
 dialog. Now you will be presented with the printer properties 
 window. From here, the way to assign a driver to a printer is open. 
 
 - Select a driver from the pop-up list of installed drivers. 
 Initially this list will be empty.
 ok it's really empty but i cannot add new driver (hide)  
 
 so what can i do ?
 
 so what's wrong
 
 thank you !
 
 -- 
 To unsubscribe from this list go to the following URL and read the
 instructions:  https://lists.samba.org/mailman/listinfo/samba
 
 
 

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


Re: [Samba] cups driver

2005-09-09 Thread stenon

hi ,
so my samba server :
$ smbd -V
Version 3.0.14a-Debian

and my smb.conf :

[global]
   log file = /var/log/samba/log.%m
   dns proxy = no
   netbios name = pykota
   security = user
   passwd chat = *Enter\snew\sUNIX\spassword:* %n\n 
*Retype\snew\sUNIX\spassword:* %n\n .

   server string = sprint
   socket options = TCP_NODELAY
   invalid users = root
   obey pam restrictions = yes
   workgroup = PyKoTa
   os level = 20
   auto services = printers
   encrypt passwords = true
   syslog = 0
   passwd program = /usr/bin/passwd %u
   passdb backend = tdbsam guest
   panic action = /usr/share/samba/panic-action %d
   max log size = 1000
   load printer = Yes
   printing = cups
   printcap name = cups
   use client driver = yes
[printers]
  comment = All Printers
  browseable = Yes
  path = /tmp
  printable = yes
  public = yes
  writable = no
  create mode = 0700

# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
  comment = Printer Drivers
  path = /var/lib/samba/printers
  browseable = yes
  read only = yes
  guest ok = yes
# Uncomment to allow remote administration of Windows print drivers.
# Replace 'ntadmin' with the name of the group your admin users are
# members of.
 write list = root, @ntadmin


i've just seen  in my config invalid users = root- it's important ?

i did smbpasswd -a root ? usefull or useless ?

thanks


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


Re: [Samba] cups driver

2005-09-09 Thread Tomasz Chmielewski

[EMAIL PROTECTED] schrieb:
hello 
i think always the same problem :(


so i would like to put drivers on my samba server in $print


try to do it like this:

2) configure your CUPS printer, make sure your server can print on that 
printer


1) put PostScript drivers into /usr/share/cups/drivers:

ps5ui.dll  pscript5.dll  pscript.hlp  pscript.ntf

These four files you will find on every Windows XP workstation.

2) configure your CUPS printer, make sure your server can print on that 
printer


3) when printer works, reload (or restart) Samba - it has to be aware of 
new printers:


/etc/init.d/smb reload (or restart)

4) finally, add cups drivers to a given printer:

# cupsaddsmb -U Administrator -a -v

where Administrator is the domain admin.

You will be prompted for a password, and after supplying one, the 
drivers will be attached to a given printer.


5) right click on the printer from the server, and choose Connect.
the drivers will be downloaded from the workstation to the server 
automatically.


You can do it also in startup scripts - so you don't even need to touch 
any workstation, and can do everything remotely:


This one has to be executed as Administrator or SYSTEM - you can use 
WPKG for that :)


rundll32 printui.dll,PrintUIEntry /q /y /ga /in /n \\server\kyocera


And once again, as a user netlogon script:

rundll32 printui.dll,PrintUIEntry /q /y /ga /in /n \\server\kyocera

That's because the normal user has no permission to set a new printer, 
unless it's first installed on the workstation by someone with 
appropriate privileges.


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


RE: [Samba] cups driver

2005-09-09 Thread Bruno Guerreiro
Hi,

-Original Message-
From: stenon [mailto:[EMAIL PROTECTED]
Sent: sexta-feira, 9 de Setembro de 2005 10:34
To: Bruno Guerreiro; samba@lists.samba.org
Subject: Re: [Samba] cups driver


hi ,
so my samba server :
$ smbd -V
Version 3.0.14a-Debian

and my smb.conf :

[global]
log file = /var/log/samba/log.%m
dns proxy = no
netbios name = pykota
security = user
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n 
*Retype\snew\sUNIX\spassword:* %n\n .
server string = sprint
socket options = TCP_NODELAY
invalid users = root
obey pam restrictions = yes
workgroup = PyKoTa
os level = 20
auto services = printers
encrypt passwords = true
syslog = 0
passwd program = /usr/bin/passwd %u
passdb backend = tdbsam guest
panic action = /usr/share/samba/panic-action %d
max log size = 1000
load printer = Yes
printing = cups
printcap name = cups
use client driver = yes
[printers]
   comment = All Printers
   browseable = Yes
   path = /tmp
   printable = yes
   public = yes
   writable = no
   create mode = 0700

# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   guest ok = yes
# Uncomment to allow remote administration of Windows print drivers.
# Replace 'ntadmin' with the name of the group your admin users are
# members of.
  write list = root, @ntadmin


i've just seen  in my config invalid users = root- it's 
important ?

I think it, as it is in the global section I believe it prevents root from
connecting to any share ( file/print).
Since you're using 3.0.14a you should have a printer admin =
users_or_groups_who_admin_printers
You are using the local windows Administrator account. I believe that when
you logon to the samba services, you send the user in this format:
winmachinename\administrator. Does that user belong to the administrators
group at the Samba box? Or does it get mapped to root via smbusers?


Hope this helps,
Bruno Guerreiro

i did smbpasswd -a root ? usefull or useless ?

thanks


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


Re: [Samba] cups driver

2005-09-09 Thread stenon

hi,

it's almost good !

i can add new driver and it's uploading in my $print share on my samba 
server

but when i want to save my change ...
printer configuration connot be saved, access denied

so i have change access on my directory /var/lib/samba/printers ... nothing

where could i see my access denied ? which directory is it ? because 
logs are empty


thanks ...



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


Re: [Samba] cups driver

2005-09-09 Thread stenon

hi

yes i'm sure ... i'm logged in administrator (user in administrator group)
why did you say machinename ?

so my problem is that drivers  are well uploaded on samba share $print  
(/printer/W32X86/3/hp*)  but

after when i want to finish installation i get : not saved , access denied

???


Bruno Guerreiro a écrit :


You're sure the machinename\administrator belongs to the printer admin
group?

Bruno Guerreiro

 


-Original Message-
From: stenon [mailto:[EMAIL PROTECTED]
Sent: sexta-feira, 9 de Setembro de 2005 11:40
To: Bruno Guerreiro; samba@lists.samba.org
Subject: Re: [Samba] cups driver


hi,

it's almost good !

i can add new driver and it's uploading in my $print share on my samba 
server

but when i want to save my change ...
printer configuration connot be saved, access denied

so i have change access on my directory 
/var/lib/samba/printers ... nothing


where could i see my access denied ? which directory is it ? because 
logs are empty


thanks ...



   




 



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


RE: [Samba] cups driver

2005-09-09 Thread Bruno Guerreiro
Hi,
Because I think when not in NT Domain, every user presents itself as
machinename/username.
Imagine this:
Administrator from PC1 can administrate samba
Administrator from PC2 can't administrate samba.

If only Administrator was sent, how would they be diferentiated?
In fact it also happens on a domain infrastructure. 
The only difference is that instead of machinename, the domainname is used.
Anyone feel free to jump in and correct me, if I'm wrong... (Pre-wekeend
brain reboot)

Best Regards,
Bruno Guerreiro 

-Original Message-
From: stenon [mailto:[EMAIL PROTECTED]
Sent: sexta-feira, 9 de Setembro de 2005 14:02
To: Bruno Guerreiro; samba@lists.samba.org
Subject: Re: [Samba] cups driver


hi

yes i'm sure ... i'm logged in administrator (user in 
administrator group)
why did you say machinename ?

so my problem is that drivers  are well uploaded on samba 
share $print  
(/printer/W32X86/3/hp*)  but
after when i want to finish installation i get : not saved , 
access denied

???


Bruno Guerreiro a écrit :

You're sure the machinename\administrator belongs to the printer admin
group?

Bruno Guerreiro

  

-Original Message-
From: stenon [mailto:[EMAIL PROTECTED]
Sent: sexta-feira, 9 de Setembro de 2005 11:40
To: Bruno Guerreiro; samba@lists.samba.org
Subject: Re: [Samba] cups driver


hi,

it's almost good !

i can add new driver and it's uploading in my $print share 
on my samba 
server
but when i want to save my change ...
printer configuration connot be saved, access denied

so i have change access on my directory 
/var/lib/samba/printers ... nothing

where could i see my access denied ? which directory is it ? because 
logs are empty

thanks ...







  


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


Re: [Samba] cups driver

2005-09-09 Thread stephane . purnelle

[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
 why you set browseable = yes ?, normally browseable = no
   read only = yes
   guest ok = yes
# Uncomment to allow remote administration of Windows print drivers.
# Replace 'ntadmin' with the name of the group your admin users are
# members of.
  write list = root, @ntadmin

I suppose that administrator is in ntadmin group ?

[global]
log file = /var/log/samba/log.%m
dns proxy = no
netbios name = pykota
security = user
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n
*Retype\snew\sUNIX\spassword:* %n\n .
server string = sprint
socket options = TCP_NODELAY
invalid users = root
obey pam restrictions = yes
workgroup = PyKoTa
os level = 20
auto services = printers
encrypt passwords = true
syslog = 0
passwd program = /usr/bin/passwd %u
passdb backend = tdbsam guest
panic action = /usr/share/samba/panic-action %d
max log size = 1000
load printer = Yes
printing = cups
printcap name = cups

use client driver = yes
Please modify this line : use client driver = no.

The permission of /var/lib/printers is correct.

try with no invalid users parameter in a second step



---
Stéphane PURNELLE [EMAIL PROTECTED]
Service Informatique   Corman S.A.   Tel : 00 32 087/342467

[EMAIL PROTECTED] a écrit sur
09/09/2005 15:02:12 :

 hi

 yes i'm sure ... i'm logged in administrator (user in administrator
group)
 why did you say machinename ?

 so my problem is that drivers  are well uploaded on samba share $print
 (/printer/W32X86/3/hp*)  but
 after when i want to finish installation i get : not saved , access
denied

 ???


 Bruno Guerreiro a écrit :

 You're sure the machinename\administrator belongs to the printer admin
 group?
 
 Bruno Guerreiro
 
 
 
 -Original Message-
 From: stenon [mailto:[EMAIL PROTECTED]
 Sent: sexta-feira, 9 de Setembro de 2005 11:40
 To: Bruno Guerreiro; samba@lists.samba.org
 Subject: Re: [Samba] cups driver
 
 
 hi,
 
 it's almost good !
 
 i can add new driver and it's uploading in my $print share on my samba
 server
 but when i want to save my change ...
 printer configuration connot be saved, access denied
 
 so i have change access on my directory
 /var/lib/samba/printers ... nothing
 
 where could i see my access denied ? which directory is it ? because
 logs are empty
 
 thanks ...
 
 
 
 
 
 
 
 
 

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


[Samba] Re: Samba+CUPS+Driver autodownload

2003-05-30 Thread Matt Dainty
Hi,

The version of CUPS and cupsaddsmb is currently 1.1.18, (due to be
upgraded to 1.1.19 soon-ish).

Here's the output of running cupsaddsmb -v ...:

# /usr/sbin/cupsaddsmb -v -U root oki7200
Password for root required to access localhost via SAMBA: 
Running command: smbclient //localhost/print\$ -N -U'root%secret' -c 'mkdir W32X86;put 
/var/spool/cups/tmp/3ed6034d677c4 W32X86/oki7200.PPD;put 
/usr/share/cups/drivers/ADOBEPS5.DLL W32X86/ADOBEPS5.DLL;put 
/usr/share/cups/drivers/ADOBEPSU.DLL W32X86/ADOBEPSU.DLL;put 
/usr/share/cups/drivers/ADOBEPSU.HLP W32X86/ADOBEPSU.HLP'
added interface ip=192.168.50.129 bcast=192.168.50.255 nmask=255.255.255.128
added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0
Domain=[XREFER] OS=[Unix] Server=[Samba 2.2.9pre1]
NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86
putting file /var/spool/cups/tmp/3ed6034d677c4 as \W32X86/oki7200.PPD (16523.1 kb/s) 
(average 16523.4 kb/s)
putting file /usr/share/cups/drivers/ADOBEPS5.DLL as \W32X86/ADOBEPS5.DLL (23519.6 
kb/s) (average 22062.2 kb/s)
putting file /usr/share/cups/drivers/ADOBEPSU.DLL as \W32X86/ADOBEPSU.DLL (22083.0 
kb/s) (average 22066.4 kb/s)
putting file /usr/share/cups/drivers/ADOBEPSU.HLP as \W32X86/ADOBEPSU.HLP (18016.8 
kb/s) (average 21935.8 kb/s)

Running command: rpcclient localhost -N -U'root%secret' -c 'adddriver Windows NT x86 
oki7200:ADOBEPS5.DLL:oki7200.PPD:ADOBEPSU.DLL:ADOBEPSU.HLP:NULL:RAW:NULL'
cmd = adddriver Windows NT x86 
oki7200:ADOBEPS5.DLL:oki7200.PPD:ADOBEPSU.DLL:ADOBEPSU.HLP:NULL:RAW:NULL
result was NT_STATUS_UNSUCCESSFUL

Running command: smbclient //localhost/print\$ -N -U'root%secret' -c 'mkdir WIN40;put 
/var/spool/cups/tmp/3ed6034d677c4 WIN40/oki7200.PPD;put 
/usr/share/cups/drivers/ADFONTS.MFM WIN40/ADFONTS.MFM;put 
/usr/share/cups/drivers/ADOBEPS4.DRV WIN40/ADOBEPS4.DRV;put 
/usr/share/cups/drivers/ADOBEPS4.HLP WIN40/ADOBEPS4.HLP;put 
/usr/share/cups/drivers/DEFPRTR2.PPD WIN40/DEFPRTR2.PPD;put 
/usr/share/cups/drivers/ICONLIB.DLL WIN40/ICONLIB.DLL;put 
/usr/share/cups/drivers/PSMON.DLL WIN40/PSMON.DLL;'
added interface ip=192.168.50.129 bcast=192.168.50.255 nmask=255.255.255.128
added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0
Domain=[XREFER] OS=[Unix] Server=[Samba 2.2.9pre1]
NT_STATUS_OBJECT_NAME_COLLISION making remote directory \WIN40
putting file /var/spool/cups/tmp/3ed6034d677c4 as \WIN40/oki7200.PPD (20653.8 kb/s) 
(average 20654.3 kb/s)
putting file /usr/share/cups/drivers/ADFONTS.MFM as \WIN40/ADFONTS.MFM (23420.0 kb/s) 
(average 23025.0 kb/s)
putting file /usr/share/cups/drivers/ADOBEPS4.DRV as \WIN40/ADOBEPS4.DRV (23434.6 
kb/s) (average 23294.7 kb/s)
putting file /usr/share/cups/drivers/ADOBEPS4.HLP as \WIN40/ADOBEPS4.HLP (23981.6 
kb/s) (average 23355.8 kb/s)
putting file /usr/share/cups/drivers/DEFPRTR2.PPD as \WIN40/DEFPRTR2.PPD (13174.5 
kb/s) (average 23244.0 kb/s)
putting file /usr/share/cups/drivers/ICONLIB.DLL as \WIN40/ICONLIB.DLL (23071.4 kb/s) 
(average 23235.0 kb/s)
putting file /usr/share/cups/drivers/PSMON.DLL as \WIN40/PSMON.DLL (18666.1 kb/s) 
(average 23096.6 kb/s)

Running command: rpcclient localhost -N -U'root%secret' -c 'adddriver Windows 4.0 
oki7200:ADOBEPS4.DRV:oki7200.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RAW:ADOBEPS4.DRV,oki7200.PPD,ADOBEPS4.HLP,PSMON.DLL,ADFONTS.MFM,DEFPRTR2.PPD,ICONLIB.DLL'
cmd = adddriver Windows 4.0 
oki7200:ADOBEPS4.DRV:oki7200.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RAW:ADOBEPS4.DRV,oki7200.PPD,ADOBEPS4.HLP,PSMON.DLL,ADFONTS.MFM,DEFPRTR2.PPD,ICONLIB.DLL
result was NT_STATUS_UNSUCCESSFUL

Running command: rpcclient localhost -N -U'root%secret' -c 'setdriver oki7200 oki7200'
cmd = setdriver oki7200 oki7200
Succesfully set oki7200 to driver oki7200.

I've also tried running the enum{printers,drivers} commands.
enumprinters [12] both give output, but enumprinters 3 gives me the
same NT_STATUS_UNSUCCESSFUL. enumdrivers [123] runs without an error
message, but displays nothing apart from the cmd = 

Cheers

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