Hi List
I've gone through the list for previous questions and the only one that
seems to be a solution is to use sudo, however, I cannot seem to get it
right.
Just as background:
I want to make a small admin utill for an intranet machine, so the
security risks don't bother me at all.
Instead
-
De: Petre Agenbag [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 28 de agosto de 2003 14:48
Para: [EMAIL PROTECTED]
Asunto: [PHP] reboot pc with PHP
Hi List
I've gone through the list for previous questions and the only one that
seems to be a solution is to use sudo, however, I cannot seem to get
original-
De: Javier Tacon
Enviado el: jueves, 28 de agosto de 2003 15:07
Para: Petre Agenbag; [EMAIL PROTECTED]
Asunto: RE: [PHP] reboot pc with PHP
You can write a little script with expect (man expect) and execute it from php with
exec().
Other solution its to write a .procmailrc in root
]
Asunto: RE: [PHP] reboot pc with PHP
You can write a little script with expect (man expect) and execute it from php with
exec().
Other solution its to write a .procmailrc in root that executes the reboot when
coming a mail with some text in subject or boyd, so, from php you only need
..
chown 700 /directory/for/rrebootfile
chown apache.nobody /directory/for/rrebootfile
-Mensaje original-
De: Matthew Harrison [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 28 de agosto de 2003 15:49
Para: Javier Tacon
CC: Petre Agenbag; [EMAIL PROTECTED]
Asunto: Re: [PHP] reboot pc with PHP
apache.nobody /directory/for/rrebootfile
-Mensaje original-
De: Matthew Harrison [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 28 de agosto de 2003 15:49
Para: Javier Tacon
CC: Petre Agenbag; [EMAIL PROTECTED]
Asunto: Re: [PHP] reboot pc with PHP
On Thu, Aug 28, 2003 at 03:35:59PM
Petre, et al --
...and then Petre Agenbag said...
%
% Hi List
Hi!
%
% I've gone through the list for previous questions and the only one that
% seems to be a solution is to use sudo, however, I cannot seem to get it
% right.
...
%
% Obviously these command(s) need to be run as root, so I
7 matches
Mail list logo