Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Force shared folders with several users

  1. #1
    Join Date
    Apr 2008
    Location
    Lomé/Togo
    Posts
    34
    Rep Power
    7

    Default Force shared folders with several users

    Hi there,

    I'm back again with zimbra folders sharing.
    The following is supposed to share the Calendar folder with the user "other"

    zmmailbox -z -m myaccount@example.com mfg /Calendar account other@example.com rwidx

    This time i want to force shared folders with several users. How can i do that?
    Many thanks.

  2. #2
    Join Date
    Jul 2007
    Location
    Baltimore
    Posts
    1,649
    Rep Power
    11

    Default

    either execute that command several times, once for each user who needs to see the calendar, or setup a distribution list containing the people you want to share that with and have the calendar shared to that distribution list.

  3. #3
    Join Date
    Apr 2008
    Location
    Lomé/Togo
    Posts
    34
    Rep Power
    7

    Default

    Thank u Bdial...

    FOr the distribution, it's not working.
    I have a distributioin list of tens users called "distrib".
    When i access the shared folder properties, it shows "distrib" as the user with whom the folder is shared. But when i connect with one of the distrib list user, no way to see any shared folder!!

    Do i end up writing a batch script repeating the same command with all of my users?

  4. #4
    Join Date
    Jul 2007
    Location
    Baltimore
    Posts
    1,649
    Rep Power
    11

    Default

    did you modify the command to say group distrib@example.com instead of account distrib@example.com ?

    What does the output of the following command say?

    zmmailbox -z -m myaccount@example.com gfg /Calendar

  5. #5
    Join Date
    Apr 2008
    Location
    Lomé/Togo
    Posts
    34
    Rep Power
    7

    Default

    It says:

    Permissions Type Display
    ----------- ------ -------
    rwidx group distrib@example.com

    But i've used "account" instead of "group". Changing back to "group" did'nt fix the pb.
    Is there something i'm missing??

    Thanks bdial

  6. #6
    Join Date
    Jul 2007
    Location
    Baltimore
    Posts
    1,649
    Rep Power
    11

    Default

    what happens if you try to do the mount via command line. Pick a user that is in the distribution list distrib@example.com.

    zmmailbox -z -m person@example.com cm /Test myaccount@example.com /Calendar

  7. #7
    Join Date
    Apr 2008
    Location
    Lomé/Togo
    Posts
    34
    Rep Power
    7

    Default

    The mount is working perfectly with single user! that user can access the shared folder.

    So, maybe the right question should be: how to mount a shared folder for a group of user?

    Thanks bdial!

  8. #8
    Join Date
    Jul 2007
    Location
    Baltimore
    Posts
    1,649
    Rep Power
    11

    Default

    that you would have to do for every user in the distribution list manually.

  9. #9
    Join Date
    Apr 2008
    Location
    Lomé/Togo
    Posts
    34
    Rep Power
    7

    Default

    Humm... tedious task though!
    Will try to see how to write a bash script which will get a list of users as input file and automagically mount shared folders for them...

    Will keep you posted...

  10. #10
    Join Date
    Oct 2007
    Location
    Columbus, OH
    Posts
    70
    Rep Power
    7

    Default

    I have been using the following script to create a calendar hierarchy of "others" calendars, so you will get /Others/group/user1, /Others/group/user2, etc. Perhaps it will help.
    Code:
    #!/bin/bash
    domain="yourdomain.com"
    GROUPFILE="groupfile"
    USERFILE="userstoadd"
    for x in `cat $GROUPFILE`
    do
    	GRP=`echo $x|cut -d: -f1`
    	USR=`echo $x|cut -d: -f2`
    	echo "sm $USR"
    	for y in `cat $USERFILE`
    	do
    		echo "mfg /Calendar account $y@$domain rwidx"
    	done
    done
    
    for a in `cat $USERFILE`
    do
    	echo "sm $a"
    	echo "cf -V appointment /Others"
    	for b in `cat $GROUPFILE`
    	do
    		GRP=`echo $b|cut -d: -f1`
    		COL=`echo $b|cut -d: -f3`
    		echo "cf -c $COL -V appointment /Others/$GRP"
    	done
    	for c in `cat $GROUPFILE`
    	do
    		GRP=`echo $c|cut -d: -f1`
    	        USR=`echo $c|cut -d: -f2`
    		COL=`echo $c|cut -d: -f3`
    		echo "cm -c $COL -V appointment /Others/$GRP/$USR $USR@$domain /Calendar"
    	done
    done
    The file that gets in $USERFILE is simply a list of usernames to which you wish to create the "others" calendar group. The $GROUPFILE is a colon-delimited file that looks like
    Code:
    username:groupheading:color
    So if you had "bob:accounting:red", you would get an /Others/accounting/bob calendar that was shared from bob@domain.com.

    When you run the script, it is best to redirect the output to a file, and then:
    Code:
    zmmailbox -z < redirectedfile
    This was a hack I threw together one weekend to accomplish a mass calendar sharing hierarchy that needed setup in our environment. It has worked for me, but it sort of a pain to maintain, if someone gets added to the calendar or someone changes departments. I have another script that is basically the same as this with the addition of a "rf /others" at the beginning so it goes through and just removes the "other" and then create the whole hierarchy over again.

Similar Threads

  1. Replies: 5
    Last Post: 04-13-2012, 07:37 AM
  2. Replies: 1
    Last Post: 09-15-2011, 11:01 PM
  3. Zimbra fails after working for 2 weeks
    By Linsys in forum Administrators
    Replies: 10
    Last Post: 10-07-2008, 12:42 AM
  4. [SOLVED] Force shared folders
    By nahmsath in forum Administrators
    Replies: 7
    Last Post: 07-23-2008, 04:43 AM
  5. Zimbra and shared mail folders
    By batfastad in forum Migration
    Replies: 3
    Last Post: 06-19-2008, 02:14 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
  •