0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Raspberry Piでcronが実行されるが権限に阻まれる場合の対処法

Posted at

Raspberry Piでcronが実行されるが権限に阻まれる場合の対処法

RasPiで、自作スクリプトなどの実行をcronに設定した際、以下のエラーに悩まされましたので、報告します。

※なお、全てのコマンドは、管理者権限で実行しています...

systemctl status cron

> pam_unix(cron:session): session opened for user root raspi

参照先:
[SOLVED] What would cause constant "(cron:session): session opened/closed for user root" in auth.log

apt install systemd-cron

結果...

無事実行が確認できました。
補足:
パッと見だが...
実行内容を見たら、cronの内容をコピーして、systemd用の実行に変換して、
指定時間に実行されてるみたいだった...

0
1
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?