Aller au contenu

Problème d'extinction du NAS depuis le PC

Featured Replies

Posté(e)

Bonjour,

J'ai enregistré dans /home/tt/Bureau/NAS-Off.sh le script suivant

#! /bin/bash
echo "Le serveur va maintenant s'arrêter..."
ssh admin@192.168.1.15 "/sbin/poweroff" 

Je crée cette ligne dans anacrontab

1  1 tt-run7 /home/tt/Bureau/NAS-Off.sh

comme mon NAS ne s'éteint pas, je fais :

tt@ttx ~/Bureau $ journalctl -xb | grep cron
juin 03 08:21:15 ttx anacron[5134]: Anacron 2.3 started on 2021-06-03
juin 03 08:21:15 ttx anacron[5134]: Can't open timestamp file for job tt-run7: Permission denied
juin 03 08:21:15 ttx anacron[5134]: Aborted

Je précise qu'en tant qu'utilisateur "tt" je suis le propriétaire du fichier NAS-Off.sh et l'opérateur du terminal de lancement de ce job.
Je ne comprends pas cet échec car le fichier NAS-Off.sh est situé sur le bureau de mon PC sous Ubuntu et, quand je clique sur son icône, il s'exécute sans problème de sorte que mon NAS s'éteint.

Rejoindre la conversation

Vous pouvez publier maintenant et vous inscrire plus tard. Si vous avez un compte, connectez-vous maintenant pour publier avec votre compte.

Invité
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Répondre à ce sujet…

Account

Navigation

Rechercher

Rechercher

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.