Hi Brad,
Thanks for your help,
I'm trying to run this code to know which user is
running my webserver. I think it is the nobody
#!/usr/local/bin/php -q
HTML
BODY bgcolor='#ff'
?php
echo PRE;
#$output=passthru(rsh rubella ls
/tmp/salididta.txt,$vari);
$output=system(who am I,$vari);
echo
.
good luck,
Warren Vail
-Original Message-
From: Nathan Taylor [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 09, 2003 3:48 PM
To: [EMAIL PROTECTED]; Ivone Uribe
Subject: Re: [PHP] run a command on a remote host
When you say remote host do you mean the server
executing
When you say remote host do you mean the server executing the script or the person
accessing it?
If you mean the latter, it is not possible.
- Original Message -
From: Ivone Uribe
To: [EMAIL PROTECTED]
Sent: Tuesday, December 09, 2003 5:44 PM
Subject: [PHP] run a command on
Don't forget that this will be executed as the user that the webserver
is running as. Hopefully that's not root in this case. Check out the
docs for rsh, you can specify the username with the -l option. I
don't know if that will accomplish what you want. Also, what do you mean
by nothing
To: [EMAIL PROTECTED]; Ivone Uribe
Subject: Re: [PHP] run a command on a remote host
When you say remote host do you mean the server executing the script or the
person accessing it?
If you mean the latter, it is not possible.
- Original Message -
From: Ivone Uribe
To: [EMAIL PROTECTED
5 matches
Mail list logo