Sign in with
Sign up | Sign in
Your question

Assigning Permissions through scripts

Last response: in Windows 2000/NT
Share
Anonymous
July 9, 2004 5:12:55 AM

Archived from groups: microsoft.public.win2000.security (More info?)

Hi,

A folder to be created and assign permission to that
folder by using scripts. To be more ealaborate I have to
create a folder for every NT login Account and assign
permission to that folder only to that login Id. Just like
a Home Folder by using scripts.

Awaiting for ur help.

NTNR
Anonymous
July 9, 2004 1:37:29 PM

Archived from groups: microsoft.public.win2000.security (More info?)

Nagesh wrote:
> Hi,
>
> A folder to be created and assign permission to that
> folder by using scripts. To be more ealaborate I have to
> create a folder for every NT login Account and assign
> permission to that folder only to that login Id. Just like
> a Home Folder by using scripts.
>

CACLS.exe is a command-line program for setting file and folder permissions,
which can be addressed from a script.
Anonymous
July 9, 2004 1:37:30 PM

Archived from groups: microsoft.public.win2000.security (More info?)

hi,

cacls.exe will work only for files but not for folders
>-----Original Message-----
>Nagesh wrote:
>> Hi,
>>
>> A folder to be created and assign permission to that
>> folder by using scripts. To be more ealaborate I have to
>> create a folder for every NT login Account and assign
>> permission to that folder only to that login Id. Just
like
>> a Home Folder by using scripts.
>>
>
>CACLS.exe is a command-line program for setting file and
folder permissions,
>which can be addressed from a script.
>
>
>.
>
Anonymous
July 10, 2004 2:49:29 AM

Archived from groups: microsoft.public.win2000.security (More info?)

That is completely incorrect.

[Fri 07/09/2004 22:48:39.02]
F:\DEV\VSCPP\ExchStoreEnum\ExchStoreEnum>cacls release /E /G "joe\domain users:F"
processed dir: F:\DEV\VSCPP\ExchStoreEnum\ExchStoreEnum\Release

[Fri 07/09/2004 22:48:56.12]
F:\DEV\VSCPP\ExchStoreEnum\ExchStoreEnum>cacls release
F:\DEV\VSCPP\ExchStoreEnum\ExchStoreEnum\Release BUILTIN\Administrators:( OI)(CI)F
NT AUTHORITY\SYSTEM:( OI)(CI)F
FASTMOFO\$jricha34:F
CREATOR OWNER:( OI)(CI)(IO)F
BUILTIN\Users:( OI)(CI)R
BUILTIN\Users:( CI)(special
access:) 
FILE_APPEND_DATA

BUILTIN\Users:( CI)(special
access:) 
FILE_WRITE_DATA

JOE\domain users:( OI)(CI)F


[Fri 07/09/2004 22:49:09.49]
F:\DEV\VSCPP\ExchStoreEnum\ExchStoreEnum>



--
Joe Richards Microsoft MVP Windows Server Directory Services
www.joeware.net



anonymous@discussions.microsoft.com wrote:
> hi,
>
> cacls.exe will work only for files but not for folders
>
>>-----Original Message-----
>>Nagesh wrote:
>>
>>>Hi,
>>>
>>>A folder to be created and assign permission to that
>>>folder by using scripts. To be more ealaborate I have to
>>>create a folder for every NT login Account and assign
>>>permission to that folder only to that login Id. Just
>
> like
>
>>>a Home Folder by using scripts.
>>>
>>
>>CACLS.exe is a command-line program for setting file and
>
> folder permissions,
>
>>which can be addressed from a script.
>>
>>
>>.
>>
!