Bug 9468 - drivers cannot be uploaded to server from XP client
drivers cannot be uploaded to server from XP client
Status: NEEDINFO
Product: Samba 3.6
Classification: Unclassified
Component: Printing
3.6.3
x86 All
: P5 major
: ---
Assigned To: printing-maintainers
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-12-05 18:23 UTC by Sandro Dentella
Modified: 2013-01-18 11:22 UTC (History)
0 users

See Also:


Attachments
log.10.0.0.51 produced with log level = 10 (506.87 KB, text/plain)
2012-12-05 18:23 UTC, Sandro Dentella
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sandro Dentella 2012-12-05 18:23:10 UTC
Created attachment 8285 [details]
log.10.0.0.51 produced with log level = 10

Uploading drivers for HP printer I get a message that says:


  no way to copy hplib4650.FC_
  Make sure the posotion of the file belo is correct or specify a different
  one and insert HP Color drive...


My conf::

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

  [print$]
      comment = Printer Drivers
      path = /var/lib/samba/printers
      read only = yes
      write list = @"Domain Admins", root, administrator
      guest ok = Yes

filesystema permission are definitely ok, the users that (tries to) upload the drivers is administrator that belongs to Domain Admins. System is Ubuntu 12.04 and client has  XP SP3.

I attach logs. A dump of the network when the upload was attempted can be found here: http://www.e-den.it/misc/driver-upload.pcap.gz
Comment 1 David Disseldorp 2012-12-06 09:18:43 UTC
Thanks for your report Sandro.

(In reply to comment #0)
...
> 
> filesystema permission are definitely ok, the users that (tries to) upload the
> drivers is administrator that belongs to Domain Admins. System is Ubuntu 12.04
> and client has  XP SP3.

Does the uploading user also have the SePrintOperatorPrivilege privilege?

This can be granted with:
# net -Uroot rpc rights grant $user SePrintOperatorPrivilege
Comment 2 Sandro Dentella 2012-12-06 19:10:33 UTC
(In reply to comment #1)
> Thanks for your report Sandro.
> 
> (In reply to comment #0)
> ...
> > 
> > filesystema permission are definitely ok, the users that (tries to) upload the
> > drivers is administrator that belongs to Domain Admins. System is Ubuntu 12.04
> > and client has  XP SP3.
> 
> Does the uploading user also have the SePrintOperatorPrivilege privilege?
> 
> This can be granted with:
> # net -Uroot rpc rights grant $user SePrintOperatorPrivilege

User administrators belongs to DomainAdmins that has that right, anyhow I tested adding the right to the user as well but the result doesn't change::


root@srv-volta:~# net rpc rights list Domain\ Admins -U administrator%xxx
SeMachineAccountPrivilege
SeTakeOwnershipPrivilege
SeBackupPrivilege
SeRestorePrivilege
SeRemoteShutdownPrivilege
SePrintOperatorPrivilege
SeAddUsersPrivilege
SeDiskOperatorPrivilege
root@srv-volta:~# net rpc rights list administrator -U administrator%xxx
root@srv-volta:~# 
root@srv-volta:~# net -U administrator%e25gs66 rpc rights grant administrator SePrintOperatorPrivilege
Successfully granted rights.
root@srv-volta:~# net rpc rights list administrator -U administrator%xxx
SePrintOperatorPrivilege
Comment 3 Andreas Schneider 2013-01-17 16:16:56 UTC
I'm not able to reproduce this. I have a HP LaserJet 1018 here and successfully uploaded drivers for 32bit and 64bit.

Are you sure that the administrator has write access to the relevant directories? You set the with ACLs?
Comment 4 Sandro Dentella 2013-01-17 17:10:39 UTC
(In reply to comment #3)
> I'm not able to reproduce this. I have a HP LaserJet 1018 here and successfully
> uploaded drivers for 32bit and 64bit.
> 
> Are you sure that the administrator has write access to the relevant
> directories? You set the with ACLs?

Yes. Definitely sure. I did that several other times and it always worked.
I also have a test suite that checks this same issue.
Comment 5 Andreas Schneider 2013-01-17 17:20:38 UTC
Can you post me a link to the driver?
Comment 6 Andreas Schneider 2013-01-17 17:21:27 UTC
or tell me the name so I can find it on hp.com
Comment 7 Sandro Dentella 2013-01-17 17:51:06 UTC
(In reply to comment #6)
> or tell me the name so I can find it on hp.com

I tested both PCL and PostScript drivers for 4650. The following link is for the italian release:

http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareDescription.jsp?lang=it&cc=it&prodTypeId=18972&prodSeriesId=375773&prodNameId=375775&swEnvOID=228&swLang=24&mode=2&taskId=135&swItem=lj-20533-6

http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareDescription.jsp?lang=it&cc=it&prodTypeId=18972&prodSeriesId=375773&prodNameId=375775&swEnvOID=228&swLang=24&mode=2&taskId=135&swItem=lj-20639-5


Note that I was able to upload to the server this same driver with Ubuntu 10.04 (Samba 3..4.7 IIRC) but in that setup I'm not able to set printing defaults and it sticks printing in letter format (rather than A4). For that reason I switched to samba 3.6.3 (Ubuntu 12.04).
Comment 8 Andreas Schneider 2013-01-18 11:22:47 UTC
I'm able to successfully upload the drivers with Windows XP to Samba 4.0.x. Please try the latest Samba 3.6 version and not 3.6.3.