Create folder with only read permission



Hi,
I discover this developing my project.

Developer Machine
SO: Windows Server 2003
Name: ServerDev
Domain: aedes (Active directory 2003)

File System Machine
SO: Windows Server 2003
Name: ServerFS
Domain: aedes (Active directory 2003)


On File System Machine
Create a folder c:\test
Share this folder and assign everyone full control in share permission tab
On security tab remove all users from and assing to Everyone only read
permission.
So nobody can create file or subfolder in c:\test


On SeerverDev
Create a aspx 2.0 project with this identity on web.config
<identity impersonate="true" user="aedes\user1" password="Password.1" />

Create aspx page with this code:

System.Security.Principal.IIdentity WinId =
HttpContext.Current.User.Identity;
System.Security.Principal.WindowsIdentity wi =
(System.Security.Principal.WindowsIdentity)WinId;
System.Security.Principal.WindowsImpersonationContext wic =
wi.Impersonate();
try
{
string path = TextBox1.Text;
string newfolderName = TextBox2.Text;

Directory.CreateDirectory(Path.Combine(path,newfolderName));

}
catch (Exception ex)
{
throw (ex);
}
finally
{
wic.Undo();
}

Aedes\User1 is local administrators group of ServerDev
Aedes\User1 is local administrators group of ServerFS

Running this code it is possible create subfolder in \\ServerFS\Test
Although c:\Test has only read permission for everyone


Regards
Giovanni

.



Relevant Pages

  • RE: 3 MUD Migration Strategy thoughts please
    ... Active Directory Operations Overview ... Once you have decided to implement an in-place upgrade process will go like ... you can install Exchange server and transfer mailbox etc. ... Why Upgrade from Windows NT 4.0 to Windows Server 2003 ...
    (microsoft.public.windows.server.migration)
  • Re: Why do i need to know AD ?
    ... DNS Support for Active Directory Technical Reference ... Is the directory service included in the Windows Server 2000/2003 family. ... controller to interact with domain controllers in the domain running Windows ... used to configure replication between sites. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Forest Setup Question
    ... Deployment Kit, which you can purchase in hard copy form at Amazon (or ... Designing the Active Directory Logical Structure ... Enabling Advanced Windows Server 2003 Active Directory Features ... Deploying the Windows Server 2003 Forest Root Domain ...
    (microsoft.public.windows.server.general)
  • Re: Forest Setup Question
    ... Deployment Kit, which you can purchase in hard copy form at Amazon (or ... Designing the Active Directory Logical Structure ... Enabling Advanced Windows Server 2003 Active Directory Features ... Deploying the Windows Server 2003 Forest Root Domain ...
    (microsoft.public.exchange.misc)
  • Exchange 5.5 to Exchange 2003
    ... I will migrate all to a new Active Directory Domain using the following steps: ... 2.Promote the BDC to the PDC, which demotes the PDC to a BDC. ... 4.Upgrade the new PDC to Windows Server 2003. ...
    (microsoft.public.exchange.setup)