Question Locked

Listing user permissions for specific folder/file

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi,

I have been assign a task to remove read/write access from number of specific folders, for this one user.
He has completed his temporary assignment and his boss wants to take his (folder/files) access away. Too bad he does't know which groups he was added to? So, all this work is pinned down on me to find out which groups he should be removed from and which groups he should stay with.

I am looking for a way/tool that can quickly list all the folders/files a specific user has access to including the permissions for each.
This way I can present this report to his boss and leave it to him to make the decission.

Thanks

WL

6 replies

by Former member

http://cwashington.netreach.net/depo/view.asp?Index=1083&ScriptType=jscript

Is a script that will list permissions fo rthe logged in user for a specific file or folder. You would need to wrap this in a function to traverse the folder structure and call this function for each folder/file in question. It isn't much, but it might help you get started on a solution, if someone more script saavy than me doens't come along and give you an easy answer.

by wplecko

I am looking for a ready app that can quickly list all the folders/files access/permissions on a selected server for a specific user.

Much appreciated.....

by jmperez_uplb96

The Perms command (perms.exe) from the Windows resource kit should help you.
Here's the usage description:

D:\Program Files\RKit>perms /?

Displays a user's permissions to specified files and directories.

PERMS [domain\|computer\]username path [/i] [/s]

[domain\|computer\]username Name of user whose permissions are to be checked.
path A file or directory, wildcards (*,?) accepted.
/i Assumes the specified user is logged on interactively
to computer where the file/directory resides.
With this switch, PERMS assumes the user is a member
of the INTERACTIVE group. Without this switch, PERMS
assumes the user is a member of the NETWORK group.
/s Check permissions on files in subdirectories.

The output access mask contains the following letters:

R Read
W Write
X Execute
D Delete
P Change Permissions
O Take Ownership
A General All
- No Access
* The specified user is the owner of the file or directory.
# A group the user is a member of owns the file or directory.
? The user's access permisssions can not be determined.

If you want to save the output to the file, just use the redirect command.

For example, save the output into a text file named listing.txt, type:

perms Administrator c:\ /s > Listing.txt

Hope this helps.

This discussion is closed to new replies.