[Samba] 3.0.1-member-server-printing

2004-02-11 Thread Manfred Odenstein
hello list,
after successfully playing around to get a working samba
3.0.1-PDC-LDAP-Suse9 configuration a new challenge takes place :

scenario:
suse9 with samba 3.0.1 as a member server in a NT4 controlled domain.
winbind works as expected (thanks to documention authors). There seems
to be no problem with file sharing, ACL is working properly (I'm using
xfs filesystem). :-)

so, now the problem : printing

1.) sharing the printer(s) works ok, the only problem occurs with long
and short names of Printer shares, I've named the printer queues with
short names and load all printers for sharing, then gave additional
shares with log names referencing the proper queue. My question, is this
a passable solution ??
extract of smb.conf:
...
[printers]
comment = All printers
printable = yes
path = /var/spool/samba
browseable = no
guest ok = yes
public = yes
read only = yes
writable = no
printer admin = @ntadmin,DOMAIN+Administrator
   
   [hp LaserJet 2200 Series PCL6-2]
printable = yes
path = /var/spool/samba
browseable = yes
guest ok = yes
public = yes
read only = yes
writable = no
printer name = laser2200
printer admin = @ntadmin,DOMAIN+Administrator
...


2.) driver installation :
I've tried to install the printer drivers for clients (win9x/2000/xp)
via the APW (add printer wizard), but I've failed with access denied.
If I changed the filesystem permissions in the [print$]-path in the way
that the DOMAIN+Administrator is allowed to create directories and
files, the driver files were copied on to the samba box. But the driver
installation failed (maybe for the default properties).
My question, are there other files where I've to change the permission
to allow DOMAIN+Administrator write access, e.g.
/var/lib/samba/ntprinters.tdb or the the subdirectory containing the
*.tdb(s) for the shared printers (e.g. /var/lib/samba/printing/hp
LaserJet 2200 Series PCL6-2.tdb) ??

extract of smb.file
...
[print$]
comment = Printer Driver Download Area
path = /var/lib/samba/drivers
browsable = no
guest ok = yes
read only = yes
write list = @ntadmin,DOMAIN+Administrator,root


thanks in advanced
regards odi

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


RE: [Samba] 3.0.1-member-server-printing

2004-02-11 Thread Bertrand Maugain
I guess your smb.conf is correct.

I'm using cups on freebsd.
I install cups( very easy) and I add a printer thanks to the webinterface.
I print a test page.

After that I upload the drivers in the print$ share by a little bit tricky way.
I log to my domain with root (added with pdbedit...-u root) on my Windows 2000 client 
( It is the only case you shoul do it!!).
I browse the network, the sambaserver and go to the printers section.
I right click on the printers , and properties
I'm asked if I want to download the drivers on my client since no drivers are 
installed.
You have to click no
Then you go the drivers section and do as if you install new drivers. You choose in 
the list and it will upload the drivers on your sambaserver.

It works fine!!

Hope it helps
Bertrand

-Message d'origine-
De : Manfred Odenstein [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 11 février 2004 12:01
À : [EMAIL PROTECTED]
Objet : [Samba] 3.0.1-member-server-printing


hello list,
after successfully playing around to get a working samba
3.0.1-PDC-LDAP-Suse9 configuration a new challenge takes place :

scenario:
suse9 with samba 3.0.1 as a member server in a NT4 controlled domain.
winbind works as expected (thanks to documention authors). There seems
to be no problem with file sharing, ACL is working properly (I'm using
xfs filesystem). :-)

so, now the problem : printing

1.) sharing the printer(s) works ok, the only problem occurs with long
and short names of Printer shares, I've named the printer queues with
short names and load all printers for sharing, then gave additional
shares with log names referencing the proper queue. My question, is this
a passable solution ??
extract of smb.conf:
...
[printers]
comment = All printers
printable = yes
path = /var/spool/samba
browseable = no
guest ok = yes
public = yes
read only = yes
writable = no
printer admin = @ntadmin,DOMAIN+Administrator
   
   [hp LaserJet 2200 Series PCL6-2]
printable = yes
path = /var/spool/samba
browseable = yes
guest ok = yes
public = yes
read only = yes
writable = no
printer name = laser2200
printer admin = @ntadmin,DOMAIN+Administrator
...


2.) driver installation :
I've tried to install the printer drivers for clients (win9x/2000/xp)
via the APW (add printer wizard), but I've failed with access denied.
If I changed the filesystem permissions in the [print$]-path in the way
that the DOMAIN+Administrator is allowed to create directories and
files, the driver files were copied on to the samba box. But the driver
installation failed (maybe for the default properties).
My question, are there other files where I've to change the permission
to allow DOMAIN+Administrator write access, e.g.
/var/lib/samba/ntprinters.tdb or the the subdirectory containing the
*.tdb(s) for the shared printers (e.g. /var/lib/samba/printing/hp
LaserJet 2200 Series PCL6-2.tdb) ??

extract of smb.file
...
[print$]
comment = Printer Driver Download Area
path = /var/lib/samba/drivers
browsable = no
guest ok = yes
read only = yes
write list = @ntadmin,DOMAIN+Administrator,root


thanks in advanced
regards odi

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


RE: [Samba] 3.0.1-member-server-printing

2004-02-11 Thread Manfred Odenstein
Thanks for the fast reply, but the problem is that the server is a
member server in a NT4 controlled domain, there is no user root (uid=0)
in the domain, if there would be a samba PDC, there should be no problem
with your solution.

regards odi


Am Mi, den 11.02.2004 schrieb Bertrand Maugain um 12:09:
 I guess your smb.conf is correct.
 
 I'm using cups on freebsd.
 I install cups( very easy) and I add a printer thanks to the webinterface.
 I print a test page.
 
 After that I upload the drivers in the print$ share by a little bit tricky way.
 I log to my domain with root (added with pdbedit...-u root) on my Windows 2000 
 client ( It is the only case you shoul do it!!).
 I browse the network, the sambaserver and go to the printers section.
 I right click on the printers , and properties
 I'm asked if I want to download the drivers on my client since no drivers are 
 installed.
 You have to click no
 Then you go the drivers section and do as if you install new drivers. You choose in 
 the list and it will upload the drivers on your sambaserver.
 
 It works fine!!
 
 Hope it helps
 Bertrand
 
 -Message d'origine-
 De : Manfred Odenstein [mailto:[EMAIL PROTECTED]
 Envoyé : mercredi 11 février 2004 12:01
 À : [EMAIL PROTECTED]
 Objet : [Samba] 3.0.1-member-server-printing
 
 
 hello list,
 after successfully playing around to get a working samba
 3.0.1-PDC-LDAP-Suse9 configuration a new challenge takes place :
 
 scenario:
 suse9 with samba 3.0.1 as a member server in a NT4 controlled domain.
 winbind works as expected (thanks to documention authors). There seems
 to be no problem with file sharing, ACL is working properly (I'm using
 xfs filesystem). :-)
 
 so, now the problem : printing
 
 1.) sharing the printer(s) works ok, the only problem occurs with long
 and short names of Printer shares, I've named the printer queues with
 short names and load all printers for sharing, then gave additional
 shares with log names referencing the proper queue. My question, is this
 a passable solution ??
 extract of smb.conf:
 ...
 [printers]
 comment = All printers
 printable = yes
 path = /var/spool/samba
 browseable = no
 guest ok = yes
 public = yes
 read only = yes
 writable = no
 printer admin = @ntadmin,DOMAIN+Administrator
  
  [hp LaserJet 2200 Series PCL6-2]
 printable = yes
 path = /var/spool/samba
 browseable = yes
 guest ok = yes
 public = yes
 read only = yes
 writable = no
 printer name = laser2200
 printer admin = @ntadmin,DOMAIN+Administrator
 ...
 
 
 2.) driver installation :
 I've tried to install the printer drivers for clients (win9x/2000/xp)
 via the APW (add printer wizard), but I've failed with access denied.
 If I changed the filesystem permissions in the [print$]-path in the way
 that the DOMAIN+Administrator is allowed to create directories and
 files, the driver files were copied on to the samba box. But the driver
 installation failed (maybe for the default properties).
 My question, are there other files where I've to change the permission
 to allow DOMAIN+Administrator write access, e.g.
 /var/lib/samba/ntprinters.tdb or the the subdirectory containing the
 *.tdb(s) for the shared printers (e.g. /var/lib/samba/printing/hp
 LaserJet 2200 Series PCL6-2.tdb) ??
 
 extract of smb.file
 ...
 [print$]
 comment = Printer Driver Download Area
 path = /var/lib/samba/drivers
 browsable = no
 guest ok = yes
 read only = yes
 write list = @ntadmin,DOMAIN+Administrator,root
 
 
 thanks in advanced
 regards odi

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


Re: [Samba] 3.0.1-member-server-printing

2004-02-11 Thread Gerald (Jerry) Carter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Manfred Odenstein wrote:

| I've tried to install the printer drivers for clients
| (win9x/2000/xp) via the APW (add printer wizard), but
| I've failed with access denied. If I changed the
| filesystem permissions in the [print$]-path in the way
| that the DOMAIN+Administrator is allowed to create
| directories and files, the driver files were copied on to
| the samba box. But the driver installation failed (maybe
| for the default properties).
put 'printer admin' in the gloabl section and this should
the final piece.


cheers, jerry
- --
Hewlett-Packard- http://www.hp.com
SAMBA Team -- http://www.samba.org
GnuPG Key   http://www.plainjoe.org/gpg_public.asc
If we're adding to the noise, turn off this song --Switchfoot (2003)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFAKktlIR7qMdg1EfYRAlDXAJ4pCNm6O+tdYdku9A3q/JN7n+dd7wCgomcQ
g2xf7vr6jecbx5pBGM16XJU=
=l336
-END PGP SIGNATURE-
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] 3.0.1-member-server-printing

2004-02-11 Thread Manfred Odenstein
[global]
...
printer admin = DOMAIN+Administrator
...

doesn't help, sorry, it's already there.

I will try to chmod to 775 the /var/lib/samba (owner root.root)
directory and add DOMAIN+Administrator to group root, only for testing

will report success or failure

regards odi


Am Mi, den 11.02.2004 schrieb Gerald (Jerry) Carter um 16:33:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Manfred Odenstein wrote:
 
 | I've tried to install the printer drivers for clients
 | (win9x/2000/xp) via the APW (add printer wizard), but
 | I've failed with access denied. If I changed the
 | filesystem permissions in the [print$]-path in the way
 | that the DOMAIN+Administrator is allowed to create
 | directories and files, the driver files were copied on to
 | the samba box. But the driver installation failed (maybe
 | for the default properties).
 
 put 'printer admin' in the gloabl section and this should
 the final piece.
 
 
 
 
 cheers, jerry
 - --
 Hewlett-Packard- http://www.hp.com
 SAMBA Team -- http://www.samba.org
 GnuPG Key   http://www.plainjoe.org/gpg_public.asc
 If we're adding to the noise, turn off this song --Switchfoot (2003)
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.2.1 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
 iD8DBQFAKktlIR7qMdg1EfYRAlDXAJ4pCNm6O+tdYdku9A3q/JN7n+dd7wCgomcQ
 g2xf7vr6jecbx5pBGM16XJU=
 =l336
 -END PGP SIGNATURE-

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


Re: [Samba] 3.0.1-member-server-printing

2004-02-11 Thread Manfred Odenstein
ok, failure :-(
I've changed permission on all *.tdb in /var/lib/samba, driver files
transfered correctly, samba noticed Added printer driver. Printer name
is blabla .
NT4-Server reported (translated from german) : could not changed to
given driver, previous settings will be restored.

after closing the dialog, an additional dialog pops up saying:
Printer properties couldn't be stored, Access denied. (also translated
from german)

I've raised the log level and noticed a lot of NT_STATUS messages like:
NT_STATUS_OBJECT_NAME_NOT_FOUND
NT_STATUS_NOT_A_DIRECTORY
NT_STATUS_NO_SUCH_FILE
NT_STATUS_INVALID_LEVEL

any suggestions ?

is this a solution ?
1.) create account named root on PDC (NT4), added to group Domain Admins
2.) changed uid in winbind_idmap.tdb to 0 (is there a way to do this ?
with the tdb utitlities ?)
3.) log on with this account and try ones more 

regards odi

Am Mi, den 11.02.2004 schrieb Manfred Odenstein um 16:48:
 [global]
 ...
 printer admin = DOMAIN+Administrator
 ...
 
 doesn't help, sorry, it's already there.
 
 I will try to chmod to 775 the /var/lib/samba (owner root.root)
 directory and add DOMAIN+Administrator to group root, only for testing
 
 will report success or failure
 
 regards odi
 
 
 Am Mi, den 11.02.2004 schrieb Gerald (Jerry) Carter um 16:33:
  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1
  
  Manfred Odenstein wrote:
  
  | I've tried to install the printer drivers for clients
  | (win9x/2000/xp) via the APW (add printer wizard), but
  | I've failed with access denied. If I changed the
  | filesystem permissions in the [print$]-path in the way
  | that the DOMAIN+Administrator is allowed to create
  | directories and files, the driver files were copied on to
  | the samba box. But the driver installation failed (maybe
  | for the default properties).
  
  put 'printer admin' in the gloabl section and this should
  the final piece.
  
  
  
  
  cheers, jerry
  - --
  Hewlett-Packard- http://www.hp.com
  SAMBA Team -- http://www.samba.org
  GnuPG Key   http://www.plainjoe.org/gpg_public.asc
  If we're adding to the noise, turn off this song --Switchfoot (2003)
  -BEGIN PGP SIGNATURE-
  Version: GnuPG v1.2.1 (GNU/Linux)
  Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
  
  iD8DBQFAKktlIR7qMdg1EfYRAlDXAJ4pCNm6O+tdYdku9A3q/JN7n+dd7wCgomcQ
  g2xf7vr6jecbx5pBGM16XJU=
  =l336
  -END PGP SIGNATURE-

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