Solved Access is denied in folders

maamiradina

Member
Messages
36
Location
Pakistan
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 Computer

System One

  • OS
    windows 8.1 Enterprise
    Computer type
    Laptop
    System Manufacturer/Model
    HP ELITEBOOK 6930P
    CPU
    Core 2 vpro
    Motherboard
    Mobile intel 4 series express chipset family
    Graphics Card(s)
    Mobile intel 4 series express chipset family
    Antivirus
    Avast
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 Computer

System One

  • OS
    Kernel 4.x
    Computer type
    PC/Desktop
    CPU
    i5 3570K
    Motherboard
    P8Z77-V LK
    Memory
    G.skill Ripjaw Z 2133MHz 9-11-10-28
    Graphics Card(s)
    GTX770 4GB Dual BIOS
    Sound Card
    Audigy 4 Pro
    Monitor(s) Displays
    32" SAMSUNG HDTV
    Screen Resolution
    1920x1080 progressive
    Hard Drives
    10TB total
    3 RAID arrays
    3 single disks
    PSU
    Corsair HX750
    Case
    Corsair R400
    Cooling
    Corsair H100
    Keyboard
    Logitech G510
    Mouse
    Logitech G5
    Internet Speed
    ~900mbps (~115MB/s) down, ~10mbps(~1.5MB/s) up
    Browser
    Firefox & Chromium
    Antivirus
    Common Sense
if it is wrong then what is the best method for hiding folders safely without any software
 

My Computer

System One

  • OS
    windows 8.1 Enterprise
    Computer type
    Laptop
    System Manufacturer/Model
    HP ELITEBOOK 6930P
    CPU
    Core 2 vpro
    Motherboard
    Mobile intel 4 series express chipset family
    Graphics Card(s)
    Mobile intel 4 series express chipset family
    Antivirus
    Avast
plz reply anyone that what i do for this folder
 

My Computer

System One

  • OS
    windows 8.1 Enterprise
    Computer type
    Laptop
    System Manufacturer/Model
    HP ELITEBOOK 6930P
    CPU
    Core 2 vpro
    Motherboard
    Mobile intel 4 series express chipset family
    Graphics Card(s)
    Mobile intel 4 series express chipset family
    Antivirus
    Avast
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 Computer

System One

  • OS
    Kernel 4.x
    Computer type
    PC/Desktop
    CPU
    i5 3570K
    Motherboard
    P8Z77-V LK
    Memory
    G.skill Ripjaw Z 2133MHz 9-11-10-28
    Graphics Card(s)
    GTX770 4GB Dual BIOS
    Sound Card
    Audigy 4 Pro
    Monitor(s) Displays
    32" SAMSUNG HDTV
    Screen Resolution
    1920x1080 progressive
    Hard Drives
    10TB total
    3 RAID arrays
    3 single disks
    PSU
    Corsair HX750
    Case
    Corsair R400
    Cooling
    Corsair H100
    Keyboard
    Logitech G510
    Mouse
    Logitech G5
    Internet Speed
    ~900mbps (~115MB/s) down, ~10mbps(~1.5MB/s) up
    Browser
    Firefox & Chromium
    Antivirus
    Common Sense
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>[B]takeown /f "foldername"[/B]
SUCCESS: The file (or folder): "C:\Users\Me\Desktop\foldername" now owned by
 user "MY-PC\Me".
C:\Users\Me\Desktop>[B]icacls "foldername" /grant everyone:(F)[/B]
processed file: foldername
Successfully processed 1 files; Failed processing 0 files

N.b. Cacls is now depreciated in favour of the newer Icacls command.


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 Computer

System One

  • OS
    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>[B]takeown /f "foldername"[/B]
SUCCESS: The file (or folder): "C:\Users\Me\Desktop\foldername" now owned by
 user "MY-PC\Me".
C:\Users\Me\Desktop>[B]icacls "foldername" /grant everyone:(F)[/B]
processed file: foldername
Successfully processed 1 files; Failed processing 0 files

N.b. Cacls is now depreciated in favour of the newer Icacls command.


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 Computer

System One

  • OS
    windows 8.1 Enterprise
    Computer type
    Laptop
    System Manufacturer/Model
    HP ELITEBOOK 6930P
    CPU
    Core 2 vpro
    Motherboard
    Mobile intel 4 series express chipset family
    Graphics Card(s)
    Mobile intel 4 series express chipset family
    Antivirus
    Avast
Back
Top