Access Denied when opening .txt file

Hi Experts,

When I try to open a text file, I get Access Denied.

When I tried to give full permissions, I get

An error occurred while applying security information to:

C:/inetpub/wwwroot\domain.com\downloads\myfile.txt

Access is denied.

I have also verified that I am that I am the owner of the  file.  I am also logged in as an admin.

I'm using Win 7 Pro x64

Any help will be appreciated
APD TorontoSoftware DeveloperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Yves AccadNetwork Security EngineerCommented:
From your description it sounds like it may be a UAC issue. As a test can you edit the file if you access it using the UNC?

example:   \\Yourservername\C$\inetpub/wwwroot\domain.com\downloads\myfile.txt
0
APD TorontoSoftware DeveloperAuthor Commented:
OK, This is even stranger. When I use the UNC, I don't even see all my files
Files.JPG
0
Yves AccadNetwork Security EngineerCommented:
Can you try hitting F5 on the UNC accessed foler? Any change?
0
KuppingerCole Reviews AlgoSec in Executive Report

Leading analyst firm, KuppingerCole reviews AlgoSec's Security Policy Management Solution, and the security challenges faced by companies today in their Executive View report.

APD TorontoSoftware DeveloperAuthor Commented:
No change
0
Yves AccadNetwork Security EngineerCommented:
Just to make absolutely sure we're hitting the same folder can you use this UNC instead of what is in the screenshot?

\\Optiplex\C$\inetpub\wwwroot\CRM_COR\attachments\client-1\prog-11
0
APD TorontoSoftware DeveloperAuthor Commented:
OK, no idea how, but that listed the files equally.

Still Access deenied.
0
Yves AccadNetwork Security EngineerCommented:
One more test please. Right-click notepad > Run as administrator. Then go to the file in question and try to open it, modify and save it. Does it work?
0
APD TorontoSoftware DeveloperAuthor Commented:
Opening the file through Notepad as an admin, then modifying it works.

Using File Explorer does not.

How come?
0
Yves AccadNetwork Security EngineerCommented:
OK so that verifies that we're dealing with a UAC issue. You don't have access to c:\inetpub although the Administrators group has access to the folder and you are part of the Administrators group because UAC takes precedence.

You can try disabling UAC or set permission using an elevated command prompt ( right-click command prompt and run as administrator)
icacls %systemdrive%\inetpub /grant  %userdomain%\%username%:(OI)(CI)(F) /grant %userdomain%\%username%:F

This will assign your user full control on inetpub.
0
APD TorontoSoftware DeveloperAuthor Commented:
When I set this PC 10 years back, I chose "Nataliia & aleks" as the main Admin, then I changed it to APoposki, and now I get...

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Windows\system32>icacls %systemdrive%\inetpub /grant  %userdomain%\%username%:(OI)(CI)(F) /grant %userdomain%\%username%:F
Invalid parameter "OPTIPLEX\Nataliia"
'aleks:' is not recognized as an internal or external command,
operable program or batch file.
The filename, directory name, or volume label syntax is incorrect.

C:\Windows\system32>icacls %systemdrive%\inetpub /grant  %userdomain%\apoposki:(OI)(CI)(F) /grant %userdomain%\%username%:F
Invalid parameter "OPTIPLEX\Nataliia"
The filename, directory name, or volume label syntax is incorrect.

C:\Windows\system32>icacls %systemdrive%\inetpub /grant  %userdomain%\"apoposki":(OI)(CI)(F) /grant %userdomain%\%username%:F
Invalid parameter "OPTIPLEX"apoposki:(OI)(CI)(F) /grant OPTIPLEX\Nataliia "
The filename, directory name, or volume label syntax is incorrect.

C:\Windows\system32>icacls %systemdrive%\inetpub /grant  %userdomain%\"Nataliia & aleks":(OI)(CI)(F) /grant %userdomain%\%username%:F
Invalid parameter "OPTIPLEX"Nataliia"
The filename, directory name, or volume label syntax is incorrect.

C:\Windows\system32>

Open in new window

0
Shaun VermaakTechnical Specialist/DeveloperCommented:
Do you get Accress Denied when you save the file or when you open it?
0
EirmanChief Operations ManagerCommented:
Try Unlocker.
It's the most popular file unlocking software out there.

This tip applies to ALL software that you may ever install ...

Take your time installing, so you don't install unwanted toolbars etc.
Don't blindly click YES/OK/Standard Installation - Read before you click!
0
Andrew LeniartSenior EditorCommented:
@Eirman,

You're on the wrong track. Unlocker will do nothing to solve an access denied message. The file is not "Locked" - This is clearly a permissions issue and Yves has already proven that.
0
EirmanChief Operations ManagerCommented:
You're on the wrong track.
Maybe so - Still there is no harm in trying Unlocker (It lists any locking 'handles).

(Perhaps re-booting to safe mode would be worth trying).
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
APD TorontoSoftware DeveloperAuthor Commented:
Changing Permissions in Safe Mode did it,
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows OS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.