Menu

#25 CURE config impossible without a 'home' dir

open
nobody
None
4
2008-02-08
2008-02-08
Uwe Sinha
No

CURE saves its configuration (along with uploaded files) in '$HOME/.CURE', where $HOME is the home directory of the user running Tomcat.

This, however, seems to be a bad idea on systems where the user running Tomcat does NOT have a home dir. E.g., on Gentoo Linux systems, the 'tomcat' user by default has their home dir set to '/dev/null'.

Incidentally, what was wrong with putting db.properties et al. into '$TOMCAT_HOME/webapps/CURE/WEB-INF'?

Discussion

  • Uwe Sinha

    Uwe Sinha - 2008-02-08
    • priority: 5 --> 4
     
  • Uwe Sinha

    Uwe Sinha - 2008-02-08

    Logged In: YES
    user_id=1657806
    Originator: YES

    Workaround: on systems like these, give the 'tomcat' user an actual home dir, e.g. (as root):

    mkdir /usr/share/tomcat-common
    chown tomcat.tomcat /usr/share/tomcat-common
    usermod --home /usr/share/tomcat-common tomcat

    (It's called 'tomcat-common' because Gentoo e.g. allows its users to install Tomcat 5 and Tomcat 6 in parallel.)

     
  • Uwe Sinha

    Uwe Sinha - 2008-04-21

    Logged In: YES
    user_id=1657806
    Originator: YES

    Alternatively, .CURE might be moved to a place that's generally more sensible in a server setting. On a *IX system, this might be something like /var/lib/CURE. Uploads would go there as well, so they still would be outside Tomcat's directory tree.

     

Log in to post a comment.