[Dirvish] dirvish-expire trouble with read only vault directories ?

Tony waterwingz at sbcglobal.net
Sat May 13 02:08:10 UTC 2006


On Fri, 2006-05-12 at 22:02 +0200, Eric Mountain wrote:
> On Friday 12 May 2006 03:56, Tony spake thus:
> >    rm: cannot remove `/backup/pictures/20060328/tree/image001.jpg':
> > Permission denied
> >
> > A quick look at the permissions for the ./tree directory shows : 
> > dr-xr-xr-x.
> 
> Not sure offhand, but you may find this useful:
> 
>   http://wiki.dirvish.org/index.cgi?ChmodOnExpire
> 
> I believe this patch included in Keith's 1.3.1 experimental version.
> 
> Cheers,
> Eric

Thanks - that did it.  Being a little lazy, I only patched in the two
lines that do the chmod and ignored the additional code that does
fancier error checking (at least for now).

system("chmod u+rwX $$expire{path}/tree && find $$expire{path}/tree
-type d -exec chmod u+rwX \\{\\} \\;");

system("chmod u+rwX $$expire{path} && find $$expire{path} -type d -exec
chmod u+rwX \\{\\} \\;");


Tony



More information about the Dirvish mailing list