Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
 
Go Back   Zimbra - Forums > Zimbra Desktop > Installation Help

Welcome to the Zimbra - Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-25-2008, 01:32 PM
Junior Member
 
Posts: 5
Default [SOLVED] Installer thinks I'm root

What does the installer check to see if the current user is root or has root access? After accepting the license agreement, I am met with this error:

"You may not run this installer as root user"

I am using an active directory account on a Linux box (64-bit Ubuntu 8.04) which allows sudo access for a group that I am in.
Reply With Quote
  #2 (permalink)  
Old 11-25-2008, 02:38 PM
Zimbra Employee
 
Posts: 627
Default

basically the installer checks to see whether uid == 0 (root)
Reply With Quote
  #3 (permalink)  
Old 11-25-2008, 02:43 PM
Junior Member
 
Posts: 5
Default

Quote:
Originally Posted by jmhe View Post
basically the installer checks to see whether uid == 0 (root)
Running 'id' shows that my uid is 11181. Could you be a bit more specific on where it checks the uid or perhaps if it checks any groups that I may be in?
Reply With Quote
  #4 (permalink)  
Old 11-25-2008, 02:54 PM
Zimbra Employee
 
Posts: 627
Default

during the initial setup phrase, the installer calls "com.sun.security.auth.module.UnixSystem.getUid()" . sounds like it's returning an effective id.

who's the owner of the installer file itself? does it have setuid attr?
Reply With Quote
  #5 (permalink)  
Old 11-25-2008, 03:01 PM
Junior Member
 
Posts: 5
Default

Quote:
Originally Posted by jmhe View Post
during the initial setup phrase, the installer calls "com.sun.security.auth.module.UnixSystem.getUid()" . sounds like it's returning an effective id.

who's the owner of the installer file itself? does it have setuid attr?
Code:
richard@box:~/Desktop$ ls -lah zdesktop_0_91_build_1344_linux_i686.sh 
-rwxr-xr-x 1 richard domain users 51M 2008-11-25 13:46 zdesktop_0_91_build_1344_linux_i686.sh
Reply With Quote
  #6 (permalink)  
Old 11-25-2008, 03:36 PM
Zimbra Employee
 
Posts: 627
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
  #7 (permalink)  
Old 12-01-2008, 07:27 AM
Junior Member
 
Posts: 5
Default

The code correctly returns my uid, 11181.
Reply With Quote
  #8 (permalink)  
Old 03-27-2009, 11:13 AM
Starter Member
 
Posts: 1
Default Same problem

I have the same problem with Fedora 10. We use a central LDAP server to host all of our user accounts. When I install with my LDAP account, I always get the error: "You may not run this installer as root user or member of root group.". When I use a local account, I am able to install correctly.

Looking at the UID of the previous poster, (and knowing that it is an active directory account), we seem to have the same error. This will prevent my company from using this software completely.
Thanks,
Shea Lutton
Reply With Quote
  #9 (permalink)  
Old 03-27-2009, 11:34 AM
Zimbra Employee
 
Posts: 627
Default

ah, no wonder we could not reproduce this problem - we have been using local accounts.

i've opened a bug on this issue. Bug 36643 – Can not install with active sync account on Unix

you may sign up a bugzilla account (bugzilla.zimbra.com) and get yourself cc'ed on this bug.



Quote:
Originally Posted by shealutton View Post
I have the same problem with Fedora 10. We use a central LDAP server to host all of our user accounts. When I install with my LDAP account, I always get the error: "You may not run this installer as root user or member of root group.". When I use a local account, I am able to install correctly.

Looking at the UID of the previous poster, (and knowing that it is an active directory account), we seem to have the same error. This will prevent my company from using this software completely.
Thanks,
Shea Lutton
Reply With Quote
  #10 (permalink)  
Old 08-11-2009, 01:32 PM
Junior Member
 
Posts: 5
Default

The problem lied in an incorrectly configured /etc/nsswitch.conf. I came across it due to several firefox plugins printing error messages similar to Zimbra.

Old config:

passwd: compat winbind
group: compat winbind
shadow: compat
...

New config:

passwd: compat files ldap winbind
group: compat files ldap winbind
shadow: compat files ldap
...
Reply With Quote
Reply


Thread Tools
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0