Re: Sshd, FtpServer and Vysper : missing g+w on /www/mina.apache.org

2010-02-24 Thread Dave Roberts
On 23/02/2010 21:09, Julien Vermillard wrote:
> I think the problem is due to cron not running the .profile before
> running the rsync

Correct, cron is different from the user environment.  It may call
the system profile (/etc/profile) depending on OS, but the best
option is to set the umask within the scripts that cron is calling.
 Along with any other environment, e.g. PATH, that might be required.


Re: Sshd, FtpServer and Vysper : missing g+w on /www/mina.apache.org

2010-02-23 Thread Julien Vermillard
Le Tue, 23 Feb 2010 21:05:50 +0100,
Niklas Gustavsson  a écrit :

> On Tue, Feb 23, 2010 at 6:44 PM, Emmanuel Lécharny
>  wrote:
> > We should create real scrips in /www/mina.apache.org, and use them
> > in crontab.
> 
> We're using the documented solution for doing this:
> http://cwiki.apache.org/CWIKI/#Index-Canweusetheautoexportsiteaspartofourmainwebsite%253F
> 
> In the "Can we use the autoexport site as part of our main web site?"
> section.
> 
> > We also have to add this line in the script :
> > /bin/chmod -R g+w /www/mina.apache.org/
> 
> I can surely add this to the script, but I'm wondering if the problem
> might not be with some setting on the parent directory making the
> access rights not correctly set. But, then again, all this umask stuff
> is magic to me :-)
> 
> /niklas
I think the problem is due to cron not running the .profile before
running the rsync

-- 
Julien Vermillard

Archean Technologies
http://www.archean.fr


signature.asc
Description: PGP signature


Re: Sshd, FtpServer and Vysper : missing g+w on /www/mina.apache.org

2010-02-23 Thread Niklas Gustavsson
On Tue, Feb 23, 2010 at 6:44 PM, Emmanuel Lécharny  wrote:
> We should create real scrips in /www/mina.apache.org, and use them in
> crontab.

We're using the documented solution for doing this:
http://cwiki.apache.org/CWIKI/#Index-Canweusetheautoexportsiteaspartofourmainwebsite%253F

In the "Can we use the autoexport site as part of our main web site?" section.

> We also have to add this line in the script :
> /bin/chmod -R g+w /www/mina.apache.org/

I can surely add this to the script, but I'm wondering if the problem
might not be with some setting on the parent directory making the
access rights not correctly set. But, then again, all this umask stuff
is magic to me :-)

/niklas


Re: Sshd, FtpServer and Vysper : missing g+w on /www/mina.apache.org

2010-02-23 Thread Emmanuel Lécharny

On 2/23/10 6:06 PM, Niklas Gustavsson wrote:

On Tue, Feb 23, 2010 at 5:52 PM, Emmanuel Lécharny  wrote:
   

I *think* there might be a problem with the script that does a rsync from
the server where the wiki is exported. To be checked...
 

The scripts run in my crontab and looks like:
0 * * * * (/usr/local/bin/rsync -r /www/confluence-exports/FTPSERVER/
/www/mina.apache.org/ftpserver/)

0 * * * * (/usr/local/bin/rsync -r /www/confluence-exports/VYSPER/
/www/mina.apache.org/vysper/)

/niklas

   
We should create real scrips in /www/mina.apache.org, and use them in 
crontab.


We also have to add this line in the script :
/bin/chmod -R g+w /www/mina.apache.org/

Maybe someone from infra can find a better solution.




--
Regards,
Cordialement,
Emmanuel Lécharny
www.nextury.com




Re: Sshd, FtpServer and Vysper : missing g+w on /www/mina.apache.org

2010-02-23 Thread Niklas Gustavsson
On Tue, Feb 23, 2010 at 5:52 PM, Emmanuel Lécharny  wrote:
> I *think* there might be a problem with the script that does a rsync from
> the server where the wiki is exported. To be checked...

The scripts run in my crontab and looks like:
0 * * * * (/usr/local/bin/rsync -r /www/confluence-exports/FTPSERVER/
/www/mina.apache.org/ftpserver/)

0 * * * * (/usr/local/bin/rsync -r /www/confluence-exports/VYSPER/
/www/mina.apache.org/vysper/)

/niklas


Re: Sshd, FtpServer and Vysper : missing g+w on /www/mina.apache.org

2010-02-23 Thread Emmanuel Lécharny

On 2/23/10 5:31 PM, Niklas Gustavsson wrote:

On Tue, Feb 23, 2010 at 3:02 PM, Emmanuel Lecharny  wrote:
   

we are unable to update some pages on /www/mina.apache.org because the pages
belongs to induvidual (which is normal) but mina group does not have +w
rights on them.

Can you set your umask to 002 in your .profile, and chmod -R g+w on the
directory ?
 

Done for ftpserver and vysper. But, I already got umask 002 set in my
.profile (and my .bashrc just to make sure) and have for a long time,
still I get this problem over and over again. Anyone got any clue?
   
I *think* there might be a problem with the script that does a rsync 
from the server where the wiki is exported. To be checked...



--
Regards,
Cordialement,
Emmanuel Lécharny
www.nextury.com




Re: Sshd, FtpServer and Vysper : missing g+w on /www/mina.apache.org

2010-02-23 Thread Niklas Gustavsson
On Tue, Feb 23, 2010 at 3:02 PM, Emmanuel Lecharny  wrote:
> we are unable to update some pages on /www/mina.apache.org because the pages
> belongs to induvidual (which is normal) but mina group does not have +w
> rights on them.
>
> Can you set your umask to 002 in your .profile, and chmod -R g+w on the
> directory ?

Done for ftpserver and vysper. But, I already got umask 002 set in my
.profile (and my .bashrc just to make sure) and have for a long time,
still I get this problem over and over again. Anyone got any clue?

/niklas