Márcio,

You should be able to change your directory's setgid flag, and your umask to
make sure that your files are readable correctly when they are written… but
that's a topic for your ISP's support, as setting gid on a directory has
some strange consequences sometimes, and is possibly blocked by suexec, as
for your umask, you can try setting that in a dotfile in your home
directory, and/or asking your ISP to set it for you, if that dotfile doesn't
work out. In order for Capsitrano to honor (or read at all) your dotfiles,
you'll need to be running it in pty mode.

- Lee

On 28 March 2011 17:28, Donovan Bray <[email protected]> wrote:

> The ISP could be blocking access to chmod; ssh and try to execute the same
> command; then try just the mkdir command; follow up with the chmod
>
> On Mar 28, 2011, at 6:46 AM, MEM <[email protected]> wrote:
>
> > Hello all.
> >
> > On my shared host I've created a subdomain that points to a given
> > directory (also created by cpanel) in /home/user/www/dev/)
> >
> > However, when I try to deploy:
> > cap deploy:setup
> >
> >
> > I get:
> >
> > * executing `deploy:setup'
> >  * executing "mkdir -p /home/mysite/www/dev /home/mysite/www/dev/
> > releases /home/mysite/www/dev/shared &&  chmod g+w /home/mysite/www/
> > dev /home/mysite/www/dev/releases /home/mysite/www/dev/shared"
> >    servers: ["dev.mysite.com"]
> >    [dev.mysite.com] executing command
> > *** [err :: dev.mysite.com] chmod: changing permissions of `/home/
> > mysite/www/dev': Operation not permitted
> >    command finished in 255ms
> > failed: "sh -c 'mkdir -p /home/mysite/www/dev /home/mysite/www/dev/
> > releases /home/mysite/www/dev/shared &&  chmod g+w /home/mysite/www/
> > dev /home/mysite/www/dev/releases /home/mysite/www/dev/shared'" on
> > dev.mysite.com
> >
> >
> > The shared host is using suexec, I'm not sure if this could be of some
> > use, but I'm really stuck and unable to do anything due to those
> > permission issues. Since I can force them to give me permissions, is
> > there any work around for help me out with my first Capistrano
> > deploy ?
> >
> >
> > Thanks a lot in advance,
> > Márcio
> >
> > --
> > * You received this message because you are subscribed to the Google
> Groups "Capistrano" group.
> > * To post to this group, send email to [email protected]
> > * To unsubscribe from this group, send email to
> [email protected] 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 [email protected]
> * To unsubscribe from this group, send email to
> [email protected] 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 [email protected]
* To unsubscribe from this group, send email to 
[email protected] For more options, visit this group at 
http://groups.google.com/group/capistrano?hl=en

Reply via email to