Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

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 Search this Thread Display Modes
  #1 (permalink)  
Old 04-16-2011, 12:48 AM
Loyal Member
 
Posts: 95
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
Reply With Quote
  #2 (permalink)  
Old 04-16-2011, 07:33 AM
raj raj is offline
Moderator
 
Posts: 768
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
Reply With Quote
  #3 (permalink)  
Old 04-16-2011, 11:34 AM
Outstanding Member
 
Posts: 717
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
Reply With Quote
  #4 (permalink)  
Old 04-17-2011, 11:26 PM
Loyal Member
 
Posts: 95
Default

sudo , I think it will again ask for root password to run zimbra command for non-root user
any other solution ?
Reply With Quote
  #5 (permalink)  
Old 04-17-2011, 11:37 PM
Outstanding Member
 
Posts: 717
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

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

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.