What's new

:: ipBLOCKer :: Category blocking using iptables and ipsets

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Have you tried as suggested in the Guide
Code:
Check the name of super user on your system. If it's other then root, please fix it at /opt/etc/crontab.
As an example, asuswrt(-merlin) uses admin:

sed -i 's/root/admin/g' /opt/etc/crontab

NOTE:
Since entware has the vixie's version and as
@ rhyzhov_al pointed out $USER needs to be part of the job description
i.e.,
0 * * * * $USER scriptcall

The elegant approach would be to as you say having cron.allow

That will fix the system-wide crontab as in /opt/etc/crontab. Thinking back..in fact we don't need per-user crontab in a "single user" environment. So if Entware cron is detected, a job can simply be scheduled by appending to /opt/etc/crontab. It'll be picked up by cron shortly after without bouncing any process.

In case someone insist on per-user cron, here is how-to:
Code:
echo admin > /opt/etc/cron.allow
ln -s /opt/etc/cron.allow /opt/var/cron/cron.allow

With the above one-time change, 'crontab -e' and its other command line options shall work in Entware.
 
In case someone insist on per-user cron, here is how-to:
Code:
echo admin > /opt/etc/cron.allow
ln -s /opt/etc/cron.allow /opt/var/cron/cron.allow

With the above one-time change, 'crontab -e' and its other command line options shall work in Entware.

Code:
Adding a $USER to cron.allow and the soft link are elegant.

@Odkrys  Try this approach.
Do a test after configuration with @kvic's suggested steps to see if crontab is working for $USER.

I have included a quick fix for you, uptake the file and in the .ipBLOCKer.config file add the below
CRON_USER=$USER

Do the above ONLY if vixie's cron needs $USER in the crontab schedule.
You would have to rename the extension of the file from .txt to .sh
 

Attachments

  • includes_ipBLOCKer RENAME THE EXT TO SH.TXT
    17.2 KB · Views: 526

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top