Thread: Access other user's documents...

  1. #1
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342

    Question Access other user's documents...

    Is there a way I can access other users documents from my user if I know their password?

  2. #2
    Hurry Slowly vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    6,788
    Run As?
    All problems in computer science can be solved by another level of indirection,
    except for the problem of too many layers of indirection.
    – David J. Wheeler

  3. #3
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    Assuming you mean in code, and you are on XP, you can use LogonUser followed by ImpersonateLoggedOnUser. Remember to call RevertToSelf once you're done. It is recommended that you don't store passwords.

  4. #4
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    that's it, thanks anonytmouse.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C users access .Net dll
    By kselvaakumar in forum C Programming
    Replies: 1
    Last Post: 10-24-2007, 05:47 AM
  2. Function validation.
    By Fhl in forum C Programming
    Replies: 10
    Last Post: 02-22-2006, 08:18 AM
  3. Retrieve users connected to Access database
    By BobS0327 in forum Windows Programming
    Replies: 7
    Last Post: 08-22-2005, 12:29 PM
  4. Windows ntfs perms
    By wp_x in forum Tech Board
    Replies: 3
    Last Post: 03-04-2003, 06:38 AM