X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/56e81e80009bf4f73d20810aa3a73d16e2115648..ad98c6d5439d658ad291f5c2a41cf56dcef18e97:/doc/rcs/git/discussion.mdwn?ds=sidebyside diff --git a/doc/rcs/git/discussion.mdwn b/doc/rcs/git/discussion.mdwn index 403a92e92..92f630fc7 100644 --- a/doc/rcs/git/discussion.mdwn +++ b/doc/rcs/git/discussion.mdwn @@ -84,8 +84,20 @@ I think it would be a good thing if the various git pages where somehow unified. # Does 'push' from the shallow clones work for you? git-clone and git-fetch explicitly state it doesn't... +------- + ## Permissions for web users and local users editing and creating pages What is the right permissions setup for a situation where both web and local users will be editing and creatingt pages? My usage is this: I have a repository /srv/git/wiki.git chowned to me:apache with 775/664 permissions recursively (where 'me' is my account and the ikiwiki administrator), a /srv/www/ikisrc chowned to apache:apache, and a /srv/www/html/wiki chowned to apache:apache. As is, I can commit to the wiki.git repo (because it is owned by me) and web users can commit to it as well (because the group also has write access) what happens when I create a new page from either of those sources? For example, the apache user running ikiwiki.cgi would create /srv/www/ikisrc/something.mdwn, commit and push it to /srv/git/wiki.git, but that new object is owned by apache:apache. If I then try to commit a change to something.mdwn from a cloned repo sitting on my laptop, for example, will the commit not fail because apache created the files? Does that mean that apache:apache should just own everything, and I should only commit through that user (via git:// protocol only, maybe, or ssh as apache instead of myself)? For some reason, my head can't quite wrap itself around the whole permissions issue. Thanks. --mrled + +> Ikiwiki is designed so that you don't have to worry about this kind of permissions issue. +> Instead you can just configure the ikiwiki.cgi, in the setup file, to be suid to your +> user. Then there's no need to let the web server's user modify files at all. --[[Joey]] + + +## using a local wiki to preview changes: an srcdir needed? +I have read the hints about using a local wiki to preview changes, but I haven't understood: is it assumed that I should also have a separate "srcdir" for this local preview-wiki (as it is done for the main wiki site), or I could point the local ikiwiki's "srcdir" to the working dir? Can something bad happen if I do this? I guess no, because--as I see it--the reason to have 2 repos for the main site was only enabling pushing to it, so it's a peculiarity of git, and not a requirement for a clean functioning of ikiwiki. + +Ok, probably, I have answered my question myself, but I'll let this comment stay here, if someone else will be tinking about the same issue. --Ivan Z.