On Wed, Nov 24, 2021 at 11:09:08AM +0100, Thorsten Schöning wrote:
> Hi everyone,
> 
> for various reasons I put /var/spool/cron/crontabs under version
> control. I have one Ubuntu 12.04 legacy system running SVN 1.7.22 and
> recognized that after committing changes to the file for ROOT, it's
> permissions changed.
> 
> > 655748 4 -rw------- 1 root crontab 1597 Nov 24 10:09 root
> 
> vs.
> 
> > 655748 4 -rw-r--r-- 1 root crontab 1597 Nov 24 10:09 root
> 
> This made CRON ignoring the file with the following message:
> 
> > Nov 23 12:56:01 [...] cron[1346]: (root) INSECURE MODE (mode 0600 expected) 
> > (crontabs/root)

Subversion does not store file permission mode bits, except that the
"executable" bit is preserved via the svn:mime-type property.

You will want to use a wrapper tool such as 'asvn' for this use case:
https://svn.apache.org/repos/asf/subversion/trunk/contrib/client-side/asvn

Cheers,
Stefan

Reply via email to