9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Federico G. Benavento" <benavento@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] Problems with informal wiki.
Date: Thu, 31 Dec 2009 17:38:02 -0200	[thread overview]
Message-ID: <32d987d50912311138y12520f47rc8d7be69e1424fe2@mail.gmail.com> (raw)
In-Reply-To: <4B3CF2E9.3060202@surferz.net>

I think you need the mount in /lib/namespace.httpd
since for security reasons httpd becomes none
and with a limited namespace

On Thu, Dec 31, 2009 at 4:52 PM, Marina Brown <marina@surferz.net> wrote:
> Hi All:
>
> I have been setting up the informal wiki on a vx32 maching running
> on my desktop.
>
> I just set up a sample wiki according to the instructions on the plan9
> wiki and i see the following behavior.
>
> I am able to edit and make changes to existing  wiki pages.
>
> When i try to create a new page it creates a new directory for it in
> /mnt/wiki but the pages are not copied into it. I get this error message
> trying to create a page 'foobar'
>
> ----------
> Object not found
> The object /wiki/sample/foobar/werror.html does not exist on this server.
>
> errstr: '/usr/web/wiki/sample/foobar' file does not exist
> uri host:
> header host: localhost:7000
> actual host: who cares
> ---------------
>
> looking in /mnt/wiki i see /mnt/wiki/foobar but there are no files
> under it.
>
> here are a few directory listing since it does seem to be a permission
> problem.
>
> term% ls -l /mnt/wiki
> d-r-xr-xr-x M 37 wiki wiki 0 Dec 31 13:48 /mnt/wiki/foo
> d-r-xr-xr-x M 37 wiki wiki 0 Dec 31 13:48 /mnt/wiki/foobar
> --rw-rw-rw- M 37 wiki wiki 0 Dec 31 13:48 /mnt/wiki/map
> --rw-rw-rw- M 37 wiki wiki 0 Dec 31 13:48 /mnt/wiki/new
> d-r-xr-xr-x M 37 wiki wiki 0 Dec 31 13:48 /mnt/wiki/plan_9_wiki
> d-r-xr-xr-x M 37 wiki wiki 0 Dec 31 13:48 /mnt/wiki/sandbox
> d-r-xr-xr-x M 37 wiki wiki 0 Dec 31 13:48 /mnt/wiki/supported_pc_hardware
> d-r-xr-xr-x M 37 wiki wiki 0 Dec 31 13:48 /mnt/wiki/test
> d-r-xr-xr-x M 37 wiki wiki 0 Dec 31 13:48 /mnt/wiki/test_page
> d-r-xr-xr-x M 37 wiki wiki 0 Dec 31 13:48 /mnt/wiki/wiki_syntax
>
> term% ls -l /usr/web/wiki/sample
> --rw-r--r-- M  2 marina marina 1382 Dec 30 08:11
> /usr/web/wiki/sample/create.html
> d-r-xr-xr-x M 47 wiki   wiki      0 Dec 31 13:49 /usr/web/wiki/sample/foo
> d-r-xr-xr-x M 47 wiki   wiki      0 Dec 31 13:49 /usr/web/wiki/sample/foobar
> --rw-rw-rw- M 47 wiki   wiki      0 Dec 31 13:49 /usr/web/wiki/sample/map
> --rw-rw-rw- M 47 wiki   wiki      0 Dec 31 13:49 /usr/web/wiki/sample/new
> d-r-xr-xr-x M 47 wiki   wiki      0 Dec 31 13:49
> /usr/web/wiki/sample/plan_9_wiki
> --rw-r--r-- M  2 marina marina 1715 Dec 30 08:10
> /usr/web/wiki/sample/power36.gif
> d-r-xr-xr-x M 47 wiki   wiki      0 Dec 31 13:49
> /usr/web/wiki/sample/sandbox
> d-r-xr-xr-x M 47 wiki   wiki      0 Dec 31 13:49
> /usr/web/wiki/sample/supported_pc_hardware
> d-r-xr-xr-x M 47 wiki   wiki      0 Dec 31 13:49 /usr/web/wiki/sample/test
> d-r-xr-xr-x M 47 wiki   wiki      0 Dec 31 13:49
> /usr/web/wiki/sample/test_page
> d-r-xr-xr-x M 47 wiki   wiki      0 Dec 31 13:49
> /usr/web/wiki/sample/wiki_syntax
> term%
>
> Here is the script i wrote to start the wiki and httpd.
>
> #!/bin/rc
>
> wikifs -p 666 -s wiki.sample  -a tcp!*!wiki /sys/lib/wiki
> mount -b /srv/wiki.sample /usr/web/wiki/sample
> ip/httpd/httpd -a tcp!*!7000
>
> Thanks in advance for help ;-)
>
> ---- Marina Brown
>
>



-- 
Federico G. Benavento



  reply	other threads:[~2009-12-31 19:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-31 18:52 Marina Brown
2009-12-31 19:38 ` Federico G. Benavento [this message]
2009-12-31 20:00   ` Marina Brown

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

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

  git send-email \
    --in-reply-to=32d987d50912311138y12520f47rc8d7be69e1424fe2@mail.gmail.com \
    --to=benavento@gmail.com \
    --cc=9fans@9fans.net \
    /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.
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 NNTP newsgroup(s).