in reply to Is it possible to have a script run under one account and open a file using another?

It's probably easier to make the change in IIS than in your script.

The IUSR_* user is created when IIS is installed (prob with OS). IIS uses this account by default to allow internet access. By default the IUSR password is given few access rights on the server and nothing on remote servers. You can however change the user that IIS uses on a site wide or per folder basis.

Select the properties page for the virtual directory that you are working with. select the 'Directory Security' tab. Click the edit button in the section concerning authentication. A new Dialog called 'Authentication Methods' is shown. The Anonymous access section has another Edit button that allows you to choose the user account that IIS will use. This can be a local or domain password.

You may also want to uncheck the 'Integrated Windows Authentication' checkbox. Inman

  • Comment on Re: Is it possible to have a script run under one account and open a file using another?

Replies are listed 'Best First'.
Re: Re: Is it possible to have a script run under one account and open a file using another?
by rzward (Monk) on Aug 15, 2003 at 14:08 UTC
    Thank you.

    This is exactly what I have decided to recommend to people using my script.

    It's not that difficult to create a new user account that has rights on the domain and then have the script run using that account (using the instructions you outlined).

    In the end, given what I have learned from this thread, I think this is easier than trying to have the script program switch login accounts. The script currently works without modification on all operating systems that support Perl 5.

    Richard