Post Your Computer Questions

Site Index   |  Quick Index   |  New Tips   |  MS Windows   |  MS Office   |   Newsletter   |   Q&A  |   More Tips  |    

Tips Download   |   Donations   |   Customer Support   |   Registry Tips   |   Weekend Windup |   IE 6.0   |   IE 7.0  |   Help   |   Suggestions

 Windows XP Run Commands | Computer Questions. Microsoft Access Databases | Computer Terms | New Home Material Estimating Spread Sheets!

  Windows XP Remote Desktop Setup One! | 57 Vista Run Commands | Windows XP Remote Desktop Setup Two!


Manage Permissions From The Command Line 

Automating your daily tasks through the Windows NT Explorer or File Manager isn't the best solution for managing NTFS permissions.

Command-line utilities are very handy in such situations. Windows NT 4 ships with the Cacls.exe utility, a tool that displays and modifies access control lists (ACLs), which hold the security permissions, from the command prompt.

The syntax of the Cacls.exe utility is very simple. You can get all the options by simply typing cacls at the command prompt. If you include a filename with the command (e.g., cacls myfile), the utility will display ACLs for the specified file. For example, typing cacls c:\winnt will display security permissions for the WINNT folder.

But listing the ACLs is only one of the utility's features. Cacls.exe is even better suited for changing the security permissions from the command line. You can use the utility to replace the security permissions on a given file or folder.

For example, typing cacls c:\myfile.txt /G john:F will grant user John full control over Myfile.txt, and all other previously defined permissions will be deleted.

If you don't want to remove previously defined permissions, add the /E switch. Typing cacls c:\myfile.txt /E /G john:F adds user John to the security permissions of the file, but other permissions are left unchanged.

You can also use Cacls.exe in batch files, but it requires a small trick. If you try to replace all the security permissions for a file without using the /E switch, Cacls.exe will display the Are You Sure? (Y/N) prompt. To completely script this in a batch file, you'll have to run the command as shown below:

Echo y| cacls c:\myfile.txt /G john:F

Note the echo y| in front of the command: Make sure you don't put a space between | and y.

<<<Back Home Next>>>


Hit Counter

Main Site Navigation:

|Windows 7 Questions. |Vista Questions. |Windows XP Home and Pro Questions. |Internet Explorer 8.0 |Internet Explorer 7.0 |Printer Problems. |Outlook Express 6.0 |

|Windows Mail. |Moderator Tips! |Firefox |Home Networking Problems!! | Function Keys, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12 | Windows Live Essentials 2011.


You Can also get all these tips plus more in one Package including 100 Vista Tips!


Page 1

Page 2

Page 3

Page 4

Page 5

Page 6

Page 7

Page 8


See The 11 Tip Package That You Should Print And Keep Close To Your Computer! 

100 Vista Tips!

This One Also Comes With The Standard Tips Package!  2 Downloads!

  My Blog!

Close To 400 More XP Tips.  If you Can't Find The Answer Here just Click Here!
Page 1 Page 2 Page 3 Page 4 Page 5 Page 6 Page 7 Page 8

Newsletter Signup
   |   Search   |   Windows Versions   |   Office Versions   |  
Forum |   Readers Q&A   |   Tips In Full Graphics   |   Tips Download    

 Site Navigation:
   |   Support   |   Registry Tips   |   Weekend Windup   |   PC Questions |   IE 6.0   |   IE 7.0   |   Outlook Express 6.0   |   PC Help
Virus Info
   |   Computer Drivers   |   Hardware Info.   |  
Your Suggestions |   IE 7.0 Install  |   Database Downloads   |   Home  |  Computer Terms  

|   57 Vista Run Commands   |   Windows XP Run Commands  |   Microsoft Access Databases  |

Windows XP Remote Desktop Setup One! |New Home Material Estimating Spread Sheets! Windows XP Remote Desktop Setup Two!

All products mentioned are registered trademarks or trademarks of their respective companies.
Questions or problems regarding this web site should be directed to the
Copyright 1999-2011  Internet Fixes. All rights reserved.      
Legal Disclaimer

This Site Is Part Of The Internet Fixes Network!