lang
1<?php 2$command = "/usr/bin/at ".date('H:i d.m.y', strtotime("+1 minutes"))." -f /var/www/html/echo.sh 2>&1"; 3$res = system($command, $output); 4var_dump($res); 5var_dump($output);
このコードを実行すると
PAM failure: System error You do not have permission to use at.
と表示されてしまいます。
SELinuxをOffにすると実行できますが、Onの場合のポリシーの作成方法がわかりませんでした。
何か解決案などありましたら、よろしくお願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2015/06/14 10:50