MMBase has a rather typical bit of code that can be used to change
user/group settings on a Solaris/Linux system.
It uses native code, in the org.mmbase.util.platform package.
I am not entirely user if this code is actually, ever, used, or what
it's purpose is. The README file says:
"This is the support class for changing userid and group on platforms
that require this.
The native code should be portable to most unix systems.
If your platform doesn't need this (because of no restrictions on
binding to ports below 1024) see if it is checked for in SetUser.java
Currently supported in the Makefile are :
Solaris
Linux
Testing on your platform can easily be done by using the provided Main.java
Also set your shared library path to this directory before starting
youre server if you use the code, by setting
-Dmmbase.userlevel=<user>:<group>
Most likely : LD_LIBRARY_PATH=<ServerRoot>/mmbase/util/platform"
Is this really (still) needed? Does anyone use this?
If not I prefer to remove it.
--
Pierre van Rooden
Mediapark, C 107 tel. +31 (0)35 6772815
"Hard work may pay off in the long run, but laziness always pays off
right now."
_______________________________________________
Developers mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/developers