[Live-demo] Re: [OSGeo] #478: deegree start user confusion

OSGeo trac_osgeo at osgeo.org
Wed Sep 30 10:31:45 EDT 2009


#478: deegree start user confusion
----------------------------+-----------------------------------------------
  Reporter:  wildintellect  |       Owner:  live-demo at lists.osgeo.org
      Type:  task           |      Status:  new                      
  Priority:  major          |   Component:  LiveDVD                  
Resolution:                 |    Keywords:  deegree launcher         
----------------------------+-----------------------------------------------
Comment (by hamish):

 Replying to [comment:3 jmays]:
 > sudo -u user is necessary here, because as wildintelect has
 > correctly stated: deegree and all its scripts are started as root.
 > therefore firefox will also to be started as root. But this will
 > conflict if "user" has started firefox already.

 ah, ok.

 as a general rule starting as root is not a good thing to do if you can
 help it, and for a web-app is a very big no-no. For the live-dvd
 I guess it doesn't matter much, but for a persistent VM or installed-from-
 dvd it might. Without knowing anything about it, may I ask why it needs to
 be run as root? (appolgies if it's a stupid question)

 fyi,
 {{{
 export JAVA_OPTS='...'
 }}}
 is a bashism and will fail on Ubuntu where /bin/sh is symlinked to the
 faster dash.

 rather do:
 {{{
 JAVA_OPTS='...'
 export JAVA_OPTS
 }}}

 or

 {{{
 JAVA_OPTS='...' ; export JAVA_OPTS
 }}}


 or in can't-fix cases change the shebang to #!/bin/bash


 thanks,
 Hamish

-- 
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/478#comment:6>
OSGeo <http://www.osgeo.org/>
OSGeo committee and general foundation issue tracker.


More information about the Live-demo mailing list