Center for Computer Education

Folder Permission by Command Line

CACLS Command to restrict any Folder .

You can control your folder permission by using CACLS Command.
To restrict any folder from other user type command 
Syntax:-     cacls  foldername /t  /c /p username:f
Example:-  cacls c:\amit /t /c /p everyone:n
Example:-  cacls c:\amit /t /c /p everyone:f

----------------------------------------------------------------------------------------------------------------
 
Where P=Permission

To get rid of restricted permission 
Syntax cacls foldername  /t /c /g /g username:f
Example :- cacls c:\amit /t /c /p everyone:f
Where G = Grant



Share:

Recent Posts