Page 1 of 1

Cron quotacheck

Posted: Mon Nov 30, 2015 8:15 am
by Fortron
When manually running cron it returns:

executing /etc/cron.daily/quotacheck
/etc/cron.daily/quotacheck:
run-parts: failed to exec /etc/cron.daily/quotacheck: Exec format error
run-parts: /etc/cron.daily/quotacheck exited with return code 1

Adding t#!/bin/sh to /etc/cron.daily/quotacheck solved this part.

Next it retuns this:

quotacheck: Quota for users is enabled on mountpoint / so quotacheck might damage the file.
Please turn quotas off or use -f to force checking.
run-parts: /etc/cron.daily/quotacheck exited with return code 6

Is there any harm in adding the -f parameter?

Re: Cron quotacheck

Posted: Thu Jan 21, 2016 8:23 am
by skurudo
Fortron wrote: quotacheck: Quota for users is enabled on mountpoint / so quotacheck might damage the file.
Please turn quotas off or use -f to force checking.
run-parts: /etc/cron.daily/quotacheck exited with return code 6
viewtopic.php?f=10&t=10007
Fortron wrote:Is there any harm in adding the -f parameter?
It can be.

Re: Cron quotacheck

Posted: Sat Feb 06, 2016 11:52 pm
by jonn
I'm also curious at why /etc/cron.daily/quotacheck is running quotacheck -um / everyday and sending a error email..

Code: Select all

/etc/cron.daily/quotacheck:
run-parts: failed to exec /etc/cron.daily/quotacheck: Exec format error
run-parts: /etc/cron.daily/quotacheck exited with return code 1
running it from the command line produces that warning quotacheck: Quota for users is enabled on mountpoint / so quotacheck might damage the file.Please turn quotas off or use -f to force checking., so why do we need the cron running if we already know quotas are on, am i missing the point of the email.