User cronjobs don't work because of wrong ownership crontabs

When I create a cronjob for a user, the cronjob is successfully created at : /var/spool/cron/crontabs/myuser

But the ownership is wrong, it should be: -rw------- 1 myuser crontab 536 Dec 21 14:25 myuser

But it is created with root as user: -rw-r--r-- 1 root root 324 Jan 23 15:00 myuser

At this point, new created cronjobs don't work anymore.

Webmin versie 1.872 Usermin Versie 1.734 Virtualmin versie 6.02

This problem came from one of the updates since January this year, I think.

Status: 
Active

Comments

That's very odd, as Webmin just calls the crontab command to create the file.

If you SSH in as root and run crontab -e -u XXX where XXX is some user who doesn't have a crontab yet, what ownership does the new file have?