Sometimes you need to access a file or directory on a shared drive and you need 2 access that with another user. Here you have an article how to impersonate another user and
Implement impersonation in an ASP.NET application
How To: Use Impersonation and Delegation in ASP.NET 2.0
-Wesley