Your umask is telling you what I said :)

 0777
-0007
---------
 0770   <- Default permissions on files

Usually* permissions should be 755 for directories and 644 for files.

To apply chmod recursively you need to use "chmod -R <mode> <files>", but I
recommend you check your umask. Change chmod sounds a little bit hacky to
me.


** It isn't a law, some systems may have other permission bits.*

2011/3/11 Sylario <syla...@gmail.com>

> It says 0007.
>
> I tryed to add a chmod 755 * task in my deploy.rb but it seems to be
> of no effect.
>
> On 11 mar, 13:23, Rafa García <conta...@rafagarcia.net> wrote:
> > Could you execute umask command to be sure?
> >
> > Else you can create a task that fixes the permissions and call it with an
> > after callback.
> >
> > 2011/3/10 Sylario <syla...@gmail.com>
> >
> >
> >
> >
> >
> >
> >
> > > It does not seems to be related with umask, with all the user i tested
> > > created files have different permissions. And the file are not
> > > created, they are copied.
> >
> > > On 10 mar, 11:43, Rafa García <conta...@rafagarcia.net> wrote:
> > > > I suposse you have configured your system to create files with 770
> > > > permission. You can change the default permission (Hint: search for
> > > umask)
> > > > or you can create a after callback that change the permissions.
> >
> > > > Regards
> >
> > > > 2011/3/9 Sylario <syla...@gmail.com>
> >
> > > > > I am using Capistrano v2.5.19.
> > > > > ruby 1.9.2p180 (2011-02-18 revision 30909) [i686-linux]
> >
> > > > > My deploy.rb is fairly short and do nothing with files permissions.
> >
> > > > > Instead of my permission (755) he sets 770 to all the releases
> folder
> > > > > (including the one linked in current). How can i tel him to keep
> the
> > > > > permissions of the GIT repo (including the date named root folder)?
> >
> > > > > --
> > > > > * You received this message because you are subscribed to the
> Google
> > > Groups
> > > > > "Capistrano" group.
> > > > > * To post to this group, send email to capistrano@googlegroups.com
> > > > > * To unsubscribe from this group, send email to
> > > > > capistrano+unsubscr...@googlegroups.com For more options, visit
> this
> > > group
> > > > > athttp://groups.google.com/group/capistrano?hl=en
> >
> > > --
> > > * You received this message because you are subscribed to the Google
> Groups
> > > "Capistrano" group.
> > > * To post to this group, send email to capistrano@googlegroups.com
> > > * To unsubscribe from this group, send email to
> > > capistrano+unsubscr...@googlegroups.com For more options, visit this
> group
> > > athttp://groups.google.com/group/capistrano?hl=en
>
> --
> * You received this message because you are subscribed to the Google Groups
> "Capistrano" group.
> * To post to this group, send email to capistrano@googlegroups.com
> * To unsubscribe from this group, send email to
> capistrano+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/capistrano?hl=en
>

-- 
* You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
* To post to this group, send email to capistrano@googlegroups.com
* To unsubscribe from this group, send email to 
capistrano+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/capistrano?hl=en

Reply via email to