commun:tache_periodique
Créer une tâche périodique
systemctl list-timers
- famille_perms.timer
[Unit] Description=Execute famille-perms.service tous les jours [Timer] OnCalendar=daily [Install] WantedBy=timers.target
- famille_perms.service
[Unit] Description=Permissions for /media/nas-famille [Service] Type=oneshot ExecStart=/usr/bin/find /media/stockage/famille/ -type f -exec /bin/chmod ug+rw {} \; ExecStart=/usr/bin/find /media/stockage/famille/ -type d -exec /bin/chmod ug+rwx {} \; ExecStart=/usr/bin/find /media/stockage/famille/ -exec /bin/chmod o-rwx {} \; ExecStart=/usr/bin/find /media/stockage/famille/ -type d -exec /bin/chmod g+s {} \; ExecStart=/usr/bin/find /media/stockage/famille/ -exec /bin/chown root.famille {} \;
sudo systemctl enable famille_perms.timer sudo systemctl start famille_perms.timer
commun/tache_periodique.txt · Dernière modification : de 127.0.0.1
