[suPHP] Using suPHP with non real system users

Brock Noland brockn at gmail.com
Tue May 20 02:59:35 CEST 2008


On Mon, May 19, 2008 at 7:52 PM, Damien Varron <diams99 at yahoo.fr> wrote:
> uh, it works !!!

Great!

> So I assume the whole directory should be owned by root, and then only the
> directory by the wanted #UID : #GID, right ?
> Anyway, I'm glad it's ok now. I can finally move on !

I believe the structure needs to be owned by root:root or uid:gid
where uid:gid are specified in the apache config. Here is a relevant
piece of code:

        UserInfo directoryOwner = directory.getUser();
        if (directoryOwner != owner && !directoryOwner.isSuperUser()) {
            std::string error = "Directory " + directory.getPath()
                + " is not owned by " + owner.getUsername();

I don't believe you should have gotten a ``LookupException'' due to
mis-configured parent directory permissions, but as you said, you were
changing things around so there may have been a few problems.

Glad its working!
Brock



More information about the suPHP mailing list