in

Corey Roth and Friends Blogs

Group site for developer blogs dealing with (usually) Ionic, .NET, SharePoint, Office 365, Mobile Development, and other Microsoft products, as well as some discussion of general programming related concepts.

Kyle Kelin on .Net

Never Copy Files Into the TEMPLATE Folder Using Explorer

I spent the entire morning tying to debug an issue of why my SharePoint site kept prompting my user for their credentials even after they had entered it. What made the issue confusing was this didn't happen for domain admins. To test that theory I added my account to the domain admin group in AD and it worked. Of course I can't leave it like that. A colleague of said that it was prompting me because the account was trying to access resources it didn't have permissions to. Permissions on the physical disk of the server not in the database. So I broke out Fiddler and sure enough the account was getting 401 errors when accessing core.css. So I go look at the permissions of that file and I see that domain admins have rights but that is it. There is the problem. So I gave the Authenticated Users group read access to the file and the problem was fixed. Now why did this happen. Well the title of this post should give you a hint. A few weeks ago I copied core.css from another server to be sure they were identical. They turned out to be exact but it seems using Windows Explorer to copy files to those directories resets or deletes permissions (still not exactly sure what happens here, feel free to comment). Anyway the morale of the story is when copying files use the command line instead of Windows Explorer. 

Comments

 

CoreyRoth said:

That is strange.  I copy files out to the server all the time using explorer and never run into any issues.  I even checked on my server just now just to make sure and the permissions are fine.

February 6, 2008 5:17 PM

Leave a Comment

(required)
(optional)
(required)
Add

About KyleKelin

Kyle Kelin has been implementing software in the Microsoft space for the past 6 years mainly as a consultant. His interests are SharePoint, .NET, JQuery, and Silverlight.
2019.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems