Applying the attached patch to the extender script almost works. It chown to www-data for many of the installed files.
However, ancillary files such as foo,v and .changes still get written as root, and this eventually leads to problems (e.g., editing unrelated pages is impossible because of access problems with .changes). I've manually changed the ownership of some of those files. Running the installer as www-data doesn't work, because it lacks sufficient permissions. -- Ross Boylan wk: (415) 514-8146 185 Berry St #5700 [EMAIL PROTECTED] Dept of Epidemiology and Biostatistics fax: (415) 514-8150 University of California, San Francisco San Francisco, CA 94107-1739 hm: (415) 550-1062
*** /home/ross/download/twiki/extender.pl.txt Tue Nov 25 10:16:36 2008 --- /var/lib/twiki/tools/extender.pl Tue Nov 25 10:21:32 2008 *************** *** 843,846 **** --- 843,851 ---- chmod( oct($MANIFEST->{$file}), $target ) || print STDERR "WARNING: cannot set permissions on $target: $!\n"; + # RB change + my ($login,$pass,$uid,$gid) = getpwnam("www-data") + or die "www-data not in passwd file"; + chown $uid, $gid, $target; + } }