Linux tipps

Cron jobs

Creating a script file in the daily run folder for Ubuntu.

cd /etc/cron.daily
sudo touch my-daily-job
sudo chmod 755 my-daily-job

Now add commands to the created script file and you’re done.

do some job here

You can verify that the script will run using this command.

sudo run-parts --report --test /etc/cron.daily

Firewall UFW

ufw allow 22/tcp
ufw allow from <ip> to any port 22
ufw status numbered
ufw delete 1
ufw allow 49000:50000/tcp (e.g. proFTPd passive connections)