Results 1 to 5 of 5

Thread: is it possible to run "su - zimbra" by non-root user

  1. #1
    sadiq007 is offline Special Member
    Join Date
    May 2009
    Location
    INDIA
    Posts
    104
    Rep Power
    6

    Question is it possible to run "su - zimbra" by non-root user

    Hi,
    I just made a script using which a non-root user can create zimbra mail account using bellow command
    su -l -c 'zmprov ca '$username'@mydomain.com '$password' zimbraPassword MustChange TRUE ' zimbra

    but for that again it will ask root password...
    so is that any way so my non-root user can have rights to run zmprov command without root password ??
    Last edited by sadiq007; 04-18-2011 at 06:43 AM. Reason: change real domain name to fakeone

  2. #2
    raj's Avatar
    raj
    raj is offline Moderator
    Join Date
    Oct 2005
    Location
    USA, Canada and India
    Posts
    777
    Rep Power
    10

    Default

    well what you can try is use SOAP API of zimbra and small script from outside of zimbra you can achive many admin actions without Linux Machine password or login at all.
    you will require zimbra admin login though.

    Serach the fourms for scripts and wrappers for SOAP API

    Raj
    i2k2 Networks
    Dedicated & Shared Zimbra Hosting Provider

  3. #3
    Krishopper is offline Dedicated Member
    Join Date
    Dec 2006
    Location
    Minneapolis MN
    Posts
    777
    Rep Power
    9

    Default

    If you want employees to be able to use their own Linux accounts to do that, look up sudo on google. That will allow users to run commands without full access.
    01 Networks, LLC / Cybernetik.net
    Zimbra NE and OSS Cloud Hosting
    Shared Web Hosting
    Consulting Services

  4. #4
    sadiq007 is offline Special Member
    Join Date
    May 2009
    Location
    INDIA
    Posts
    104
    Rep Power
    6

    Default

    sudo , I think it will again ask for root password to run zimbra command for non-root user
    any other solution ?

  5. #5
    Krishopper is offline Dedicated Member
    Join Date
    Dec 2006
    Location
    Minneapolis MN
    Posts
    777
    Rep Power
    9

    Default

    Sudo will ask for the password of the user executing sudo. The whole purpose of sudo is to avoid giving out the root password. You can also disable password prompting all together if you wish.
    01 Networks, LLC / Cybernetik.net
    Zimbra NE and OSS Cloud Hosting
    Shared Web Hosting
    Consulting Services

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Ubuntu 10.04 64bit and ZCS 6.0.9 GA - World of pain
    By aseco in forum Administrators
    Replies: 41
    Last Post: 12-21-2010, 09:43 AM
  2. Did I miss something? (Zimbra GA 6.0.8 on Ubuntu 10.04)
    By vpetersson in forum Installation
    Replies: 2
    Last Post: 10-26-2010, 06:29 AM
  3. [SOLVED] PID services not running
    By raghuram1980 in forum Administrators
    Replies: 10
    Last Post: 10-09-2010, 09:24 AM
  4. Replies: 7
    Last Post: 03-27-2008, 08:03 AM
  5. [SOLVED] Not able to receive or send mail
    By joeleo in forum Installation
    Replies: 22
    Last Post: 10-12-2007, 02:25 PM

Posting Permissions

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