Link to home
Create AccountLog in
Windows OS

Windows OS

--

Questions

--

Followers

Top Experts

Avatar of APD Toronto
APD Toronto๐Ÿ‡จ๐Ÿ‡ฆ

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

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of Yves AccadYves Accad๐Ÿ‡บ๐Ÿ‡ธ

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

Avatar of APD TorontoAPD Toronto๐Ÿ‡จ๐Ÿ‡ฆ

ASKER

OK, This is even stranger. When I use the UNC, I don't even see all my files
Files.JPG

Avatar of Yves AccadYves Accad๐Ÿ‡บ๐Ÿ‡ธ

Can you try hitting F5 on the UNC accessed foler? Any change?

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of APD TorontoAPD Toronto๐Ÿ‡จ๐Ÿ‡ฆ

ASKER

No change

Avatar of Yves AccadYves Accad๐Ÿ‡บ๐Ÿ‡ธ

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

Avatar of APD TorontoAPD Toronto๐Ÿ‡จ๐Ÿ‡ฆ

ASKER

OK, no idea how, but that listed the files equally.

Still Access deenied.

Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of Yves AccadYves Accad๐Ÿ‡บ๐Ÿ‡ธ

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?

Avatar of APD TorontoAPD Toronto๐Ÿ‡จ๐Ÿ‡ฆ

ASKER

Opening the file through Notepad as an admin, then modifying it works.

Using File Explorer does not.

How come?

SOLUTION
Avatar of Yves AccadYves Accad๐Ÿ‡บ๐Ÿ‡ธ

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

Avatar of APD TorontoAPD Toronto๐Ÿ‡จ๐Ÿ‡ฆ

ASKER

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


Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of Shaun VermaakShaun Vermaak๐Ÿ‡ฆ๐Ÿ‡บ

Do you get Accress Denied when you save the file or when you open it?

Avatar of EirmanEirman๐Ÿ‡ฎ๐Ÿ‡ช

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!

Avatar of Andrew LeniartAndrew Leniart๐Ÿ‡ฆ๐Ÿ‡บ

@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.

Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


ASKER CERTIFIED SOLUTION
Avatar of EirmanEirman๐Ÿ‡ฎ๐Ÿ‡ช

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.

Avatar of APD TorontoAPD Toronto๐Ÿ‡จ๐Ÿ‡ฆ

ASKER

Changing Permissions in Safe Mode did it,
Windows OS

Windows OS

--

Questions

--

Followers

Top Experts

This topic area includes legacy versions of Windows prior to Windows 2000: Windows 3/3.1, Windows 95 and Windows 98, plus any other Windows-related versions including Windows Mobile.