File.copy as another user

  • Thread starter Thread starter Steve Bostedor
  • Start date Start date
S

Steve Bostedor

Does anyone have an example of how to file.copy as another user? Do I
create a new thread as another user? How is that done?

Thanks!
 
Another user meaning ...

I am logged in as domain\regularuser and I'd like to perform the copy
operation on the behalf of domain\administrator.
 
No, it's not strange at all. I'm writing a program that is to be used by
lower priviledged users but I want it to copy some files to a location that
the user does not have access to. Do you have an answer for me?
 
I just did this thru a windows service not to long ago.
Once you install the service you can go into the logon properties of the
service and choose the option to log on as This Account. I don't know of any
other way.
 
A hacking program? lol Why do people even bother posting to a question
unless they have a solution? It's not a hacking program, it's a Network
Administration program. :) It appears that you just don't understand what
I'm asking, Rulin. Even if it was, you appear to not have any answers, so
it would do all of us great benefit if you just don't post anything. :) If
you think that I'm asking a stupid question, just chuckle to yourself and
move on.

Thank you for those of you that replied with intention of helping. I'm on
the way to figuring it out. If I come to a solution, I'll post it.
 
Steve,
I don't remember if your specific question was addressed, however Keith
Brown's book "The .NET Developer's Guide to Windows Security" from Addison
Wesley contains a plethora of information on security under Win32 &
specifically .NET. Including impersonating & elevating authorities...

You can access the book on-line at:
http://www.pluralsight.com/keith/book/html/book.html

What I thought would be nice is an "Adopt owner authority" such as available
on an AS/400, the "run a program as another user" setting is close...

Hope this helps
Jay

Steve Bostedor said:
A hacking program? lol Why do people even bother posting to a question
unless they have a solution? It's not a hacking program, it's a Network
Administration program. :) It appears that you just don't understand
what
I'm asking, Rulin. Even if it was, you appear to not have any answers, so
it would do all of us great benefit if you just don't post anything. :)
If
you think that I'm asking a stupid question, just chuckle to yourself and
move on.

Thank you for those of you that replied with intention of helping. I'm on
the way to figuring it out. If I come to a solution, I'll post it.
<<snip>>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top