#1
  1. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2003
    Location
    SA, Centurion
    Posts
    355
    Rep Power
    12

    How to access a mapped network drive


    Hi,

    How do I access a mapped network drive ?
    I need to copy files over to a mapped network drive ?

    The drive letter is K:
    Remote name is: \\server\USER_BACKUP$\IT\USER

    ??

    regards
    Dieter
    :P
  2. #2
  3. Did you steal it?
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    13,965
    Rep Power
    9397
    It works like a normal drive. Only thing that might matter is permissions - IIS and IUSR and whatnot.
  4. #3
  5. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2003
    Location
    SA, Centurion
    Posts
    355
    Rep Power
    12
    Originally Posted by requinix
    It works like a normal drive. Only thing that might matter is permissions - IIS and IUSR and whatnot.
    Any suggestions on how to give IIS and IUSR permission to access the mapped drive ?
    :P
  6. #4
  7. Did you steal it?
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    13,965
    Rep Power
    9397
    Actually I think it's better to change the user PHP is running as to a user account that has access to the share and its files. The setting is probably located somewhere under IIS's application pool settings for whatever site. Change it from IIS to a new user account - something you can use to identify the "site" that needs access - then update the share and/or its files (depending) to allow the account access: right-click the thing, Properties, Security, and from there it varies but should be fairly straightforward.
  8. #5
  9. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2003
    Location
    SA, Centurion
    Posts
    355
    Rep Power
    12
    Originally Posted by requinix
    Actually I think it's better to change the user PHP is running as to a user account that has access to the share and its files. The setting is probably located somewhere under IIS's application pool settings for whatever site. Change it from IIS to a new user account - something you can use to identify the "site" that needs access - then update the share and/or its files (depending) to allow the account access: right-click the thing, Properties, Security, and from there it varies but should be fairly straightforward.
    thanks, how do I first check as to what user php is running under ?
    :P
  10. #6
  11. Did you steal it?
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    13,965
    Rep Power
    9397
    Probably IUSR for IIS 7 or IUSR_machine for IIS 6.

    Look in the same place you would go to change it: the application pool settings.
  12. #7
  13. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2003
    Location
    SA, Centurion
    Posts
    355
    Rep Power
    12
    Originally Posted by requinix
    Probably IUSR for IIS 7 or IUSR_machine for IIS 6.

    Look in the same place you would go to change it: the application pool settings.
    Thanks, got it working. Added IUSR_Machine and gave it permissions to the mapped drive.
    :P

IMN logo majestic logo threadwatch logo seochat tools logo