emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Richard Riley <rileyrg@googlemail.com>
To: Greg Troxel <gdt@ir.bbn.com>
Cc: Emacs-orgmode mailing list <emacs-orgmode@gnu.org>
Subject: Re: mobile org problems
Date: Wed, 02 Mar 2011 17:08:28 +0100	[thread overview]
Message-ID: <aksjv5pksj.fsf@news.eternal-september.org> (raw)
In-Reply-To: <rmivd01zeyd.fsf@fnord.ir.bbn.com> (Greg Troxel's message of "Wed, 02 Mar 2011 11:04:26 -0500")

Greg Troxel <gdt@ir.bbn.com> 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?

  parent reply	other threads:[~2011-03-02 16:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-01 22:22 mobile org problems Richard Riley
2011-03-02 13:09 ` Richard Riley
2011-03-02 16:04 ` Greg Troxel
2011-03-02 16:08   ` Greg Troxel
2011-03-02 16:08   ` Richard Riley [this message]
2011-03-02 16:10     ` Greg Troxel
2011-03-02 16:10     ` Greg Troxel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aksjv5pksj.fsf@news.eternal-september.org \
    --to=rileyrg@googlemail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=gdt@ir.bbn.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).