View Single Post
  #6 (permalink)  
Old 11-25-2008, 03:36 PM
jmhe jmhe is offline
Zimbra Employee
 
Posts: 831
Default

can you run this simple java code from command line and tell me what's the output is? that's exactly how installer gets uid:

Code:
import java.io.*;
public class uidtest {
  public static void main(String[] args) {
    com.sun.security.auth.module.UnixSystem unix = new com.sun.security.auth.module.UnixSystem();
    System.out.println(Long.toString(unix.getUid()));
  }
}
you can paste the code into a text file called uidtest.java, then

Code:
$ javac uidtest.java
$ java uidtest
Reply With Quote