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 Display Modes
  #11 (permalink)  
Old 08-25-2009, 04:06 PM
Special Member
 
Posts: 141
Default

I'm trying to get a list of accounts WITHOUT an alias. I can list all accounts, and list accounts with aliases (with scripts in this forum post), but anyone know of a way to compare those two lists to create one?
Reply With Quote
  #12 (permalink)  
Old 09-15-2009, 02:08 PM
Special Member
 
Posts: 141
Default

Ok, now I'm trying to get a csv exported of 3 columns: e-mail, first name, last name. The closest I get is from:

zmprov gaa -v | grep -e name -e sn -e givenName | awk 'ORS=","' > all_accounts.csv

But there's a lot of extra "junk" in the output. Anyone know how to get what I'm looking for?
Reply With Quote
  #13 (permalink)  
Old 10-23-2009, 08:40 AM
Intermediate Member
 
Posts: 18
Default

Mike or anyone,

I'm having permission difficulties.
"zimbra:/Users/zimbra zimbra$ zmprov gdl pga@pubgroup.com > dist-list.txt
su: dist-list.txt: Permission denied"

I'm in the user "zimbra" directory?

Any assistance appreciated!
Reply With Quote
  #14 (permalink)  
Old 10-23-2009, 09:44 AM
Special Member
 
Posts: 141
Default

The "Zimbra directory" is owned by root, so you won't be able to put files in that folder as the user Zimbra. As the Zimbra user, run this:

mkdir ~/tmp
zmprov gdl pga@pubgroup.com > ~/tmp/dist-list.txt

Your file will be output to /opt/zimbra/tmp (on a default Linux Zimbra install).
Reply With Quote
  #15 (permalink)  
Old 10-23-2009, 09:50 AM
Intermediate Member
 
Posts: 18
Default

Blazeking,

Thanks for the quick reply. I am on an Mac OSX (10.4) server.

I get this when I run that command:
zimbra:/Users/zimbra zimbra$ mkdir ~/tmp
mkdir: /opt/zimbra/tmp: Permission denied

Obviously, I'm a newbie on the command line. Is there a specific directory I need to be when running this?
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