From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Riley Subject: Re: mobile org problems Date: Wed, 02 Mar 2011 17:08:28 +0100 Message-ID: References: <1ntyfm4h19.fsf@news.eternal-september.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=41926 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Puoax-0008FT-Bb for emacs-orgmode@gnu.org; Wed, 02 Mar 2011 11:08:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Puoaw-000187-64 for emacs-orgmode@gnu.org; Wed, 02 Mar 2011 11:08:11 -0500 Received: from [85.183.18.158] (port=40714 helo=asus1015pem) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Puoav-00017t-Um for emacs-orgmode@gnu.org; Wed, 02 Mar 2011 11:08:10 -0500 In-Reply-To: (Greg Troxel's message of "Wed, 02 Mar 2011 11:04:26 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Greg Troxel Cc: Emacs-orgmode mailing list Greg Troxel writes: > I use MobileOrg with webdav, both remote over ssh/tramp, and locally > (two separate setups). > > On the ssh one: > > (setq org-mobile-directory "/ssh:foo.example.org:/usr/home/gdt/ORG") > (setq org-mobile-inbox-for-pull > (concat org-directory "/from-mobile.org")) > (setq org-mobile-use-encryption t) > (setq org-mobile-encryption-password "password") > > But, the tricky part is dealing with permissions. > > Basically, the webdav world seems to want you to only access it via > webdav, and joint filesystem and webdav access is troublesome. > Yup. This was my issue too. > My remote directory is (on NetBSD, which I think inherits gid even > without the SysV-style sgid directory): > > drwxrws--- 2 gdt www 512 Mar 2 09:08 ORG/ > > and I run this script from cron every 5 minutes: > > #!/bin/sh > cd /home/gdt/ORG > > find . -type f \! -group www | while read f; do > echo -n "GROUP "; ls -l $f > chgrp www $f > done > find . -type f -name mobileorg\* \! -perm -220 | while read f; do > echo -n "MODE "; ls -l $f > chmod g+w $f > done Aha. I didnt think it could work "out of the box". Thanks for the confirmation. > > An alternative would be to have a webdav fs on the machine with the org > files, and to use that to write to the webdav area. > I'm not sure I parse that properly. Do you mean mounted and owned as www-data/www via shfs or something?