# How to access file that requires credentials?

**URL:** <https://www.ruby-forum.com/t/how-to-access-file-that-requires-credentials/174579>\
**Category:** Ruby\
**Created:** [August 29, 2009, 1:34am UTC](https://www.ruby-forum.com/t/how-to-access-file-that-requires-credentials/174579 "2009-08-29T01:34:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![farmerss](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/dbc845/32.png) [@farmerss](https://www.ruby-forum.com/u/farmerss)\
**Post date:** [August 29, 2009, 1:34am UTC](https://www.ruby-forum.com/t/how-to-access-file-that-requires-credentials/174579/1 "2009-08-29T01:34:37Z")

</div>

Hi,

I’m coding some Ruby in a Windows environment.  
I have some code that accesses some files using the FileUtils library.  
Now that I’m shifting into production, my code will run in a location  
from which I need to specify user/password credentials in order to  
access those files. Anyone know how I can do that?

Thanks!
