Results 1 to 4 of 4

Thread: list active accounts ?

  1. #1
    padraig's Avatar
    padraig is offline Elite Member
    Join Date
    Jul 2006
    Location
    ireland
    Posts
    388
    Rep Power
    9

    Cool list active accounts ?

    the command #su - zimbra -c 'zmprov -l gaa' will list all accounts active & locked

    is there a command to list just active accounts ?

    great weather in IRELAND! our first summer in YEARS Yellow weather alert issued as highs of 30 degrees forecast - Environmental News | The Irish Times - Thu, Jul 18, 2013
    Thanks For any replies,
    p.

  2. #2
    ccelis5215 is offline Elite Member
    Join Date
    Jun 2011
    Location
    Caracas Venezuela
    Posts
    461
    Rep Power
    4

    Default

    hi padraig,

    Quote Originally Posted by padraig View Post
    the command #su - zimbra -c 'zmprov -l gaa' will list all accounts active & locked

    is there a command to list just active accounts ?

    This may work for you

    Code:
    su - zimbra -c 'zmaccts|grep active|grep @|cut -d" " -f1'
    ccelis

  3. #3
    federico.bertola's Avatar
    federico.bertola is online now Special Member
    Join Date
    Jul 2006
    Location
    Verona, Italy
    Posts
    153
    Rep Power
    8

    Default

    Hi all,

    I just add my 2 cents, there is a little issue with `zmacts`, its output is limited to 36 characters for the account name, so I suggest to use the SearchAccount command of zmprov:
    Code:
    zmprov -l sa "(zimbraAccountStatus=active)"
    I hope this helps you.
    Federico Bertola
    CTO @ StudioStorti

  4. #4
    ccelis5215 is offline Elite Member
    Join Date
    Jun 2011
    Location
    Caracas Venezuela
    Posts
    461
    Rep Power
    4

    Default

    Quote Originally Posted by federico.bertola View Post
    Hi all,

    I just add my 2 cents, there is a little issue with `zmacts`, its output is limited to 36 characters for the account name, so I suggest to use the SearchAccount command of zmprov:
    Code:
    zmprov -l sa "(zimbraAccountStatus=active)"
    You're right.

    Thanks.

    ccelis

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Active directory export accounts
    By DanyJo in forum Administrators
    Replies: 0
    Last Post: 03-21-2013, 06:41 AM
  2. Export accounts to active directory
    By thsalex in forum Administrators
    Replies: 0
    Last Post: 02-01-2013, 01:07 PM
  3. New Zimbra Accounts via Active Directory
    By eatickets in forum Administrators
    Replies: 1
    Last Post: 08-10-2011, 12:22 PM
  4. New Zimbra Accounts via Active Directory
    By eatickets in forum Installation
    Replies: 0
    Last Post: 08-10-2011, 11:59 AM
  5. Retrieving list of Active Accounts
    By Flancer in forum Administrators
    Replies: 4
    Last Post: 12-06-2010, 12:15 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
  •