Can't Run, Can't Delete, Can't Own

Discussion in 'Windows 7 Support' started by John700, Jun 18, 2017.

  1. John700

    John700

    Joined:
    Jun 17, 2017
    Messages:
    18
    Likes Received:
    0
    I am running the below as the ADMINISTRATOR
    I have another topic with a related issue, but this specific symptom I would like to have explained. There's many hits on Google, but most of them end with: "the permanent all fixing solution is to run takeown.exe"

    Well, no.

    There is something seriously wrong with access rights, and I guess NTFS plays a bad role here. Note the file concerned comes from other machines (other Windows 7 clients), all with NTFS disks, and compressed in a Zip file.

    But question is: What does cause all of the below ? I need to stress this is run as administrator!

    C:\Directory>del some.exe
    C:\Directory\some.exe
    Access is denied.

    C:\Directory>takeown /F some.exe
    ERROR: Access is denied.

    C:\Directory>icacls some.exe
    some.exe: Access is denied.
    Successfully processed 0 files; Failed processing 1 files

    C:\Directory>some.exe
    Access is denied.

    C:\Directory>attrib some.exe
    A C:\Directory\some.exe

    C:\Directory>
     
    John700, Jun 18, 2017
    #1
    1. Advertisements

  2. John700

    TrainableMan ^ The World's First ^ Moderator

    Joined:
    May 10, 2010
    Messages:
    9,104
    Likes Received:
    1,592
    Location:
    PA, USA
    So you have a file call Some.exe that you are trying to delete from C:\directory? It is possible that the file is somewhere in the registry getting a protected status or it is actually in use some other way.

    I suggest you install Unlocker & use it to Delete the file if that is your goal. It will try to free the locking handles & delete it and if that fails you can set Unlocker to delete it on reboot.

    Unlocker is listed in our Freeware DB
     
    TrainableMan, Jun 21, 2017
    #2
    1. Advertisements

  3. John700

    John700

    Joined:
    Jun 17, 2017
    Messages:
    18
    Likes Received:
    0
    Thanks for the feedback. The main issue is that I can not re-own the file, as is illustrated. I thought that on itself would obviously be the biggest issue, if one is administrator.
    But, I would lie stating that, because I can't even RUN the file, as administrator.

    Not being able to delete is a minor concern, it just shows there is an issue deleting as well. But, it is true that locking may be involved. My question is, can you use Unlocker to be able to re-own files ?

    And, all of this while being administrator.

    What I think is that locking caused the owner to be incorrectly set. But, at what point ?
    And, how do I fix that ?

    Note I have re-installed Windows on that machine, as a solution for this problem.
     
    John700, Jun 25, 2017
    #3
  4. John700

    TrainableMan ^ The World's First ^ Moderator

    Joined:
    May 10, 2010
    Messages:
    9,104
    Likes Received:
    1,592
    Location:
    PA, USA
    Unlocker has nothing to do with ownership; it has to do with the file being "in use". If a file has a locking handle on it then it cannot be deleted.

    Ownership is much more complicated; for the most part if you created it on this machine while logged in to your loginID then you own it. But if it was created on a different machine or is in a directory protected by the system (such as the root directory c:\ ) or a folder where you do not have certain privileges then you can't do those things.

    To keep things consistent and because one computer can have multiple users, YOUR files should really be under YOUR folders C:\Users\{yourloginID}\ , for example mine might be found in C:\Users\TrainableMan\Documents or C:\Users\TrainableMan\Downloads.

    I can't say I totally understand ownership but when I put my files where W7 expects them I rarely need Unlocker or TakeOwn & I can't say I've had problems like you seem to be having.
     
    TrainableMan, Jun 26, 2017
    #4
  5. John700

    John700

    Joined:
    Jun 17, 2017
    Messages:
    18
    Likes Received:
    0
    I understand.

    The files I have issues with, all come from a Zip file created on another machine.
    But, most files from this Zip do not have these issues.
     
    John700, Jun 26, 2017
    #5
  6. John700

    TrainableMan ^ The World's First ^ Moderator

    Joined:
    May 10, 2010
    Messages:
    9,104
    Likes Received:
    1,592
    Location:
    PA, USA
    Since they came from another computer then you, even as an ADMIN may not have permissions to the file, thus the reason Take ownership is suggested.

    In Windows Explorer RIGHT-click on one of the problem programs & chose properties. Go to the SECURITY tab and in the "Group or user names" section scroll to your login (if it exists) then use something like the snipping tool to take a screenshot and attach it here.

    Reference: How to take ownership and change permissions of files
     
    TrainableMan, Jun 27, 2017
    #6
    1. Advertisements

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
  1. Ian

    How to Submit your own Article or Tutorial - Discussion

    Ian, Dec 8, 2009, in forum: Hidden Article Discussion Forum
    Replies:
    0
    Views:
    2,001
  2. Ian

    How to Submit your own Article or Tutorial

    Ian, Dec 8, 2009, in forum: User Submitted Articles
    Replies:
    0
    Views:
    4,029
  3. Steel

    Google can run but it can't hide!!!

    Steel, Jan 1, 2011, in forum: alt.windows7.general
    Replies:
    15
    Views:
    1,530
    SC Tom
    Jan 3, 2011
  4. Silvermistshadow

    Program wants to run as admin. I need it to run as user.

    Silvermistshadow, Oct 1, 2011, in forum: Windows 7 Support
    Replies:
    5
    Views:
    3,621
    TrainableMan
    Jun 19, 2017
  5. LarryLongwell

    SOLVED How to delete programs that won't delete the usual way?

    LarryLongwell, Aug 16, 2015, in forum: Windows 7 Support
    Replies:
    1
    Views:
    663
    jefboyardee
    Aug 17, 2015
  6. itayzargof2
    Replies:
    0
    Views:
    830
    itayzargof2
    Nov 8, 2016
  7. wildchild1954
    Replies:
    0
    Views:
    507
    wildchild1954
    Nov 12, 2016
  8. Vladimir Drobny

    Can't delete 0 byte file, because it's in use.

    Vladimir Drobny, Apr 29, 2017, in forum: Windows 7 Support
    Replies:
    0
    Views:
    287
    Vladimir Drobny
    Apr 29, 2017
Loading...