Solved

No Owner listed on a file and I can not add or change owner

Posted on 2006-11-15
14
1,946 Views
Last Modified: 2013-12-04
I have some PDF files in a particular network share that were converted from Word 2002 (XP). The conversion went fine and later the files were edited, a page was removed and another one was added. When the user went to save the file she could not because access was denied. The folder permissions are wide open (everyone has full access) but two files are like this. I tried to change the owner (while logged in as the domain administrator) but I can not do that either.

I also added the owner field to my view in explorer but these files do not have an owner listed. Also using the attrib command no attributes are listed.

How can I change the owner and reset the owner for these files?
0
Comment
Question by:pepadmin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
14 Comments
 
LVL 10

Expert Comment

by:AndresM
ID: 17949429
SubInACL (SubInACL.exe)

Brief Description
SubInACL is a command-line tool that enables administrators to obtain security information about files, registry keys, and services, and transfer this information from user to user, from local or global group to group, and from domain to domain.

http://www.microsoft.com/downloads/details.aspx?FamilyID=e8ba3e56-d8fe-4a91-93cf-ed6985e3927b&displaylang=en
0
 

Author Comment

by:pepadmin
ID: 17949668
I tried using this command but it didn't work. Access Denied.

I installed and ran the command from my machine, I am a domain admin but still get access denied. Is there a certain feature I should use other than setowner?
0
 
LVL 10

Expert Comment

by:AndresM
ID: 17949765
you can try with /grant, I think the syntax should be /grant=Everyone=F
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:pepadmin
ID: 17949797
Still getting access denied.

tried sgrant, even display and many other commands.

everytime I get access denied.
0
 
LVL 10

Expert Comment

by:AndresM
ID: 17949821
Sorry... The only think I would try is run the command from the server.
0
 

Author Comment

by:pepadmin
ID: 17957990
no luck there either, any other ideas?
0
 
LVL 10

Expert Comment

by:AndresM
ID: 17958160
mm.. may be you could try subinacl at the directory level instead file level
0
 

Author Comment

by:pepadmin
ID: 17967850
Access denied, It goes through all of the files but still fails on the corrupt one.
0
 
LVL 10

Expert Comment

by:AndresM
ID: 17967876
may be this?

Sometimes, you may experience combinations of these causes, which can make the procedure to delete a file more complex. For example, if you log on as the computer's administrator, you may experience a combination of Cause 1 (you do not have permissions to delete a file) and Cause 5 (the file name contains a trailing character that causes file access to be redirected to a different or nonexistent file) and you may not be able to delete the file. If you try to resolve Cause 1 by taking ownership of the file and adding permissions, you still may not be able to delete the file because the ACL editor in the user interface cannot access the appropriate file because of Cause 6.

In this situation, you can use the Subinacl utility with the /onlyfile switch (this utility is included in the Resource Kit) to change ownership and permissions on a file that is otherwise inaccessible, for example:
subinacl /onlyfile "\\?\c:\path_to_problem_file" /setowner=domain\administrator /grant=domain\administrator=F
Note This command is a single command line it has been wrapped for readability.

This sample command line modifies the C:\path_to_problem_file file that contains a trailing space so that the domain\administrator account is the owner of the file and this account has full control over the file. You can now delete this file by using the Del command with the same "\\?\" syntax.

You cannot delete a file or a folder on an NTFS file system volume
http://support.microsoft.com/kb/320081
0
 

Author Comment

by:pepadmin
ID: 17982797
Still not working. I am going to shorten some of the folder names because I realized that the path is over 128 characters (not sure if this is still relevant but I don't know what else to try. I have to get the change cleared first though so if you think of anything else please let me know.
0
 
LVL 2

Expert Comment

by:ACCUmarc
ID: 17983127
Can you copy the file to a Non-NTFS disk?  
0
 

Author Comment

by:pepadmin
ID: 17989846
I got it!!

I am kicking myself for not checking this sooner but there were threads open for the file on the server, even though no one had them open. Once I cleaned up the open threads everything was fine.

sorry for all of the drama
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 21101042
PAQed with points refunded (500)

Computer101
EE Admin
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Recently, a new law in my state forced us to get a top-to-bottom analysis of all of our contract client's networks. While we have documentation, it was spotty at best for some - and in any event it needed to be checked against reality. That was m…
As I write this article, I am finishing cleanup from the Qakbot virus variant found in the wild on April 18, 2011.  It was a messy beast that had varying levels of infection, speculated as being dependent on how long it resided on the infected syste…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question