Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I would like to know, how do i crea 1

Status
Not open for further replies.

nishet

Programmer
Mar 28, 2001
4
GB
I would like to know, how do i create security/permissions for files and folders created in Dos. ie. in unix it is chmod, what is the command in dos.

cheers
 
I may be wrong, but I don't believe there is a way to control NTFS permissions from the command prompt. - Bill

"You can get anything you want out of life, if you'll just help enough other people get what they want" - Zig Ziglar
 
I believe that the attrib cmd will be of some help, type help attrib @ cmd prompt
 
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

 
Hold on gentlemen!

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 user:perm] [/R user [...]]
[/P user:perm [...]] [/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 user:perm 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 user:perm 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.

Mubashir


 
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.


Bo
 
Use the CACL or XCACL commands to control permissions via the command line... available in the Resource Kit... downloadable from Microsoft as well...

Lisa
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top