Re: Copying files to a remote authenticated share

2005-09-14 Thread David Landgren

Jan Dubois wrote:

On Tue, 13 Sep 2005, David Landgren wrote:


I don't do much Windows system administration. If you could point me
in the right direction to give the user permission to access the
network I'd be much obliged. Should I be using secpol.msc or
something else?



Right-click on "My Computer" and select "Manage". Expand "Local Users
and Groups" and select "Users".

This should give you a start.  But frankly I'm not sure if you should
start granting additional access rights to IIS processes if you don't
have a good understanding of Windows administration.  You can easily
create big security risks.


I understand the risks. This is an internal machine with no exposure to 
the World At Large and even internally it is behind a firewall. I just 
want an interface for the end-user to kick of a process that in part 
results in files being copied to another box.



There are reasons why the IUSR_* account doesn't have network access.
Ideally you should delegate the functionality that needs this to a
locally running service and pass any requests on to that service. I


Mmm yes, that sounds reasonable. After having searched a bit it looks 
like Win32::Daemon is the way to go.



understand that this is a lot more work, and that you can shortcut this
by granting more rights to the IUSR_* user. But remember that *every*
CGI script will now have these right, and a security vulnerability in
any of them will now put your network at risk.


Yes. I shall use this as an opportunity to learn something new.

Thanks,
David

___
Perl-Win32-Web mailing list
Perl-Win32-Web@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


RE: Copying files to a remote authenticated share

2005-09-13 Thread Jan Dubois
On Tue, 13 Sep 2005, David Landgren wrote:
> I don't do much Windows system administration. If you could point me
> in the right direction to give the user permission to access the
> network I'd be much obliged. Should I be using secpol.msc or
> something else?

Right-click on "My Computer" and select "Manage". Expand "Local Users
and Groups" and select "Users".

This should give you a start.  But frankly I'm not sure if you should
start granting additional access rights to IIS processes if you don't
have a good understanding of Windows administration.  You can easily
create big security risks.

There are reasons why the IUSR_* account doesn't have network access.
Ideally you should delegate the functionality that needs this to a
locally running service and pass any requests on to that service. I
understand that this is a lot more work, and that you can shortcut this
by granting more rights to the IUSR_* user. But remember that *every*
CGI script will now have these right, and a security vulnerability in
any of them will now put your network at risk.

Cheers,
-Jan


___
Perl-Win32-Web mailing list
Perl-Win32-Web@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


RE: Copying files to a remote authenticated share

2005-09-13 Thread Jan Dubois
On Tue, 13 Sep 2005, David Landgren wrote:
> I have a module that encapsulates the mapping of a drive letter to a
> remote share and copying a local file to the remote share. It works
> just fine when used from the command line, however, when run from a
> CGI within IIS it complains (probably quite rightly) about a specfied
> session not existing.

Did you give the IIS user permission to access the network? The default
user IUSR_machinename only has permission to access local resources for
security reasons.

Cheers,
-Jan


___
Perl-Win32-Web mailing list
Perl-Win32-Web@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


Re: Copying files to a remote authenticated share

2005-09-13 Thread David Landgren

Jan Dubois wrote:

On Tue, 13 Sep 2005, David Landgren wrote:


I have a module that encapsulates the mapping of a drive letter to a
remote share and copying a local file to the remote share. It works
just fine when used from the command line, however, when run from a
CGI within IIS it complains (probably quite rightly) about a specfied
session not existing.



Did you give the IIS user permission to access the network? The default
user IUSR_machinename only has permission to access local resources for
security reasons.


Hmm, I guess not. I'm currently playing around with secpol.msc and 
applying different privileges in turn to the account, but not making 
much progress.


Specifically, the code is dying with Windows error code 1312. The text 
is completely unhelpful, but I found a web page that mentioned that this 
can be due to the local account not having sufficient privileges to open 
a network connection. And that sounds exactly like my problem.


  http://techsupt.winbatch.com/TS/T01036F39.html

I don't do much Windows system administration. If you could point me in 
the right direction to give the user permission to access the network 
I'd be much obliged. Should I be using secpol.msc or something else?


Thanks,
David

___
Perl-Win32-Web mailing list
Perl-Win32-Web@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs