Windows 8 and 8.1 Forums


Access is denied in folders

  1. #1


    Pakistan
    Posts : 35
    windows 8.1 Enterprise

    Access is denied in folders


    Hi everyone I just hide my folders via administator CMD i.e: the folder was in E drive
    i hide it by using this
    E:\ > cacls foldername /p everyone:n
    but now when I am removing this i am adding this code in elevated cmd
    E:\ > cacls foldername /p everyone:f
    then is says that access is denied
    And this is folder was also hidden by me by this code
    attrib foldername +h +s +r
    THEN WHAT I DO TO ACCESS THE FOLDER

      My System SpecsSystem Spec

  2. #2


    Hiding folders like that doesn't make them safe.

    The open source NTFS driver NTFS-3g ignores those attributes and can access those files at ease. So long as they're not encrypted, or on a deduplicated drive.


    I just tested the commands on a directory in Windows 8.1. I was able to remove all permissions, add System Hidden and ReadOnly attributes. Then I added everyone permission back, was able to dir the folder, and was able to remove attributes.

    You must be doin it wrong.
      My System SpecsSystem Spec

  3. #3


    Pakistan
    Posts : 35
    windows 8.1 Enterprise


    if it is wrong then what is the best method for hiding folders safely without any software
      My System SpecsSystem Spec

  4. #4


    Pakistan
    Posts : 35
    windows 8.1 Enterprise


    plz reply anyone that what i do for this folder
      My System SpecsSystem Spec

  5. #5


    You will need software. 7zip can compress a folder into an archive and put a password on it.

    Other than encryption, there is no way to safely hide something on a computer.


    BEWARE: Use of encryption software may be illegal in your home country!
      My System SpecsSystem Spec

  6. #6


    Posts : 7
    Windows 8.1 Professional


    Hi Maamirdina,

    By running the command,
    Code:
    cacls foldername /p everyone:n
    you've effectively denied all users access to the folder "foldername", along with their ability to change the permissions of this folder. At this stage, only the owner of that folder can make permission changes to it.

    If you want to re-gain access to this folder, you will have to first take ownership of it, then proceed to make changes to it's access rules.

    E.g.
    Code:
    C:\Users\Me\Desktop>takeown /f "foldername"
    SUCCESS: The file (or folder): "C:\Users\Me\Desktop\foldername" now owned by
     user "MY-PC\Me".
    C:\Users\Me\Desktop>icacls "foldername" /grant everyone:(F)
    processed file: foldername
    Successfully processed 1 files; Failed processing 0 files
    N.b. Cacls is now depreciated in favour of the newer Icacls command.


    Quote Originally Posted by hydranix View Post
    I just tested the commands on a directory in Windows 8.1. I was able to remove all permissions, add System Hidden and ReadOnly attributes. Then I added everyone permission back, was able to dir the folder, and was able to remove attributes.
    You probably created the folder yourself and was therefore the owner of it, able to change it's permissions freely.


    For hiding files, I've created a concept of hiding files in plane sight that you might like to check out, over in this thread at Sevenforums.
      My System SpecsSystem Spec

  7. #7


    Pakistan
    Posts : 35
    windows 8.1 Enterprise


    Quote Originally Posted by Pyprohly View Post
    Hi Maamirdina,

    By running the command,
    Code:
    cacls foldername /p everyone:n
    you've effectively denied all users access to the folder "foldername", along with their ability to change the permissions of this folder. At this stage, only the owner of that folder can make permission changes to it.

    If you want to re-gain access to this folder, you will have to first take ownership of it, then proceed to make changes to it's access rules.

    E.g.
    Code:
    C:\Users\Me\Desktop>takeown /f "foldername"
    SUCCESS: The file (or folder): "C:\Users\Me\Desktop\foldername" now owned by
     user "MY-PC\Me".
    C:\Users\Me\Desktop>icacls "foldername" /grant everyone:(F)
    processed file: foldername
    Successfully processed 1 files; Failed processing 0 files
    N.b. Cacls is now depreciated in favour of the newer Icacls command.


    Quote Originally Posted by hydranix View Post
    I just tested the commands on a directory in Windows 8.1. I was able to remove all permissions, add System Hidden and ReadOnly attributes. Then I added everyone permission back, was able to dir the folder, and was able to remove attributes.
    You probably created the folder yourself and was therefore the owner of it, able to change it's permissions freely.


    For hiding files, I've created a concept of hiding files in plane sight that you might like to check out, over in this thread at Sevenforums.
    THANKS A LOT
    MY PROBLEM SOLVE COMPLETELY by taking ownership of file
    Thanks
    Regards!!!!!!
      My System SpecsSystem Spec

Access is denied in folders
Related Threads
Hi guys, I have this annoying problem that just showed up recently since I've changed/upgraded laptops the past week. I can't seem to access or rather run the files on certain folders for my portable drive. I've already changed permissions and made myself owner for the files but it seems it...
Access denied in General Support
I have a folder in my data partition (not c drive) that I cannot delete. It tells me I need administrator rights but when I say continue it tells me access denied. How can I delete such a file?
Solved Access denied in General Support
HELLO FRIENDS, I just installed win 8. I have two partitions for my hard drive, C and D, of which I can't access to D Drive. It shows " access denied". When I go to the disk management D Drive shows healthy. I've put a screen shot for reference. Please help. ...
Manage Permission Inheritance in Windows 8 | VISHY Media on technologies and gadgets 3882 Ever get this message or worse, one that does not have the access button attached? you cannot read it, you cannot look at it and you cannot delete it. There are even worse issues where the...
Since installing Windows 8, I have been having sporadic problems with access denied. Examples follow: PIMEX is a Personal Information Manager that I have been using through several generations of Windows. When I first converted to Windows 8, this program worked with no problems. Now, however,...
Access Denied - No Read Access in General Support
---
Access Denied in General Support
Hi everyone! Before I begin, let me state that I did do a search but nothing returned (possibly because my internet is rubbish, lol). I'm having a problem with my Windows 8 installation; I have a file called "saves.txt" located on my C (so C:\saves.txt). I have been editing this file all...
Eight Forums Android App Eight Forums IOS App Follow us on Facebook