[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] ikiwiki monotone support
From: |
Brian May |
Subject: |
Re: [Monotone-devel] ikiwiki monotone support |
Date: |
Sat, 19 Jan 2008 18:18:44 +1100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) |
>>>>> "Zack" == Zack Weinberg <address@hidden> writes:
Zack> If HOME="" it uses "" as the homedir (which may translate to "/" or to
Zack> "." depending on vagaries of path construction). That's probably a
Zack> bug, it should fall back to getpwuid() if HOME is the empty string,
Zack> not just if it's unset.
Now its changed to:
[Sat Jan 19 17:52:07 2008] [error] [client 192.168.200.251] mtn: misuse: no key
pair 'address@hidden' found in key store '/var/lib/monotone/.monotone/keys',
referer: http://wiki.microcomaustralia.com.au/wiki.cgi
While this is better then /root, I don't like things that change for
no apparent reason.
Any ideas where this path /var/lib/monotone is coming from?
It is the home directory for the monotone user, but this process
should be running as www-data.
I created the following wrapper script for the CGI script:
#!/bin/sh -ex
/home/microcomaustralia.com.au/wiki/wiki2.cgi
id
export
/home/microcomaustralia.com.au/wiki/wiki2.cgi is not setuid, and owned
by www-data.
The UID found by the above script is:
uid=33(www-data) gid=33(www-data) groups=33(www-data)
The environment doesn't mention HOME unless I change the apache
config, in which case the value is ignored.
Also I see:
louie:/home/microcomaustralia.com.au/wiki.src# cat _MTN/options
database "/var/lib/monotone/au.com.microcomaustralia.wiki.mtn"
branch "au.com.microcomaustralia.wiki"
key "address@hidden"
keydir "/root/.monotone/keys"
Does this mean I should be able to change keydir to change the path?
However that still doesn't explain where /var/lib/monotone is coming
from. Surely it wouldn't be using that database value?
--
Brian May <address@hidden>
Re: [Monotone-devel] ikiwiki monotone support, William Uther, 2008/01/13
Re: [Monotone-devel] ikiwiki monotone support, Brian May, 2008/01/19