AccessChk, is a free downloadable Windows (XP, VIsta, 2000 and Server 2003 supported) command line utility. Part of Microsoft's Sysinternals Suite, it's one of several troubleshooting solutions, which target specific security challenges.
Using AccessChk is simple, and Microsoft provides use case examples as part of it's online documentation. However, its ability to communicate issues if something doesn't work right is very limited. So it's important to adhere strictly to the command line syntax.
The command's syntax is very simple,
accesschk [modifiers] [user/group] [process/service/file/folder]
Entering accesschk with no parameters results in a help listing as shown in Figure 1. As long as you follow the syntax provided, you can quickly check access levels for inviduals users or groups. The following are some examples.
- Check for write access, for a specific user, to Windows system files (Figure 2): accesschk -w tolzak c:\windows\system32
- Check for write access, for a specific user, to all Windows services (Figure 3): accesschk -cw tolzak *
- Check for write access, for members of the USERS group, to all Windows services (Figure 4): accesschk -cw users *
- Check for write access, for members of the USERS group, to Windows system files (Figure 5): accesschk -w users c:\windows\system32
- Check for write access, for a specific user, to all running processes (Figure 6): accesschk -pw tolzak *