Link to home
Start Free TrialLog in
Avatar of Wicked_Koala
Wicked_Koala

asked on

Text File - "Access Denied"

I'm getting 'Access Denied' when trying to open a .txt file on a W2K Server, here is what I have determined so far:

I am unable to copy, rename, move, delete the file. Through srvmgr and 'net file' I have verified that no one has it open and locked. Permissions are set correctly on the file. There appears to be no disk corruption. The file is a log file related to ADSM but has not been modified for several days, so it is not currently being written to. I have tried all these methods through Telnet, Terminal Services and NetOP (so having a Session 0 session has not helped).

The last resort is to reboot the server, however that will cause much pain and more coordinating than what I want to deal with, so I'm trying to exhaust all possible options before it comes to that...is there anything else I can try that I have overlooked?
Avatar of tebacher
tebacher
Flag of United States of America image

Have you tried taking ownership of the file??

To do so:

right-click the file, go to properties, then security.  Click the Advanced button, and then the Owner tab.  Set the owner to the user you are logged in as.
Can you send the exact error message you have.  I've had a simular issue.  I had to open a command prompt, and delete the file from there.  There is a catch, I had to end the explorer.exe process before I deleted the file.  If you end the explorer process before you open the command prompt, you will not be able to get to the start menu.  To start the explorer process, do a CTL+ALT+DELETE, Task Manager, Run new task, type explorer.
Avatar of Wicked_Koala
Wicked_Koala

ASKER

I tried that, but I do not get an option to take ownership. When I click on the Advanced button, I get the pop up "Advanced Attributes" and I get the options for "Archive and index attributes" and "Compress and encrypt attributes." There is no are no Security or Owner tabs.
The exact error message is "Access Denied", whether in a command prompt or in the GUI. I do not want to delete it as I need the file accessible.

I should not have made it more clear that I do not want it deleted....sorry about that.
There may be an open handle to the file, which net file may not show.  Download process explorer from sysinternals.com.  Once you launch it, click find, find handle.  Type the name of the file.  It should tell you the process that has the open handle to the file.
Unfortunately we are not "legally" allowed to use any of Sysinternals utilities (for some licensing reasons) and I do not have the ability to download or install it, so process explorer is out of the question at this point.

I think a reboot just may be in order.
ASKER CERTIFIED SOLUTION
Avatar of modulo
modulo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial