You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Vigorito, Nicholas E." <NI...@saic.com> on 2007/08/02 22:40:33 UTC

Installing Tomcat on Linux

I am going to install Tomcat standalone (not fronted by Apache) on a
Linux box that will eventually be opened up to small portion of the
outside world.

I am a developer and as such haven't ever done anything with Tomcat
except install the binaries on my Windows machine and run it locally for
development purposes.

A coworker claims that all unix admins should never install open source
binaries. They should build using the source. 

Looking for a concensus. Is it ok to install the Tomcat binaries or
should I build using the Tomcat source then install? Reasons why?

Thanks!

Nick

Re: Installing Tomcat on Linux

Posted by Wade Chandler <hw...@yahoo.com>.
Exactly.

Wade

--- Hassan Schroeder <ha...@gmail.com>
wrote:

> On 8/2/07, Vigorito, Nicholas E.
> <NI...@saic.com> wrote:
> > Here are some quotes from this person:
> >
> > You are trusting that someone built the binaries
> directly from the
> > source code without any additional modification or
> back-doors built in.
> 
> Flip side: you have gone through the *entire source
> tree* that you've
> downloaded *file by file* and *can personally
> confirm*  that there are
> no "additional modifications or back-doors".  Oh,
> yeah, baby.
> 
> Leaving aside the question of where you get the
> "master" source to
> compare to, and how you confirm that *it* hasn't
> been tampered with...
> 
> But I'd love to know how many packages your
> co-worker is willing to
> personally vouch for. :-)
> 
> heh.
> -- 
> Hassan Schroeder ------------------------
> hassan.schroeder@gmail.com
> 
>
---------------------------------------------------------------------
> To start a new topic, e-mail:
> users@tomcat.apache.org
> To unsubscribe, e-mail:
> users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail:
> users-help@tomcat.apache.org
> 
> 


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Installing Tomcat on Linux

Posted by Hassan Schroeder <ha...@gmail.com>.
On 8/2/07, Vigorito, Nicholas E. <NI...@saic.com> wrote:
> Here are some quotes from this person:
>
> You are trusting that someone built the binaries directly from the
> source code without any additional modification or back-doors built in.

Flip side: you have gone through the *entire source tree* that you've
downloaded *file by file* and *can personally confirm*  that there are
no "additional modifications or back-doors".  Oh, yeah, baby.

Leaving aside the question of where you get the "master" source to
compare to, and how you confirm that *it* hasn't been tampered with...

But I'd love to know how many packages your co-worker is willing to
personally vouch for. :-)

heh.
-- 
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Installing Tomcat on Linux

Posted by Gregor Schneider <rc...@googlemail.com>.
Tomcat installing from source doesn't make *any* sense, not even on Linux.

Why?

Well, Tomcat is written entirely in Java. Therefore, you can download
the binaries from the Apache website and check the KEYS
(MD5-checksums). If they are ok, you can be sure nobody has tampered
with.

Building from source in Linux makes sense if you're talking about
native programs, which you may have to compile so that they match your
kernel / hardware.

And even here, there are OSs like Debian, where you have comfortable
installers like aptitude that install the binaries, check the
checksums for you and you're done.
However, that depends on the OS you're running.

Coming back to Tomcat:

Download the binaries, check the KEYS, install them and while your
colleque is still compiling his sources, have a beer in your favourite
pub :)

Cheers

Gregor
-- 
what's puzzlin' you, is the nature of my game
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Failed Authentication

Posted by Lisa Tan <ag...@wayne.edu>.
I am trying to set up Tomcat form based authentication and received the
following error.
Failed authenticate() test ??/j_security_check -
org.apache.catalina.authenticator.AuthenticatorBase [20070802]

What I have done is:
a). in $TOMCAT/conf/server.xml, I add JNDIRealm <Realm
className="org.apache.catalina.realm.JNDIRealm"
       debug='55'
        connectionURL="ldap://xxx:xxx"
         userBase="ou=People,dc=example,dc=edu"
         userSearch="(uid={0})"
 />
b). in tomcat WEB-INF/web.xml,  I add security and login blocks 
       <security-constraint>
         <web-resource-collection>
          <web-resource-name>tracker</web-resource-name>
          <url-pattern>*.jsp</url-pattern>
          <http-method>GET</http-method>
          <http-method>POST</http-method>
         </web-resource-collection>
         <!-- Security roles referenced by this web application -->
         <security-role>
                  <description>All Users</description>
                  <role-name>person</role-name>
         </security-role>
      </security-constraint>
  
      <login-config>
            <auth-method>FORM</auth-method>
            <realm-name>ldapRealm</realm-name>
            <form-login-config>
                    <form-login-page>/login.jsp</form-login-page>
                    <form-error-page>/login_error.jsp</form-error-page>
            </form-login-config>
      </login-config>
c). create login.jsp and login_error.jsp and put them in the web-app's
document root    
  <form action="j_security_check" method="POST">
     	LDAP Authentication<BR>
  
     	<strong>Enter UserId</strong><br>
  	<input type="text" name="j_username" size="22">
  <br>
  	<strong>Enter Password</strong><br>
  	<input type="password" name="j_password" size="22">
  
  	<input type="submit" name="Submit" value="Submit">
  </form>
  
  login_error.jsp can be as simple as:
 
<html>
  <body>
  The system was not able to log you in.<br>
     <form>
       <input type="button" onclick="history.go(-1)" value="Retry"/>
     </form>
  </body>
</html>

Any directions will appreciate. Thanks,

Lisa


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Installing Tomcat on Linux

Posted by "Mark H. Wood" <mw...@IUPUI.Edu>.
On Thu, Aug 02, 2007 at 05:51:27PM -0400, Steve Ochani wrote:
> LOL, I would ask him if he sits there and examines all the code of
> everything that is on his system.

Ya know, I don't do that before I install most stuff, but I *do* tend
to open the source kit and read it when I want the product to do more,
or when I think it's failing, or just when I don't understand why it
does *that* when I say *this*.  In a former position I wound up
reading maybe 70% of the entire operating system over the course of
several years.  It really does happen.  In fact I have some bits of
Tomcat source on my desk right now, and a pile of somebody else's
servlet code as well.

-- 
Mark H. Wood, Lead System Programmer   mwood@IUPUI.Edu
Typically when a software vendor says that a product is "intuitive" he
means the exact opposite.


RE: Installing Tomcat on Linux

Posted by Wade Chandler <hw...@yahoo.com>.
heh heh,

from my experience with system admins, I will be
willing to bet the answer is no, unless he is telling
a big one ;-)

Wade

--- Steve Ochani <oc...@ncc.edu> wrote:

> LOL,
> 
> I would ask him if he sits there and examines all
> the code of everything that 
> is on his system.
> 
> 
> 
> 
> On 2 Aug 2007 at 16:49, Vigorito, Nicholas E. wrote:
> 
> > Here are some quotes from this person:
> > 
> > You are trusting that someone built the binaries
> directly from the
> > source code without any additional modification or
> back-doors built
> > in.
> > 
> > 
> > Also building from the source allows you to either
> specify the default
> > build or add/subtract modules/functionality that
> you want or don't
> > want.
> > 
> > 
> > The only sys admins I know of that install from
> binaries on Linux
> > machines are the lazy ones or the ones that have
> no clue what they are
> > doing.
> > 
> > I would never install open source from binaries on
> a machine I did not
> > want someone to break into. 
> > 
> > -----Original Message-----
> > From:
> >
>
users-return-167067-NICHOLAS.E.VIGORITO=saic.com@tomcat.apache.org
> >
>
[mailto:users-return-167067-NICHOLAS.E.VIGORITO=saic.com@tomcat.apache
> > .o rg] On Behalf Of ben short Sent: Thursday,
> August 02, 2007 4:44 PM
> > To: Tomcat Users List Subject: Re: Installing
> Tomcat on Linux
> > 
> > I would question his reason for this statement....
> > 
> > A coworker claims that all unix admins should
> never install open
> > source binaries. They should build using the
> source.
> > 
> > On 8/2/07, Vigorito, Nicholas E.
> <NI...@saic.com> wrote:
> > > I am going to install Tomcat standalone (not
> fronted by Apache) on a
> > > Linux box that will eventually be opened up to
> small portion of the
> > > outside world. > > I am a developer and as such
> haven't ever done
> > anything with Tomcat > except install the binaries
> on my Windows
> > machine and run it locally > for development
> purposes. > > A coworker
> > claims that all unix admins should never install
> open > source
> > binaries. They should build using the source. > >
> Looking for a
> > concensus. Is it ok to install the Tomcat binaries
> or > should I build
> > using the Tomcat source then install? Reasons why?
> > > Thanks! > >
> > Nick >
> > 
> >
>
---------------------------------------------------------------------
> > To start a new topic, e-mail:
> users@tomcat.apache.org To unsubscribe,
> > e-mail: users-unsubscribe@tomcat.apache.org For
> additional commands,
> > e-mail: users-help@tomcat.apache.org
> > 
> >
>
---------------------------------------------------------------------
> > To start a new topic, e-mail:
> users@tomcat.apache.org To unsubscribe,
> > e-mail: users-unsubscribe@tomcat.apache.org For
> additional commands,
> > e-mail: users-help@tomcat.apache.org
> > 
> 
> 
> 
>
---------------------------------------------------------------------
> To start a new topic, e-mail:
> users@tomcat.apache.org
> To unsubscribe, e-mail:
> users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail:
> users-help@tomcat.apache.org
> 
> 


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Installing Tomcat on Linux

Posted by Steve Ochani <oc...@ncc.edu>.
LOL,

I would ask him if he sits there and examines all the code of everything that 
is on his system.




On 2 Aug 2007 at 16:49, Vigorito, Nicholas E. wrote:

> Here are some quotes from this person:
> 
> You are trusting that someone built the binaries directly from the
> source code without any additional modification or back-doors built
> in.
> 
> 
> Also building from the source allows you to either specify the default
> build or add/subtract modules/functionality that you want or don't
> want.
> 
> 
> The only sys admins I know of that install from binaries on Linux
> machines are the lazy ones or the ones that have no clue what they are
> doing.
> 
> I would never install open source from binaries on a machine I did not
> want someone to break into. 
> 
> -----Original Message-----
> From:
> users-return-167067-NICHOLAS.E.VIGORITO=saic.com@tomcat.apache.org
> [mailto:users-return-167067-NICHOLAS.E.VIGORITO=saic.com@tomcat.apache
> .o rg] On Behalf Of ben short Sent: Thursday, August 02, 2007 4:44 PM
> To: Tomcat Users List Subject: Re: Installing Tomcat on Linux
> 
> I would question his reason for this statement....
> 
> A coworker claims that all unix admins should never install open
> source binaries. They should build using the source.
> 
> On 8/2/07, Vigorito, Nicholas E. <NI...@saic.com> wrote:
> > I am going to install Tomcat standalone (not fronted by Apache) on a
> > Linux box that will eventually be opened up to small portion of the
> > outside world. > > I am a developer and as such haven't ever done
> anything with Tomcat > except install the binaries on my Windows
> machine and run it locally > for development purposes. > > A coworker
> claims that all unix admins should never install open > source
> binaries. They should build using the source. > > Looking for a
> concensus. Is it ok to install the Tomcat binaries or > should I build
> using the Tomcat source then install? Reasons why? > > Thanks! > >
> Nick >
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
> e-mail: users-unsubscribe@tomcat.apache.org For additional commands,
> e-mail: users-help@tomcat.apache.org
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
> e-mail: users-unsubscribe@tomcat.apache.org For additional commands,
> e-mail: users-help@tomcat.apache.org
> 



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Installing Tomcat on Linux

Posted by "Mark H. Wood" <mw...@IUPUI.Edu>.
Well, the security argument depends more on "you *could*" than on "you
*do*".  Somewhere out there is someone crazy enough to comb through
any given source kit looking for evil.  Would any counterfeiter have
the guts to set up his print shop on the sidewalk outside a police
station?  Much of security boils down to convincing the bad guys that
they *could* be caught.

The efficiency argument (you can tune it to your specific setup)
doesn't really apply to Java programs (like Tomcat) because the
(virtual) "hardware" is the same everywhere.  If the build process
isn't configurable, I wouldn't give this one any weight for Java
app.s.

There's the self-maintenance argument: if you see anomalous behavior,
or want to make modifications, or just want to better understand
what's going on, you can read or modify the source.  If you're not at
least part programmer, though, you probably won't do that.

The other argument is that you know what goes into your system.  For
example, I know that Gnome is a big fat pig because I have one
Slackware system where I've had to spend hours pulling down library
after library after huge library just to get one or two tiny app.s to
compile. :-)  Again, this has little application to Java app.s because
their packaging teams always throw in whatever pile of .jar files is
needed to make them work, no matter how many copies of any library you
may have already.

So, if you're not going to inspect the code yourself, it makes little
difference whether you build Tomcat yourself or let someone else do it
for you.  The one weak argument against is that popularity of source
packages tends to make the risk of corrupting them seem larger, so you
could lie to the bad guys by fetching a source kit that you intend to
blindly install.  I doubt this would sway many sysadmin.s.

As another Gentoo fan, I'd certainly get source and tweak the living
daylights out of the build configuration and compiler switches of any
non-Java app. I wanted.  But I probably wouldn't do the same for a
Java app. unless I had some reason to dig into the source myself.

-- 
Mark H. Wood, Lead System Programmer   mwood@IUPUI.Edu
Typically when a software vendor says that a product is "intuitive" he
means the exact opposite.


Re: Installing Tomcat on Linux

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Nicholas,

Vigorito, Nicholas E. wrote:
> You are trusting that someone built the binaries directly from the
> source code without any additional modification or back-doors built in.

True. But then again, you are trusting commercial companies to do the
same. Also, are you really going to read every source file to make sure
that there are no back doors built-in? If you trust the source, why not
trust the binary? You can always make sure that a mirror isn't serving a
Trojan'd binary by comparing the digital signature of the file you
download with the official signature on the Tomcat website.

> Also building from the source allows you to either specify the default
> build or add/subtract modules/functionality that you want or don't want.

This guy must be a Gentoo fan ;) (Seriously, though, I love Gentoo.)

Tomcat pretty much has no optional components. Sure, there are lots of
Valves and stuff not enabled by default, but their presence doesn't slow
anything down since they're not active. I suppose you could argue that
few could save a few megabytes of disk space by removing some of the
unused portions, but it's really just not worth it.

> The only sys admins I know of that install from binaries on Linux
> machines are the lazy ones or the ones that have no clue what they are
> doing.

Heh. Building from source can be seriously tedious, especially when your
package management utility isn't designed to do it gracefully (apt-get:
I'm looking at /you/). Any system administrator that just downloads
tarballs and builds/installs from them is seriously wasting their time.

> I would never install open source from binaries on a machine I did not
> want someone to break into. 

Sounds like rampant paranoia to me.

Want my advice? Install Tomcat as a binary package. You get no benefit
whatsoever from compiling it yourself IMO. Tell your sysadmin friend
that he can build you a binary once he finishes his code audit of the
source he downloads.

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGsk8c9CaO5/Lv0PARAnY1AJ48lJcgAVXBf+AupoQpvTq7H5uXdQCbBZO4
jQjskp7P/2rIoYlClqQUPJs=
=gzEz
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Installing Tomcat on Linux

Posted by Wade Chandler <hw...@yahoo.com>.
My first question would be:
Do you examine every line of code in these sources you
compile?

Then:
If not, if you get the same sources and binaries from
the same location, what is the difference?

Most admins i know, who get sources and build them, do
not know all the ins and outs of the application they
are compiling.

Wade

--- "Vigorito, Nicholas E."
<NI...@saic.com> wrote:

> Here are some quotes from this person:
> 
> You are trusting that someone built the binaries
> directly from the
> source code without any additional modification or
> back-doors built in.
> 
> 
> Also building from the source allows you to either
> specify the default
> build or add/subtract modules/functionality that you
> want or don't want.
> 
> 
> The only sys admins I know of that install from
> binaries on Linux
> machines are the lazy ones or the ones that have no
> clue what they are
> doing.
> 
> I would never install open source from binaries on a
> machine I did not
> want someone to break into. 
> 
> -----Original Message-----
> From:
>
users-return-167067-NICHOLAS.E.VIGORITO=saic.com@tomcat.apache.org
>
[mailto:users-return-167067-NICHOLAS.E.VIGORITO=saic.com@tomcat.apache.o
> rg] On Behalf Of ben short
> Sent: Thursday, August 02, 2007 4:44 PM
> To: Tomcat Users List
> Subject: Re: Installing Tomcat on Linux
> 
> I would question his reason for this statement....
> 
> A coworker claims that all unix admins should never
> install open source
> binaries. They should build using the source.
> 
> On 8/2/07, Vigorito, Nicholas E.
> <NI...@saic.com> wrote:
> > I am going to install Tomcat standalone (not
> fronted by Apache) on a 
> > Linux box that will eventually be opened up to
> small portion of the 
> > outside world.
> >
> > I am a developer and as such haven't ever done
> anything with Tomcat 
> > except install the binaries on my Windows machine
> and run it locally 
> > for development purposes.
> >
> > A coworker claims that all unix admins should
> never install open 
> > source binaries. They should build using the
> source.
> >
> > Looking for a concensus. Is it ok to install the
> Tomcat binaries or 
> > should I build using the Tomcat source then
> install? Reasons why?
> >
> > Thanks!
> >
> > Nick
> >
> 
>
---------------------------------------------------------------------
> To start a new topic, e-mail:
> users@tomcat.apache.org To unsubscribe,
> e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail:
> users-help@tomcat.apache.org
> 
>
---------------------------------------------------------------------
> To start a new topic, e-mail:
> users@tomcat.apache.org
> To unsubscribe, e-mail:
> users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail:
> users-help@tomcat.apache.org
> 
> 


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Installing Tomcat on Linux

Posted by "Nelson, Tracy M." <Tr...@nelnet.net>.
| From: Vigorito, Nicholas E. [mailto:NICHOLAS.E.VIGORITO@saic.com]
| Sent: Thursday, 02 August, 2007 15:49
| 
| Here are some quotes from this person:
| 
| I would never install open source from binaries on a machine I did not
| want someone to break into.

Cool, just get a copy of whatever tools he uses to scan the sources of
the packages he installs.  I mean, if he builds everything from source
and only from sources he "trusts", then he must have some kind of tools
for detecting back doors and other exploits, right?  Or at least buffer
overflows or unsafe privilege changes, right?  Right?

Go ahead, ask him!
-----------------------------------------
------------------------------------------------------------
The information contained in this message is confidential
proprietary property of Nelnet, Inc. and its affiliated 
companies (Nelnet) and is intended for the recipient only.
Any reproduction, forwarding, or copying without the express
permission of Nelnet is strictly prohibited. If you have
received this communication in error, please notify us
immediately by replying to this e-mail.
------------------------------------------------------------

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Installing Tomcat on Linux

Posted by "Vigorito, Nicholas E." <NI...@saic.com>.
Here are some quotes from this person:

You are trusting that someone built the binaries directly from the
source code without any additional modification or back-doors built in.


Also building from the source allows you to either specify the default
build or add/subtract modules/functionality that you want or don't want.


The only sys admins I know of that install from binaries on Linux
machines are the lazy ones or the ones that have no clue what they are
doing.

I would never install open source from binaries on a machine I did not
want someone to break into. 

-----Original Message-----
From: users-return-167067-NICHOLAS.E.VIGORITO=saic.com@tomcat.apache.org
[mailto:users-return-167067-NICHOLAS.E.VIGORITO=saic.com@tomcat.apache.o
rg] On Behalf Of ben short
Sent: Thursday, August 02, 2007 4:44 PM
To: Tomcat Users List
Subject: Re: Installing Tomcat on Linux

I would question his reason for this statement....

A coworker claims that all unix admins should never install open source
binaries. They should build using the source.

On 8/2/07, Vigorito, Nicholas E. <NI...@saic.com> wrote:
> I am going to install Tomcat standalone (not fronted by Apache) on a 
> Linux box that will eventually be opened up to small portion of the 
> outside world.
>
> I am a developer and as such haven't ever done anything with Tomcat 
> except install the binaries on my Windows machine and run it locally 
> for development purposes.
>
> A coworker claims that all unix admins should never install open 
> source binaries. They should build using the source.
>
> Looking for a concensus. Is it ok to install the Tomcat binaries or 
> should I build using the Tomcat source then install? Reasons why?
>
> Thanks!
>
> Nick
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Installing Tomcat on Linux

Posted by ben short <ja...@gmail.com>.
I would question his reason for this statement....

A coworker claims that all unix admins should never install open source
binaries. They should build using the source.

On 8/2/07, Vigorito, Nicholas E. <NI...@saic.com> wrote:
> I am going to install Tomcat standalone (not fronted by Apache) on a
> Linux box that will eventually be opened up to small portion of the
> outside world.
>
> I am a developer and as such haven't ever done anything with Tomcat
> except install the binaries on my Windows machine and run it locally for
> development purposes.
>
> A coworker claims that all unix admins should never install open source
> binaries. They should build using the source.
>
> Looking for a concensus. Is it ok to install the Tomcat binaries or
> should I build using the Tomcat source then install? Reasons why?
>
> Thanks!
>
> Nick
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Installing Tomcat on Linux

Posted by Hassan Schroeder <ha...@gmail.com>.
On 8/2/07, Vigorito, Nicholas E. <NI...@saic.com> wrote:

> A coworker claims that all unix admins should never install open source
> binaries. They should build using the source.
>
> Looking for a concensus. Is it ok to install the Tomcat binaries or
> should I build using the Tomcat source then install? Reasons why?

Install the binary and be done. I've never built Tomcat from source,
but I've heard the pain in the voices of those who've tried.

The sound haunts me yet :-)

Seriously, if I were installing Apache httpd, or PHP, something with
a gazillion options -- sure, I always build from source, so I have just
what I want and no more included. Tomcat's nothing like that.

And yes, you're trusting that the checksum on the download page
matches the signature on the downloaded tar file, which is good
enough for most folks. :-)

YMMV,
-- 
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Installing Tomcat on Linux

Posted by Bruno Harbulot <Br...@manchester.ac.uk>.
Hello,

Peter Crowther wrote:
>> From: Vigorito, Nicholas E. [mailto:NICHOLAS.E.VIGORITO@saic.com] 
>> A coworker claims that all unix admins should never install 
>> open source binaries. They should build using the source.
> 
> Binaries are marginally more open to tampering; this is why most (all?)
> Apache projects provide checksums of the built packages.  A cracker
> would have to replace the binaries on the distribution machine *and*
> tamper with the checksums that are held on a different machine.  Or
> they'd have to be part of the relevant build team, in which case they
> may well be able to get their crack into the source anyway.

Source files have checksums too (and I don't think source files are less 
open to tampering -- in fact it's probably easier to change something in 
the source code). The safety provided by checking the checksums of a 
binary package is more or less the same as that offered by checking the 
checksums of the source packages (in the case when the people who 
produce the packages are the same).
If you want to push the verification to a further level, we go back to 
the argument that you must personally check each and every single line 
of code -- simply infeasible.

The one thing you are forced to trust when you use a binary package is 
the compiler with which it has been built. Most of the time, you don't 
even need to worry about the libraries your application relies on, since 
dynamic linking means that the binary application is going to use those 
already on your system (which I guess you trust).
Perhaps binary packagers could say with which compiler their code has 
been compiled, just in case you were worried about a particular compiler.

The real main advantage you get from building from source is to have a 
binary executable that can be optimised for the target machine.
In the case of Tomcat, since it's all Java-based and it relies on the 
JVM to do that, it does not really matter. It might help for the native 
libraries.


Regards,

Bruno.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Installing Tomcat on Linux

Posted by Peter Crowther <Pe...@melandra.com>.
> From: Vigorito, Nicholas E. [mailto:NICHOLAS.E.VIGORITO@saic.com] 
> A coworker claims that all unix admins should never install 
> open source binaries. They should build using the source.

Binaries are marginally more open to tampering; this is why most (all?)
Apache projects provide checksums of the built packages.  A cracker
would have to replace the binaries on the distribution machine *and*
tamper with the checksums that are held on a different machine.  Or
they'd have to be part of the relevant build team, in which case they
may well be able to get their crack into the source anyway.

It's rather like conducting a detailed inspection of everything you buy
for bugs before loading it into your car.  You *might* catch something,
but the odds are low.

Here's how to decide.  If you multiply the expected loss due to a
break-in (say $10M) by the probability of catching something you
wouldn't have caught because the binary's been compromised *and* the
checksums have been tampered with (say 1 in 100,000) by the probability
of that security hole being exploited (say 1 in 10), you get an expected
loss of $10.  I suspect it would cost half a day to build from source
(say $150 of staff time); so in this case the organisation should use
the binary, because the expected cost to the organisation is lower than
the cost of building from source.  Substitute your own figures for loss,
probabilities, and cost of build to come up with your own answer for
your own organisation!

		- Peter

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org