RE: Files in Systems Directory WINNT
From: Jeff Qiu (jefffqiu@online.microsoft.com)
Date: 01/06/03
- Next message: Umer Bin Saeed: "what is windows terimal services"
- Previous message: Paul Swanson: "Re: Logon Time Limits"
- In reply to: Shane Ely: "Files in Systems Directory WINNT"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: jefffqiu@online.microsoft.com (Jeff Qiu) Date: Mon, 06 Jan 2003 06:18:30 GMT
Hi Shane,
When we create a file on a NTFS partition, the rights will be by default
inherited from the parent folder.
If you need to specify the special rights for it, you may first set it to
"None" and then grant the appropriate rights.
Here is an example (C: is NTFS):
//test.bat
dir d:\*.* /s > c:\dlist.txt
copy c:\dlist.txt c:\dlist1.txt
;First Replace the rights for Everyone with None
cacls c:\dlist1.txt /R everyone:N
;Edit and Grant the rights as Read to Everyone
cacls c:\dlist1.txt /E /G everyone:R
//End
You may compare the file attributes between the C:\dlist.txt and
C:\dlist1.txt.
For more information about the cacls, please refer to the Windows Online
Help.
Regards,
Jeff Qiu
jefffqiu@online.microsoft.com
Online Support Professional
Microsoft Corporation
This posting is provided Ħ°AS ISĦħ with no warranties, and confers no
rights.
--------------------
>Content-Class: urn:content-classes:message
>From: "Shane Ely" <sely@orlandusd.net>
>Sender: "Shane Ely" <sely@orlandusd.net>
>Subject: Files in Systems Directory WINNT
>Date: Sat, 4 Jan 2003 13:14:11 -0800
>microsoft.public.win2000.security
>
>Hi.. I have a application program that puts five files in
>the WINNT Directory on every Windows 2000 Workstation. I
>use a batch file to rewrite the permissions that each user
>needs to those files. I have disabled GP except for the
>default GP. Next thing I know is the five files
>permissions are wiped out. Help? Thanks
>
- Next message: Umer Bin Saeed: "what is windows terimal services"
- Previous message: Paul Swanson: "Re: Logon Time Limits"
- In reply to: Shane Ely: "Files in Systems Directory WINNT"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|