# .script/server on OS X

**URL:** <https://www.ruby-forum.com/t/script-server-on-os-x/70068>\
**Category:** Rails\
**Created:** [September 26, 2006, 5:14pm UTC](https://www.ruby-forum.com/t/script-server-on-os-x/70068 "2006-09-26T17:14:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mike](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/58f4c7/32.png) [@mike](https://www.ruby-forum.com/u/mike)\
**Post date:** [September 26, 2006, 5:14pm UTC](https://www.ruby-forum.com/t/script-server-on-os-x/70068/1 "2006-09-26T17:14:08Z")

</div>

I just got rails installed on OS X, and when I try .script/server I get  
a -bash: ./script/server: Permission denied error.

I installed ruby in /user/local/bin.

If I do ruby ./script/server it works OK.

Has anyone else run into this? I think it might have something to do  
with the shebang, perhaps?

Thanks.

---

<div class="post-metadata">

**Author:** ![mike](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/58f4c7/32.png) [@mike](https://www.ruby-forum.com/u/mike)\
**Post date:** [September 26, 2006, 5:51pm UTC](https://www.ruby-forum.com/t/script-server-on-os-x/70068/2 "2006-09-26T17:51:24Z")

</div>

On 9/26/06, Mike [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> 

$ chmod +x ./script/server

That’s weird though, because I’m pretty sure that it should have  
executable permissions by default. It doesn’t have anything to do  
with Ruby, but rather the rails command doesn’t seem to be setting  
your permissions correctly (or you changed them). When I run ‘rails  
project’ on OS X, all of my scripts are created with permissions of  
755.

– James

---

<div class="post-metadata">

**Author:** ![mike](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/58f4c7/32.png) [@mike](https://www.ruby-forum.com/u/mike)\
**Post date:** [September 26, 2006, 6:00pm UTC](https://www.ruby-forum.com/t/script-server-on-os-x/70068/3 "2006-09-26T18:00:05Z")

</div>

Thanks James! That worked.

Strange.

JDL wrote:

> On 9/26/06, Mike [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > 
> 
> $ chmod +x ./script/server
> 
> That’s weird though, because I’m pretty sure that it should have  
> executable permissions by default. It doesn’t have anything to do  
> with Ruby, but rather the rails command doesn’t seem to be setting  
> your permissions correctly (or you changed them). When I run ‘rails  
> project’ on OS X, all of my scripts are created with permissions of  
> 755.
> 
> – James

---

<div class="post-metadata">

**Author:** ![mike](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/58f4c7/32.png) [@mike](https://www.ruby-forum.com/u/mike)\
**Post date:** [September 26, 2006, 6:55pm UTC](https://www.ruby-forum.com/t/script-server-on-os-x/70068/4 "2006-09-26T18:55:34Z")

</div>

Unless you checked out code that’s been checked in first on a Win box  
perhaps. This has happened to me.

Vish

---

<div class="post-metadata">

**Author:** ![mike](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/58f4c7/32.png) [@mike](https://www.ruby-forum.com/u/mike)\
**Post date:** [September 26, 2006, 7:05pm UTC](https://www.ruby-forum.com/t/script-server-on-os-x/70068/5 "2006-09-26T19:05:36Z")

</div>

> Unless you checked out code that’s been checked in first on a Win box  
> perhaps. This has happened to me.

Same for me.

---

<div class="post-metadata">

**Author:** ![mike](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/58f4c7/32.png) [@mike](https://www.ruby-forum.com/u/mike)\
**Post date:** [September 26, 2006, 7:17pm UTC](https://www.ruby-forum.com/t/script-server-on-os-x/70068/6 "2006-09-26T19:17:40Z")

</div>

I’ve just learned that there is a subversion property called  
svn:executable  
which supposedly will make files checked in from windows executable in  
Unix  
systems. I haven’t tested this yet though. It can be set in Tortoise  
by  
right clicking on the file, going into the SVN menu and chosing  
Properties.  
One of the properties in the drop down is called svn:executable. From  
what  
it says, you just need to have this property on the file for it to work.

Neato, huh?

On 9/26/06, Thibaut BarrÃ¨re [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Unless you checked out code that’s been checked in first on a Win box
> 
> > perhaps. This has happened to me.
> 
> Same for me.
> 
> >

–  
Terry (TAD) Donaghe

> **[太阳集团0638开头的网址✅【欢迎下载】](http://www.rubynoob.com)**
>
> 太阳集团0638开头的网址是一家创办历史悠久并且具有非常高的知名度的在线网娱乐平台为大家提供一个良好的彩票交流平台。

[http://www.tadspot.com](http://www.tadspot.com)
