Results 1 to 10 of 10

Thread: [SOLVED] Installer thinks I'm root

  1. #1
    richard.o is offline Junior Member
    Join Date
    Nov 2008
    Posts
    5
    Rep Power
    6

    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.

  2. #2
    jmhe is offline Zimbra Employee
    Join Date
    Aug 2008
    Posts
    830
    Rep Power
    7

    Default

    basically the installer checks to see whether uid == 0 (root)

  3. #3
    richard.o is offline Junior Member
    Join Date
    Nov 2008
    Posts
    5
    Rep Power
    6

    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?

  4. #4
    jmhe is offline Zimbra Employee
    Join Date
    Aug 2008
    Posts
    830
    Rep Power
    7

    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?

  5. #5
    richard.o is offline Junior Member
    Join Date
    Nov 2008
    Posts
    5
    Rep Power
    6

    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

  6. #6
    jmhe is offline Zimbra Employee
    Join Date
    Aug 2008
    Posts
    830
    Rep Power
    7

    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

  7. #7
    richard.o is offline Junior Member
    Join Date
    Nov 2008
    Posts
    5
    Rep Power
    6

    Default

    The code correctly returns my uid, 11181.

  8. #8
    shealutton is offline Starter Member
    Join Date
    Mar 2009
    Posts
    1
    Rep Power
    6

    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

  9. #9
    jmhe is offline Zimbra Employee
    Join Date
    Aug 2008
    Posts
    830
    Rep Power
    7

    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

  10. #10
    richard.o is offline Junior Member
    Join Date
    Nov 2008
    Posts
    5
    Rep Power
    6

    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
    ...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Build Zimbra..a little problem...
    By Abdelmonam Kouka in forum Developers
    Replies: 33
    Last Post: 05-22-2008, 05:10 AM
  2. slapd message error
    By smoke in forum Administrators
    Replies: 7
    Last Post: 04-27-2008, 03:23 PM
  3. Replies: 7
    Last Post: 03-27-2008, 08:03 AM
  4. [SOLVED] Not able to receive or send mail
    By joeleo in forum Installation
    Replies: 22
    Last Post: 10-12-2007, 02:25 PM
  5. Login does not appear
    By alexz in forum Administrators
    Replies: 10
    Last Post: 04-18-2006, 06:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •