Pablo T. Virgo
2013-Oct-08 15:36 UTC
[Samba] Point'n Print setup on Samba4 failing to install drivers
Premise / status: I've set up Samba 4 as an AD controller, and, according to the instructions on the [howto](https://wiki.samba.org/index.php/Samba_as_a_print_server), have established a [print$] share that should allow me to "upload printer drivers for Point'n'Print driver installation." The printers are visible from the Windows client, but the server does not have Windows drivers available so drag and drop installation won't work. Problems / deviation from the instructions: If I attempt to load the driver with the [print$] share permissions set as per the howto, (755 server side, samba config includes 'writeable = yes') I get an access denied error. If I set the [print$] share permissions wide open on the server (777) and use the Windows 7 interface to make sure that either Domain Admins or even Everyone has full control, drivers will appear to begin installation and then fail with errer 0x0000001f. It does not appear that any files are actually placed on the server. I've tried this with different printers and drivers. The user account is a Domain Admin and that group was granted print operator privileges. I can even just shove random text files into the [print$] share from Windows. Sub-question: Is there / shouldn't there be a way to have write permissions through the Samba4 server without setting the local unix permissions wide open? Main question: What could I have overlooked? What do I need to do in order to get the print drivers to installed on the server? Thank you, -- Pablo Virgo System Administrator Solutions for Progress, Inc. 728 South Broad Street Philadelphia, PA 19146 Phone: 215-701-8075 Fax: 215-972-8109 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 230 bytes Desc: not available URL: <http://lists.samba.org/pipermail/samba/attachments/20131008/c1e46acf/attachment.pgp>
Pablo T. Virgo
2013-Oct-08 15:41 UTC
[Samba] Point'n Print setup on Samba4 failing to install drivers
Premise / status: I've set up Samba 4 as an AD controller, and, according to the instructions on the [howto](https://wiki.samba.org/index.php/Samba_as_a_print_server), have established a [print$] share that should allow me to "upload printer drivers for Point'n'Print driver installation." The printers are visible from the Windows client, but the server does not have Windows drivers available so drag and drop installation won't work. Problems / deviation from the instructions: If I attempt to load the driver with the [print$] share permissions set as per the howto, (755 server side, samba config includes 'writeable = yes') I get an access denied error. If I set the [print$] share permissions wide open on the server (777) and use the Windows 7 interface to make sure that either Domain Admins or even Everyone has full control, drivers will appear to begin installation and then fail with errer 0x0000001f. It does not appear that any files are actually placed on the server. I've tried this with different printers and drivers. The user account is a Domain Admin and that group was granted print operator privileges. I can even just shove random text files into the [print$] share from Windows. Sub-question: Is there / shouldn't there be a way to have write permissions through the Samba4 server without setting the local unix permissions wide open? Main question: What could I have overlooked? What do I need to do in order to get the print drivers to installed on the server? Thank you, -- Pablo Virgo System Administrator Solutions for Progress, Inc. 728 South Broad Street Philadelphia, PA 19146 Phone: 215-701-8075 Fax: 215-972-8109 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 230 bytes Desc: not available URL: <http://lists.samba.org/pipermail/samba/attachments/20131008/33af49a0/attachment.pgp>
Marc Muehlfeld
2013-Oct-08 20:01 UTC
[Samba] Point'n Print setup on Samba4 failing to install drivers
Am 08.10.2013 18:53, schrieb Pablo T. Virgo:>> - Can you show the output of "getfacl" on the directory? >> - What filesystems is this share on? >> - Is it mounted with user_xattr? > > Details on the share: /var/samba/print_drivers is on the /var partition, which is mounted with user_xattr, as per the Domain Setup howto. > > Here is the current output on the share. I've tried it with the local owner as root:root as well. > > getfacl /var/samba/print_drivers/ > getfacl: Removing leading '/' from absolute path names > # file: var/samba/print_drivers/ > # owner: 3000000 > # group: users > user::rwx > user:root:r-x > group::r-x > group:root:r-x > group:users:r-x > group:3000000:rwx > group:3000008:rwx > mask::rwx > other::r-x > default:user::rwx > default:user:root:rwx > default:user:3000000:rwx > default:group::r-x > default:group:root:r-x > default:group:users:r-x > default:group:3000000:rwx > default:group:3000008:rwx > default:mask::rwx > default:other::r-x > >> I wrote that HowTo in June. So I think I had tested everything with >> 4.0.6. What version are you running? >> What OS/Distribution/Version are you running? > > I compiled Samba 4.0.9 on Debian Wheezy (stable).>> If I have time later, I can try setup printing on my test environment to >> re-validate the HowTo.I setup a print server based on my HowTo with 4.0.10. As permissions for the driver share folder I simply just set 755 (no permissions set on windows on the share nor on the filesystem). Printer driver upload works fine (I tried the Win7 driver of a Sharp MX-2600n PS). But I found a bug if only x64 drivers are uploaded: https://bugzilla.samba.org/show_bug.cgi?id=10186 I'll add a hint to the HowTo about that. Regards, Marc