atrib can only put your files in archive mode, read-only mode, system mode and hidden mode (or a combination of these)
To set file permissions, you will need NTFS... Peter Van Eeckhoutte
peter.ve@pandora.be
There's a command line utility in NT by which you can display and modify NTFS permissions on files and folders. It's called "CACLS.EXE". It displays or modifies access control lists (ACLs) of files on NTFS partitions.
CACLS filename [/T] [/E] [/C] [/G usererm] [/R user [...]]
[/P usererm [...]] [/D user [...]]
filename Displays ACLs.
/T Changes ACLs of specified files in
the current directory and all subdirectories.
/E Edit ACL instead of replacing it.
/C Continue on access denied errors.
/G usererm Grant specified user access rights.
Perm can be: R Read
C Change (write)
F Full control
/R user Revoke specified user's access rights (only valid with /E).
/P usererm Replace specified user's access rights.
Perm can be: N None
R Read
C Change (write)
F Full control
/D user Deny specified user access.
Wildcards can be used to specify more than one file in a command. You can also specify more than one user in a command.
Nishet, I hope "CACLS.EXE" will let you do what you want.
Your other real option would be something like NDS for NT from Novell. Perhaps overkill, unless you are facing a long term, or widespread problem but its a great product for centralizing and managing files.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.