should I be able to set printers and folder option via group policy?

Aaron Solochek aarons-samba at aberrant.org
Sat Sep 4 12:55:22 MDT 2010


On 09/04/2010 03:57 AM, Matthieu Patou wrote:
> On 04/09/2010 01:53, Aaron Solochek wrote:
>> But what I really want is to deploy shared printers, which you can only do 
>> via:
>> 
>> user config->preferences->control panel settings->printers
>> 
>> but when I click OK or Apply, I get the error:
>> 
>> Error (0x80070002) occurred saving settings file. The system cannot find 
>> the file specified.
>> 
> Wireshark/tcpdump trace -s 16000
>> There is no error that I can see in the samba log.
> what is the level of the log ? -d 5 ?
>> I get the same error trying to save folder options at the same path. Does 
>> this just mean something is missing from my schema?
>> 
> Don't think so, search the errors. send us the trace (if not too big).
> 
> Matthieu
> 


Ok, after running wireshark it appears the problem is a combination of the
create request coming from the group policy editor being this:

Disposition: Open (if file exists open it, else fail) (1)
Filename:
bar.com\Policies\{0C95ADB9-08A4-4387-BADF-11D63413367D}\User\Preferences\Printers\Printers.xml

and that file not existing by default.  I got rid of the error by creating the
Printers\Printers.xml file manually on the file server (containing nothing more
than <?xml version="1.0" encoding="utf-8"?>) Indeed, adding printers then
successfully updates that file.

One other problem related to this is that I was unable to manually create that
file via samba.  I opened up \\bar.com\Sysvol\...\Preferences and right-clicked
to create the Printers folder, but I got this error:

> 
> Could not find item. This is no longer located in 
> \\bar.com\sysvol\...\{0C95ADB9-08A4-4387-BADF-11D63413367D}\User.  Verify
> the item's location and try again.
> 
> Preferences Type: File Folder Date Modified: 9/1/2010 5:14 PM
> 

Via wireshark, I see:

> 296	13.754035	10.1.10.20	10.1.10.10	SMB2	Create Request File:
> bar.com\Policies\{0C95ADB9-08A4-4387-BADF-11D63413367D}\User\Preferences\New
> folder
> 
> 297	13.754471	10.1.10.10	10.1.10.20	SMB2	Create Response, Error:
> STATUS_OBJECT_NAME_NOT_FOUND
> 
> 298	13.754913	10.1.10.20	10.1.10.10	SMB2	Create Request File:
> bar.com\Policies\{0C95ADB9-08A4-4387-BADF-11D63413367D}\User\Preferences;Notify
> Request
> 
> 299	13.755070	10.1.10.10	10.1.10.20	SMB2	Create Response File:
> bar.com\Policies\{0C95ADB9-08A4-4387-BADF-11D63413367D}\User\Preferences
> 
> 300	13.755078	10.1.10.10	10.1.10.20	SMB2	Notify Response, Error:
> STATUS_PENDING
> 
> 301	13.755097	10.1.10.20	10.1.10.10	SMB2	Cancel Request
> 
> 310	13.787312	10.1.10.20	10.1.10.10	SMB2	Create Request File:
> bar.com\Policies\{0C95ADB9-08A4-4387-BADF-11D63413367D}\User\Preferences\New
> folder
> 
> 312	13.787749	10.1.10.10	10.1.10.20	SMB2	Create Response, Error:
> STATUS_OBJECT_NAME_NOT_FOUND

So for whatever reason, when windows (7, 64bit) requests that New Folder
creation, samba is coming back with an unexpected error.

I can post the actual pcap of this, if someone can give me a quick way to strip
out information identifying the domain it comes from.

Thanks.

-Aaron

-Aaron



More information about the samba-technical mailing list