Can't access file on Windows server
-
I received a call this morning from a user telling me they couldn't access some files in a network share.
This is a shared location that all staff have full control of, so I started by looking to see if I could access the file - It is a PDF, so Windows 10 launched Edge to view it, but nothing loaded and there was no error.
So I tried to make a local copy of the file to my desktop to try again - error, access denied for copying. hmmm.
So I look at the permissions of the file - I don't have any permissions - weird!
So I log into the server and access the drive where the file is stored, right click properties > security - still no permissions.
So I click the advanced button and attempt to take ownership by clicking the Change link at the top of the advanced window.
Instead of being prompted to choose what user to change the owner to, I'm presented with
WTF? I can't seem to take ownership.
So I lookup the command for icacls
icacls filename /setowner domain\username
and now I end up with
Any suggestions on how I can take ownership of this?
-
The file server is a Windows FS on the domain?
-
@scottalanmiller said:
The file server is a Windows FS on the domain?
Yes it's a Windows FS, the server is part of a domain.
The filesystem is NTFS, the version that came with Windows Server 2012 R2.
-
I wonder if there might be some file corruption - perhaps a checkdisk would fix it?
-
Just to provide more information,
This is a VM on ESXi 5.5. It was recently migrated from a different host to this host, but that was over 10 days ago and there have been no reported problems since the move until this morning.
-
OK solved this.
Ran a chkdsk in read-only and poof the problem was gone.
odd - it indicated there were no problems, but after I ran it in read-only it worked fine.