Re: signing in as php user?
| From: | Brian Clark | Date: | Tue, 09 Jan 2001 23:08:45 +0000 |
| Subject: | Re: signing in as php user? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-33580@lists.php.net to get a copy of this message | ||
Hello Jason,
(JJ == "Jason Jacobs") jason@factory7.com writes:
JJ> Does anyone know how I can sign into a site through a shell
JJ> (Telnet, FTP program, etc) with the PHP user?
$ ps aux | egrep '([w]ww|[n]obody)' | su
awk '{ print $1 }'
or
$ which php | ls -l awk '{ print $1 }'
..And look in columns 3 and 4 for user and group, respectively.
JJ> How can I find out the password that PHP uses (or does it...)?
If it is a CGI, it's the password of the user that owns the
executable. (there may also be setuid/setgid issues but I'm not
getting into that).
If it's running as an Apache static or DSO, it's the user the
webserver is running as.
JJ> Jason
-Brian
--
Structured Programming supports the law of the excluded muddle.