Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 6.1.3
-
Fix Version/s: None
-
Component/s: Security and SSL
-
Labels:None
-
Environment:ubuntu linux
-
Number of attachments :
Description
I'm running jetty with the new setuid feature but can't get any jsp's working, because the created tmp directory (e.g. mine is /tmp/Jetty_0_0_0_0_80_web____odwq8l under linux) will be created with the uid of the user starting jetty before setuid becomes effective (which is root in my case). When jetty tries to generate the java source from the jsp, an exception occures.
Activity
Greg Wilkins
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Jan Bartel [ janb ] |
Greg Wilkins
made changes -
| Issue Type | Bug [ 1 ] | Improvement [ 4 ] |
Jan Bartel
made changes -
| Status | Open [ 1 ] | Closed [ 6 ] |
| Resolution | Fixed [ 1 ] |
For now, if you create a directory $JETTY_HOME/work it will be used as the temp directory and will
should avoid this issue.
Alternately you could write a config file that does:
configure connectors.
calls open on connectors.
does setUid
starts the server.
This ordering will also avoid the issue and will not run any webapps as root.