# \[help\] Ruby execution on XP machine: Access is denied

**URL:** <https://www.ruby-forum.com/t/help-ruby-execution-on-xp-machine-access-is-denied/159671>\
**Category:** Ruby\
**Created:** [February 6, 2009, 10:12pm UTC](https://www.ruby-forum.com/t/help-ruby-execution-on-xp-machine-access-is-denied/159671 "2009-02-06T22:12:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mamoo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/bc79bd/32.png) [@mamoo](https://www.ruby-forum.com/u/mamoo)\
**Post date:** [February 6, 2009, 10:12pm UTC](https://www.ruby-forum.com/t/help-ruby-execution-on-xp-machine-access-is-denied/159671/1 "2009-02-06T22:12:29Z")

</div>

Hello everybody,  
I need some help on a strange error I’m getting when I try to execute  
ruby from command line.  
I recently reinstalled everything on my HP laptop (XP sp3), and I’ve  
also reinstalled ruby (1.8.6 with one-click installer). Since then I’m  
unable to launch ruby from the command line, the message I get is  
always: “Access is denied”.  
I tried to check and change security permissions on ruby installation  
folder but nothing changed. The strange thing is that with NetBeans  
(which is set to use the same ruby interpreter) the execution is fine.

Can anyone help me, please?

---

<div class="post-metadata">

**Author:** ![mamoo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/bc79bd/32.png) [@mamoo](https://www.ruby-forum.com/u/mamoo)\
**Post date:** [February 7, 2009, 3:21pm UTC](https://www.ruby-forum.com/t/help-ruby-execution-on-xp-machine-access-is-denied/159671/2 "2009-02-07T15:21:58Z")

</div>

> unable to launch ruby from the command line, the message I get is  
> always: “Access is denied”.

It does sound like a permissions setting, or it sometimes happens when  
it tries to delete a file that’s in use.  
Try copying the ruby folder around, running it.

---

<div class="post-metadata">

**Author:** ![mamoo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/bc79bd/32.png) [@mamoo](https://www.ruby-forum.com/u/mamoo)\
**Post date:** [February 7, 2009, 10:10pm UTC](https://www.ruby-forum.com/t/help-ruby-execution-on-xp-machine-access-is-denied/159671/3 "2009-02-07T22:10:16Z")

</div>

Roger P. wrote:

> > unable to launch ruby from the command line, the message I get is  
> > always: “Access is denied”.
> 
> It does sound like a permissions setting, or it sometimes happens when  
> it tries to delete a file that’s in use.  
> Try copying the ruby folder around, running it.

Thank you Roger, I checked my firewall software (Comodo) event log and I  
found that the executions were always blocked due to security policies.  
Everything is fine now.

m.
