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

Matthieu Patou mat at samba.org
Sat Sep 4 13:59:52 MDT 2010


>> 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.
Great news ! I'll try to have a look in a couple of days on how the 
default policy look like on w2kx server maybe this files are indeed 
already present !
> 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
>>
Just to be sure so when you try to open:
  \\bar.com\sysvol\Policies\bar.com\{0C95ADB9-08A4-4387-BADF-11D63413367D}\User\Preferences you get this error message ?


> 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.
The basic questions: with which user do you do this ?
What are the unix rights of the folders ?
What are the ntfs rights of the folders ?

For me it looks like the Preference folder has been created by someone 
else (because it's not done by the provision) and you don't have the 
right on it.
Can you create a folder under the User folder ?

Matthieu.

-- 
Matthieu Patou
Samba Team        http://samba.org



More information about the samba-technical mailing list