Re: [webmin-devel] CORRECTION - PROBLEM NOT SOLVEDRE:Stumbling Forward RE: Getting Webmin torununderApacheforSolaris10-- Creating dent in desk from banging head.

"PEOPLES, MICHAEL P (ATTSI)" <[email protected]> Mon, 21 Mar 2011 19:30:30 -0400
Newsgroups gmane.comp.web.webmin.devel
Message-ID <C038F8186F9F1E4D8F7C0FDAB3317B1209841FE9@misout7msgusr7c.ugd.att.com>
I made this point earlier, which is why I went the suexec route, which it the proper way to achieve this with this configuration.

I suppose I could change some ownership values on the system.   Apache doesn't even have a home directory, another Apache security measure, so maybe if apache or (perhaps better) its group owned the files.  Something like: chown -R root:webmin

I guess it can't hurt to try.  I wrote scripts to flip the active webmin directories from a "standard" installation, to an Apache installation, so it shouldn't be too difficult.

Michael Peoples
Senior Systems Manager
AT&T - ATTSI
Office:            614-789-8559
Cell:    614-886-0923
FAX:   614-789-8975
[email protected]

This e-mail and any files transmitted with it are AT&T property, are confidential, and are intended solely for the use of the individual or entity to whom this email is addressed. If you are not one of the named recipient(s) or otherwise have reason to believe that you have received this message in error, please notify the sender and delete this message immediately from your computer. Any other use, retention, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited."


-----Original Message-----
From: Joe Cooper [mailto:[email protected]] 
Sent: Monday, March 21, 2011 4:32 PM
To: [email protected]
Subject: Re: [webmin-devel] CORRECTION - PROBLEM NOT SOLVEDRE:Stumbling Forward RE: Getting Webmin torununderApacheforSolaris10-- Creating dent in desk from banging head.

It would work if you can convince Apache to run CGIs as root...but the 
Apache folks go to great lengths to make that difficult to do, because 
of the horrendous security implications and the burden of auditing that 
much code. I've done it in the distant past, in pre-Webmin days, but 
have no recollection of how I did it, and suspect it would be very 
different today (I'm pretty sure suexec didn't exist back then, for 
instance). Webmin's miniserv.pl, by comparison, is miniscule, and 
written in a much higher level language with none of the common security 
concerns found in C code, where the program manages its own memory.

I question this assertion, as well: "What Apache would allow would be a 
richer tool set for extending functionality."

What specific functionality did you have in mind? miniserv.pl is written 
in Perl, and thus extremely easy to extend (though I'm always leery of 
touching the security-sensitive portions of Webmin, and miniserv is 
perhaps the most security-sensitive part of the whole package). I'm not 
saying Apache isn't a richer toolset...I'm just not sure how most of its 
tools would apply to Webmin.

Perhaps you can tell us what you're trying to accomplish, and we can 
lend some advice on those specific goals...maybe Apache will provide 
benefits for your particular case, but I'm currently doubtful of that. 
Speed is pretty much certainly not one of those benefits, security is 
definitely not one of those benefits, and "extending functionality" is 
currently a no-op in the discussion...without knowing what extended 
functionality you're looking for, I don't have anything constructive to 
say about it. ;-)

So, do I think you're wasting your time? If speed is why you're doing 
it, then you're wasting your time. Webmin won't be faster running under 
Apache (or any other web server, even the fastest web server in the 
world); it'll probably be slower (miniserv is an already running Perl 
process, removing most of the CGI spin up time from the equation). If 
security is why you're doing it, then you're wasting your time. miniserv 
provides a number of security features not found, or at least difficult 
to replicate, in Apache. There may be other good reasons to run under 
Apache (Jamie mentioned memory use, though even when I was building 
pretty memory-sensitive products, I could always find ~11MB for Webmin).

In short, define your problem clearly, and a solution might be easier to 
find.

On 3/21/2011 5:33 AM, PEOPLES, MICHAEL P (ATTSI) wrote:
> Joe,
>
> You may very well be right.  As I was writing that yesterday, I thought to myself, maybe someone with more experience than I should, metaphorically, "slap me upside the head" and tell me I'm wasting my time.
>
> That said, I wanted to see for myself, and given the fact that this is supposed to work (and my generally obsessive nature), I wanted to see for myself.
>
> I have sufficient knowledge of how Webmin and Apache work to understand that both are just serving up pages and Webmin is most certainly lighter than Apache.  What Apache would allow would be a richer tool set for extending functionality.
>
> I appreciate the time and help offered.  If folks with actual experience using Webmin under Apache feel I'm wasting mine time, don't hesitate to tell me.
>
> Thanks.
>
> Michael Peoples
> Senior Systems Manager
> AT&T - ATTSI
> Office:            614-789-8559
> Cell:    614-886-0923
> FAX:   614-789-8975
> [email protected]
>
> This e-mail and any files transmitted with it are AT&T property, are confidential, and are intended solely for the use of the individual or entity to whom this email is addressed. If you are not one of the named recipient(s) or otherwise have reason to believe that you have received this message in error, please notify the sender and delete this message immediately from your computer. Any other use, retention, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited."
>
>
> -----Original Message-----
> From: Joe Cooper [mailto:[email protected]]
> Sent: Monday, March 21, 2011 3:28 AM
> To: [email protected]
> Subject: Re: [webmin-devel] CORRECTION - PROBLEM NOT SOLVEDRE:Stumbling Forward RE: Getting Webmin torununderApacheforSolaris10-- Creating dent in desk from banging head.
>
> I just read through this conversation, and it sounds like you're doing
> all of this because you believe running Webmin under Apache will be
> faster. I very strongly suspect it will be slower.
>
> On 3/20/2011 1:45 PM, PEOPLES, MICHAEL P (ATTSI) wrote:
>> The only way I know how to do this is via the suexec option in Apache.  This version of Apache (2.2.16) was not compiled with that option and attempts to do so have repeatedly failed (for some reason it doesn't like the OpenSSL install despite the fact that it is already using it (--with-ssl).
>>
>> Running Apache as root is strongly discouraged, so what I'm asking is, do you have a way to do this that doesn't involve recompiling Apache to include suexec or running Apache under root?
> ...
>
> ------------------------------------------------------------------------------
> Colocation vs. Managed Hosting
> A question and answer guide to determining the best fit
> for your organization - today and in the future.
> http://p.sf.net/sfu/internap-sfd2d
> -
> Forwarded by the Webmin development list at [email protected]
> To remove yourself from this list, go to
> http://lists.sourceforge.net/lists/listinfo/webadmin-devel
>
> ------------------------------------------------------------------------------
> Colocation vs. Managed Hosting
> A question and answer guide to determining the best fit
> for your organization - today and in the future.
> http://p.sf.net/sfu/internap-sfd2d
> -
> Forwarded by the Webmin development list at [email protected]
> To remove yourself from this list, go to
> http://lists.sourceforge.net/lists/listinfo/webadmin-devel


------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
-
Forwarded by the Webmin development list at [email protected]
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-devel

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
-
Forwarded by the Webmin development list at [email protected]
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-devel