Mantis - Resin
Viewing Issue Advanced Details
271 minor always 06-17-05 00:00 11-30-05 14:43
mabbott  
 
urgent  
closed 3.0.13  
3.0.13 fixed  
none    
none 3.0.15  
0000271: Problem with setuid user support
RSN-306
If we set user-name and group-name, we see a change in behavior in
3.0.13 that prevents proper startup.

Here is log output:

20050617 11:49:05.875-0700 Running as mabbott(uid=3124)
20050617 11:49:09.355-0700 Server[] starting
20050617 11:49:09.666-0700 Loaded Socket JNI library.
20050617 11:49:15.275-0700 java.net.BindException: Permission denied
20050617 11:49:15.275-0700 Can't bind to *:80.

You can see that the switch to user mabbott occurs before Resin
tries to grab port 80, so it cannot do so. In 3.0.12, the
port was acquired first:

20050617 12:46:08.162-0700 Loaded Socket JNI library.
20050617 12:46:08.169-0700 http listening to *:80
20050617 12:46:08.171-0700 Running as mabbott(uid=3124)
20050617 12:46:08.172-0700 ServletServer[] starting
20050617 12:46:08.863-0700 Host[] starting
20050617 12:46:11.098-0700 In-place class redefinition (HotSwap) is not availabl
e. In-place class reloading during development requires a compatible JDK and -X
debug.
20050617 12:46:13.179-0700 Application[http://localhost:80] [^] starting
Solaris 8, JDK 1.4.2_07

There are no notes attached to this issue.