permissions
Hello All, Here is the situation. There is an jvm on a linux fileserver. There is another app that is going to connect to this jvm (all RMI) and using java IO to create directories and files. Now one user will create his own directories and will eventually disconnect. Another user will connect with another instantace of the external app and use the same JVM to create directories and files of his own and obviously we want the permissions to match the users for security reasons. Now if the jvm is started by user X do all teh files created by the JVM with java io have the permissions of user X? What they are doing now is using novell which has some user and permission classes that lets them set user and file premissions. I suggested creating a JNI wrapper for some basic unix functions but then I thought that the JVM would always run as root which is bad. We could start the jvm up under a different user every time that someone connects with the external app but that is not very efficient. I simply don't know how to do this on linux. Any help you may offer is greately appreciated and will result in many linux servers being put into place. thanks for taking the time to reed my post. Joel Dudley Unix System Administrator DevelopOnline.com "For the scientist who has lived by his faith in the power of reason, the story ends like a bad dream. He has scaled the mountains of ignorance; he is about to conquer the highest peak; as he pulls himself over the final rock, he is greeted by a band of theologians who have been sitting there for centuries." - Dr. Robert Jastrow, Founder Goddart Space Flight Institute -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Binding a multicast socket to a port in use.
Jesse Erdmann wrote: > > Hello all, > > I'm trying to port a Java server from Windows to Linux. Both need to > be interoperable and the clients (Win*/Linux on x86) need to be able to > connect to either. > > On the Windows platform, the developers were able to bind a > MulticastSocket to a port already in use by other (non-Multicast) > sockets.However, when the code tries to do this on Linux I get a > BindException: Address already in use. Of course, this doesn't happen > when I feed it a port not in use. However, this really isn't a viable > solution for various reasons (the process currently fails for other > reasons because of using a different port). > > Does anyone have suggestions on how to fix this without resorting to > using a different port? Also, does anyone know specifically why this is > different between the two environments? > > Thanks! > > -- > > Jesse Erdmann > Engineer > Secure Computing Corp. > What version of the Linux Kernel are you using? What version of glibc are you using? If you are using the latest versions then you may be seeing a bug related to major differences in multicast socket behaviors. At least some of these problems were fixed in a patch made to blackdown today. -- Matthew Peterson Sr. Software Engineer Caldera Systems, Inc [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]