Results 1 to 6 of 6

Thread: Force share without Accept Email

  1. #1
    quietas is offline Elite Member
    Join Date
    Aug 2007
    Location
    Anchorage, AK
    Posts
    376
    Rep Power
    7

    Default Force share without Accept Email

    I've been wondering if there is a clean way to create a calendar, doc folder, or whatnot, and as admin share that to all users without them having to click accept or even getting an email.

    Basically I want all of my users to have access to a company wide calendar and documents. When I add a new user, I'd also like them to have access.

    I know there you can add a user to a distribution list, but will new users get the share automatically or do I have to reshare it to the list. If so, would all the other users get the email also?
    Culley
    Mail | Dell 2950III | 2x Quad Core 5420 | 8gb RAM | 6x 146gb SAS RAID 0+1 | Red Hat 5.3 | Zimbra 6.0.10 Network Edition
    Test | VMware ESXi Whitebox | Phenom II Black 3.2ghz | 12gb RAM | 6x 1tb SATA RAID 0+1 | CentOS 5.4 | FOSS, Not in use now

  2. #2
    p24t is offline Moderator
    Join Date
    Mar 2007
    Location
    Austin
    Posts
    441
    Rep Power
    8

    Default

    I don't know of a way to do that from the GUI, but you can use zmmailbox and mount things however you want.

    I script my user creation so I can automatically add shares etc to them.

  3. #3
    quietas is offline Elite Member
    Join Date
    Aug 2007
    Location
    Anchorage, AK
    Posts
    376
    Rep Power
    7

    Default

    I don't suppose there are any easy to use dirt simple one line scripts? My boss is not Linux CLI friendly and I am lazy =)
    Culley
    Mail | Dell 2950III | 2x Quad Core 5420 | 8gb RAM | 6x 146gb SAS RAID 0+1 | Red Hat 5.3 | Zimbra 6.0.10 Network Edition
    Test | VMware ESXi Whitebox | Phenom II Black 3.2ghz | 12gb RAM | 6x 1tb SATA RAID 0+1 | CentOS 5.4 | FOSS, Not in use now

  4. #4
    chauvetp is offline Elite Member
    Join Date
    Apr 2008
    Location
    New Paltz, NY
    Posts
    300
    Rep Power
    7

    Default

    The command below will do what you want to. Its only a one line script if the given variables don't change;

    zmmailbox -z -m destination-account@zmail.servername createMountpoint /MountName source-account@zmail.servername /SourceFolder

    So if you have an account 'admin@zimbra.servername' and you want to share a folder on it named "Stuff" to 'user1@zimbra.servername' (and call it SharedStuff on that account)

    zmmailbox -z -m user1@zimbra.servername createMountpoint /SharedStuff admin@zimbra.servername /Stuff

    I use it to push a shared address book as part of my account creation scripts.

  5. #5
    p24t is offline Moderator
    Join Date
    Mar 2007
    Location
    Austin
    Posts
    441
    Rep Power
    8

    Default

    If you want a script to create users, here's one for you. Run it as the zimbra user, and you need Ruby installed. (sorry, that's what I use)

    Just run it, and pass 4 arguments: username, password, first name, last name

    Code:
    #!/usr/bin/ruby
    
    user = ARGV[0]
    pass = ARGV[1]
    fname = ARGV[2]
    lname = ARGV[3]
    
    system "zmprov ca #{user}@domain.com #{pass} givenName #{fname} sn #{lname} displayName '#{fname} #{lname}'"
    system "zmmailbox -z -m #{user}@domain.com createMountpoint --color blue --view appointment \"/Company Calendar\" company@domain.com \"/Calendar\""
    system "zmmailbox -z -m #{user}@domain.com createMountpoint --color blue --view contact \"/Company Contacts\" company@domain.com \"/Contacts\""
    system "zmprov addDistributionListMember company_wide@domain.com #{user}@domain.com"
    The first line creates the account, the second mounts a shared calendar, third does a shared contact list, and the last adds it to a distribution list. Obviously tailor it for your setup. I have an account called "company" that handles the shared items. The mounts are called "Company Calendar" etc, and just "Calendar" on the account doing the sharing.

  6. #6
    quietas is offline Elite Member
    Join Date
    Aug 2007
    Location
    Anchorage, AK
    Posts
    376
    Rep Power
    7

    Default

    p24t, that looks like that would work well.

    I wonder if it might be possible to build that into an admin extension or zimlet? It seems like passing 4 variables entered in boxes would be easy enough. Basically I'm trying to make this process as stupid proof as possible.
    Culley
    Mail | Dell 2950III | 2x Quad Core 5420 | 8gb RAM | 6x 146gb SAS RAID 0+1 | Red Hat 5.3 | Zimbra 6.0.10 Network Edition
    Test | VMware ESXi Whitebox | Phenom II Black 3.2ghz | 12gb RAM | 6x 1tb SATA RAID 0+1 | CentOS 5.4 | FOSS, Not in use now

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. no option to accept share
    By linuxese in forum Users
    Replies: 5
    Last Post: 05-01-2009, 09:46 AM
  2. Problem with Mail Server - Need help!
    By joeleo in forum Installation
    Replies: 2
    Last Post: 03-04-2008, 12:03 PM
  3. need advice on configuring zimbra to work with fax server
    By pheonix1t in forum Administrators
    Replies: 0
    Last Post: 07-11-2007, 07:46 PM
  4. upgrade to 4.0.3 antispam does'nt work
    By lucanannipieri in forum Administrators
    Replies: 14
    Last Post: 11-07-2006, 03:56 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
  •