What rights do I have to add if I want to write to and create files in a
directory, if I acces it through an IP adress
I already added the "ASPNET Machine Account" and the "Guest user for
Internet Connections"(IUSR) They both have full read/write acces to that
particular dir
What am I forgetting ?The most important thing you can do is *identify*
the correct account to give read/write rights to.
Save the following as identity.aspx, and run it.
--------------
<%@. Page Language="VB" %>
<%@. Import NameSpace = System.Security.Principal %>
<script runat="server">
Sub Page_Load()
Dim tmp As String = WindowsIdentity.GetCurrent.Name()
Label1.Text = tmp
End Sub
</script>
<html>
<head>
<title>WindowsIdentity.GetCurrent.Name()</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Label ID="Label1" Runat="server" Text="Label"></asp:Label>
</div>
</form>
</body>
</html>
-----------
Whether you access it through an IP address, a domain name or a machinename,
running that script will tell you *exactly* which account needs the permissions.
Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
"benoit" <benoit@.discussions.microsoft.com> wrote in message
news:4BAC95E5-4D9A-4D64-9447-9F5FAFBF304C@.microsoft.com...
> Hi,
> What rights do I have to add if I want to write to and create files in a
> directory, if I acces it through an IP adress
> I already added the "ASPNET Machine Account" and the "Guest user for
> Internet Connections"(IUSR) They both have full read/write acces to that
> particular dir
> What am I forgetting ?
0 comments:
Post a Comment