Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Folder: Access Denied!

Status
Not open for further replies.

snoopydawg

Technical User
May 9, 2005
36
0
0
US
I have an important folder that keeps telling me the access is denied when i try to open the items inside this folder.

The problem started when i copied all the items from My Documents folder to an external Hard Drive for backup. I did a fresh install of windows xp Pro and now when i try to open the items i get access denied. So i go to the microsoft help on how to fix it. It said to change the ownership and shows the process. I followed the steps word for word a few times and still no access. Can someone please offer any other options. Thanks for any info.

KMart-
 
bcastner, thanks for the post but when i do everything you say and type the command in the run box. I get a message saying that i either typed it wrong or it cant find what its looking for. So i copy and paste it and i get the same thing.
This is what you had for me. Is this right?

subinacl /subdirectories C:\IMPORTANT_FOLDER /grant=everyone=f


I thought i made it easy by copy/paste in to the run box

%windir%\System32

then copy/paste

subinacl /subdirectories C:\IMPORTANT_FOLDER /grant=everyone=f

what do you think i am doing wrong?
 
linney, i used to use a encryption program called Folder Lock but i am pretty sure it was not in use at the time i copied it to the backup hard drive.

can you think of anything i can try?

Thanks for your time.

KMart-
 
Did you substitute your folder name for:
C:\IMPORTANT_FOLDER in the command?

I used C:\IMPORTANT_FOLDER to represent the folder you were having issues with:
I have an important folder that keeps telling me the access is denied when i try to open the items inside this folder.


 
bcastner- Sorry, I feel like a idiot because i can't get this to work.

Ok let me give you more detailed info so you can hopefully tell me what i am doing wrong.

I installed the subinacl.exe and then copied into %windir%\System32

Since this was all done on C:\ does it still work if the folder i am trying to fix is on I:\ ? Plus, the folder is a subfolder. So i have tried these commands. The path to the folder is this.

I:\Misc Docs/ID's & Passwords

So how should i type the command?

subinacl /subdirectories I:\ID's & Passwords /grant=everyone=f

Message i recieve is this.
" Windows cannot find "subinacl" make sure you typed the name correctly"

Thanks,

KMart-
 
The "&" character is known to cause some problems in Windows under certain circumstances.

NET USE password with an ampersand
thread779-1271424

The full command set for SubInACL is documented in an HTML file included with the program. You can also try Subinacl /? for the list of Commands. I imagine you would have to include the full path to the file, but the message you are getting suggests that it cannot find Subinacl.exe?

In case your encryption program has set a password on this folder you could re-install that "Folder Lock" just to test that possibility.


SYNTAX
------

The SubInAcl syntax is analog to the UNIX find tool.
For each object, SubInAcl :
1. retrieves the security descriptor of the object
2. applies the /action(s). The /actions are executed in the order of
the command line
3. If :
- the security descriptor has been modified and
- the /testmode switch has not been specified
the changes are applied to the object
For instance :
- SubInAcl /outputlog=result.txt /subdirectories \\Server\c$\temp\*.*
/grant=Dom\John=F /noverbose /display
For each file below \\Server\c$\temp, SubInAcl will
- open the file
- grant full control for dom\john
- display the security setting in noverbose mode
- save the security descriptor.
All outputs will be saved in result.txt

You can specify as many /actions as you wish. You must specify at least 3
characters for each action.
The command line is not case-sensitive

Ex: SubInAcl /file c:\temp\*.txt /replace=John=Smith /display
for each *.txt file will - replace John with Smith
- display the whole security descriptor
- apply the changes if any

 
subinacl /subdirectories "I:\ID's & Passwords" /grant=everyone=f

Note there must be a space after subinacl and before /subdirectories

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top