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 in the forums, please register and review our posting policy & tips. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-04-2008, 04:32 AM
Active Member
 
Posts: 34
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.
Reply With Quote
  #2 (permalink)  
Old 09-04-2008, 04:57 AM
Moderator
 
Posts: 660
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.
Reply With Quote
  #3 (permalink)  
Old 09-04-2008, 05:27 AM
Active Member
 
Posts: 34
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?
Reply With Quote
  #4 (permalink)  
Old 09-04-2008, 05:36 AM
Moderator
 
Posts: 660
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
Reply With Quote
  #5 (permalink)  
Old 09-04-2008, 07:43 AM
Active Member
 
Posts: 34
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
Reply With Quote
  #6 (permalink)  
Old 09-04-2008, 09:07 AM
Moderator
 
Posts: 660
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
Reply With Quote
  #7 (permalink)  
Old 09-04-2008, 11:32 AM
Active Member
 
Posts: 34
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!
Reply With Quote
  #8 (permalink)  
Old 09-04-2008, 11:42 AM
Moderator
 
Posts: 660
Default

that you would have to do for every user in the distribution list manually.
Reply With Quote
  #9 (permalink)  
Old 09-04-2008, 11:56 AM
Active Member
 
Posts: 34
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...
Reply With Quote
  #10 (permalink)  
Old 09-04-2008, 07:29 PM
Trained Alumni
 
Posts: 39
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.
Reply With Quote
Reply


Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Zimbra fails after working for 2 weeks Linsys Administrators 10 10-07-2008 12:42 AM
[SOLVED] Search not working as expected - Shared folders not included in basic search gantscha Administrators 4 07-24-2008 01:02 AM
[SOLVED] Force shared folders nahmsath Administrators 7 07-23-2008 04:43 AM
Folder Backup - How to get a clean list of all folders but the shared ones gantscha Administrators 0 07-23-2008 02:07 AM
Zimbra and shared mail folders batfastad Migration 3 06-19-2008 02:14 PM

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

sourceforge.net



 

Search Engine Optimization by vBSEO 3.1.0