# Permissions problem when running Ruby

**URL:** <https://www.ruby-forum.com/t/permissions-problem-when-running-ruby/189278>\
**Category:** Ruby\
**Created:** [May 27, 2010, 10:21pm UTC](https://www.ruby-forum.com/t/permissions-problem-when-running-ruby/189278 "2010-05-27T22:21:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hj-lancaster](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/ee7513/32.png) [@hj-lancaster](https://www.ruby-forum.com/u/hj-lancaster)\
**Post date:** [May 27, 2010, 10:21pm UTC](https://www.ruby-forum.com/t/permissions-problem-when-running-ruby/189278/1 "2010-05-27T22:21:24Z")

</div>

I am having a permissions problem which no one else on the developement  
team is having and no one knows how to fix it. I had talked with the IT  
department and they checked a couple of things and said it was not a  
standard Windows NTFS permissions error and they felt that it was an  
application permission issue.

I am new to Ruby, so I do not know much.

I have a dirctory c:\Workspaces\Watir Testing\bin which has the script  
login.rb. I have another directory c:\Workspaces\Watir  
Testing\test\_scripts which has the script CustomerSetup1.rb.

The CustomerSetup1.rb script is the one I need to run to run the test  
and it calls the login.rb script.

When I go to the directory c:\Workspaces\Watir Testing\test\_scripts and  
type “c:\Ruby\bin\ruby -l …\bin CustomerSetup1.rb”, I get the following  
message “c:\Ruby\bin\ruby: Permission denied – …/bin (LoadError)”.

I don’t understand why I don’t have permissions to access a directory on  
my PC.

Does anyone have any ideas on how to fix this issue?

Thanks,

Bev

---

<div class="post-metadata">

**Author:** ![hj-lancaster](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/ee7513/32.png) [@hj-lancaster](https://www.ruby-forum.com/u/hj-lancaster)\
**Post date:** [May 28, 2010, 1:34am UTC](https://www.ruby-forum.com/t/permissions-problem-when-running-ruby/189278/2 "2010-05-28T01:34:06Z")

</div>

On 5/27/10, Bev B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Testing\test\_scripts which has the script CustomerSetup1.rb.  
> This is just a shot in the dark, but could it be because you have a  
> space in your directory names? That can cause problems for all kinds  
> of things on windows. Try taking the space out and see if it makes any  
> difference.

---

<div class="post-metadata">

**Author:** ![hj-lancaster](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/ee7513/32.png) [@hj-lancaster](https://www.ruby-forum.com/u/hj-lancaster)\
**Post date:** [May 28, 2010, 2:25am UTC](https://www.ruby-forum.com/t/permissions-problem-when-running-ruby/189278/3 "2010-05-28T02:25:36Z")

</div>

Bev B. wrote:

> Testing\test\_scripts which has the script CustomerSetup1.rb.
> 
> Does anyone have any ideas on how to fix this issue?
> 
> Thanks,
> 
> Bev

If you are using Vista or newer you might want to turn UAC off to see if  
that fixes the problem. I had problems with UAC not allowing a program  
to make changes to files and finally just turned it off rather than try  
to figure out exactly what it needed.

---

<div class="post-metadata">

**Author:** ![hj-lancaster](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/ee7513/32.png) [@hj-lancaster](https://www.ruby-forum.com/u/hj-lancaster)\
**Post date:** [May 28, 2010, 4:24pm UTC](https://www.ruby-forum.com/t/permissions-problem-when-running-ruby/189278/4 "2010-05-28T16:24:49Z")

</div>

Caleb C. wrote:

> On 5/27/10, Bev B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > Testing\test\_scripts which has the script CustomerSetup1.rb.  
> > This is just a shot in the dark, but could it be because you have a  
> > space in your directory names? That can cause problems for all kinds  
> > of things on windows. Try taking the space out and see if it makes any  
> > difference.

I tried removing the space and that didn’t help.

---

<div class="post-metadata">

**Author:** ![hj-lancaster](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/ee7513/32.png) [@hj-lancaster](https://www.ruby-forum.com/u/hj-lancaster)\
**Post date:** [May 28, 2010, 4:31pm UTC](https://www.ruby-forum.com/t/permissions-problem-when-running-ruby/189278/5 "2010-05-28T16:31:07Z")

</div>

Michael W Ryder wrote:

> Bev B. wrote:
> 
> > Testing\test\_scripts which has the script CustomerSetup1.rb.
> > 
> > Does anyone have any ideas on how to fix this issue?
> > 
> > Thanks,
> > 
> > Bev
> 
> If you are using Vista or newer you might want to turn UAC off to see if  
> that fixes the problem. I had problems with UAC not allowing a program  
> to make changes to files and finally just turned it off rather than try  
> to figure out exactly what it needed.

I am running Windows XP Professional.
