Re: show user and home directory

From: Date: Wed, 21 Nov 2001 21:35:52 +0000
Subject: Re: show user and home directory
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-75452@lists.php.net to get a copy of this message
Dave Vanauken wrote: > After doing authentication we can retrieve the username using > PHP_AUTH_USER > > wish to determin what that user's home directory is on the server from > within > PHP... obviously working the > 'pw usershow '.$PHP_AUTH_USER > through exec results in permission problems (web uid not allowed to run PW > for obvious reasons)... and shelling out to a script results in similar > setuid > restrictions... again for obvious reasons. > > thoughts? If all else fails, isn't that in /etc/passwd?... Read /etc/passwd and find the user and there is their home dir. -- Like music? http://l-i-e.com/artists.htm

« previous php.general (#75452) next »