Discussion Locked

taking ownership of files from the comma

0 helpful
8 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Does anyone know of a method of taking ownership of a large number of files from a command prompt. The GUI interface for this prompts for every sub folder and can be tedious if you need to take ownership to change permissions for a large folder tree.

8 replies

by beermonster

Hi,
I've done no testing with this, so I could be sending you down a dead end, but it might be worth checking out Takeown.exe from the win2k reskit. Hope it helps..

by mochillds

Partly right, PERM.EXE was actually written for a specific Win2K usae and doesn't recurse folders which is what I need to happen. Thanks all the same. Currently I'm looking at the Win2k version of XCACLS tho' this doesn't look any better. The file system is actually NT4 not Win2k

by gigelul

Hi,
Try to use perm.exe from resource kit:

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

[domain\|computer\]username Name of user whose permissions are to 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 of the file or directory.
? The user's access permisssions can not be determined.

by mochillds

Sorry but PERMS only displays the permissions that a user has to a folder or file. It isn't for modifiying the permissions

This discussion is closed to new replies.