# Permissions problem when running Ruby

**URL:** <https://rubytalk.org/t/permissions-problem-when-running-ruby/58681>\
**Category:** ruby-talk\
**Created:** [27 May 2010 20:21 UTC](https://rubytalk.org/t/permissions-problem-when-running-ruby/58681 "2010-05-27T20:21:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bev\_Bev](https://avatars.discourse-cdn.com/v4/letter/b/d9b06d/32.png) [@Bev\_Bev](https://rubytalk.org/u/Bev_Bev)\
**Post date:** [27 May 2010 20:21 UTC](https://rubytalk.org/t/permissions-problem-when-running-ruby/58681/1 "2010-05-27T20:21:27Z")

</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

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![Caleb\_Clausen1](https://avatars.discourse-cdn.com/v4/letter/c/8dc957/32.png) [@Caleb\_Clausen1](https://rubytalk.org/u/Caleb_Clausen1)\
**Post date:** [27 May 2010 23:33 UTC](https://rubytalk.org/t/permissions-problem-when-running-ruby/58681/2 "2010-05-27T23:33:16Z")

</div>

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.

> **···**
>
> On 5/27/10, Bev Bev \<beverley.hinkle@highjump.com\> wrote:
> 
> > 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.

---

<div class="post-metadata">

**Author:** ![Michael\_W\_Ryder2](https://avatars.discourse-cdn.com/v4/letter/m/e99b99/32.png) [@Michael\_W\_Ryder2](https://rubytalk.org/u/Michael_W_Ryder2)\
**Post date:** [28 May 2010 00:25 UTC](https://rubytalk.org/t/permissions-problem-when-running-ruby/58681/3 "2010-05-28T00:25:11Z")

</div>

Bev Bev wrote:

> 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

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:** ![Bev\_Bev](https://avatars.discourse-cdn.com/v4/letter/b/d9b06d/32.png) [@Bev\_Bev](https://rubytalk.org/u/Bev_Bev)\
**Post date:** [28 May 2010 14:24 UTC](https://rubytalk.org/t/permissions-problem-when-running-ruby/58681/4 "2010-05-28T14:24:51Z")

</div>

Caleb Clausen wrote:

> **···**
>
> > On 5/27/10, Bev Bev \<beverley.hinkle@highjump.com\> 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.  
> --  
> Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).

---

<div class="post-metadata">

**Author:** ![Bev\_Bev](https://avatars.discourse-cdn.com/v4/letter/b/d9b06d/32.png) [@Bev\_Bev](https://rubytalk.org/u/Bev_Bev)\
**Post date:** [28 May 2010 14:31 UTC](https://rubytalk.org/t/permissions-problem-when-running-ruby/58681/5 "2010-05-28T14:31:13Z")

</div>

Michael W Ryder wrote:

> Bev Bev 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.

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).
