Re: Change NTFS Permissions or run shell script

From: Daniel Fisher\(lennybacon\) (info_at_(removethis)lennybacon.com)
Date: 02/04/05


Date: Fri, 4 Feb 2005 19:54:29 +0100

Look at the System.IO namespace and the Directory class.

It's not easy to set the permissions if you do not use .NET 2.0 yet. There
is a Win32 wrapper class around gotDotNet.com you can try.

The namespace System.Diagnostics holds a class called ProcessInfo witch can
be used to run "calcs.exe" for example.

-- 
Daniel Fisher(lennybacon)
 MCP ASP.NET C#
 Blog: http://www.lennybacon.com/
"Shawn H. Mesiatowsky" <smesiatowsky@spam_no_perfectfit-ind.com> wrote in 
message news:%23l0tj7jCFHA.2232@TK2MSFTNGP14.phx.gbl...
>I am trying to Create a web app that creates a directory, and assigns 
>permissions to the directory. Is there a way to do this, or even run a 
>shell comand (like cacls.exe) to alter the NTFS permissions on the 
>directory? Thanks for your help
>
> Shawn H. Mesiatowsky
> 


Relevant Pages

  • Re: Thinking outside the box on file systems
    ... If the /etc/shadow permissions depend on inherited ACLs to enforce access then that one little command just made your shadow file world-readable/writeable. ... I can probably have an open directory handle to a volume in a completely different namespace, a volume which isn't even *MOUNTED* in my current fs namespace. ... Yes, the effective acl of the open directory is kept in memory, but in the directory itself, not the handle to it, thus when the directory is moved, it's acl is recomputed for the new location and updated immediately. ...
    (Linux-Kernel)
  • Re: scanning sysfs to populate /dev
    ... the kernel only deals with devices by their device code. ... > Having a device namespace in the kernel, is a departure from that philosophy. ... > external policy, and now it is migrating to device drivers. ... permissions for any nodes it just creates them with the default permissions ...
    (comp.os.linux.development.system)
  • Re: User rigths for WMI access
    ... >> a namespace additional permissions may be required, ... > Our application performs querys to operating system classes (such as ... > We know a "local administrator" user can perform these queries, ...
    (microsoft.public.windowsxp.wmi)
  • WebDAV - Permissions on message with attachments
    ... What permissions do you need to set on an exchange message item to be ... X-MS-ENUMATTS WebDAV method. ... namespace is typically ...
    (microsoft.public.exchange.applications)
  • Re: User rights analysis
    ... >which and which kinds of resources exist in this forest. ... This "personal" namespace contains all the ... resources the user has permissions to and can be mapped as a drive. ... The personal namespace ...
    (microsoft.public.windows.server.active_directory)