r3 - 15 Apr 2003 - 07:58:50 - RichardDonkinYou are here: TWiki >  Codev Web > TWikiInstallationGuide > TWikiInstallationGuideRcsLockHolderChangeIssue
Tags:
, create new tag
TWikiInstallationGuide recommends, for systems where httpd does not run as user nobody, changing the user who has the RCS files locked from user nobody to the httpd's true user name via a comand like:

cd twiki/data
perl -pi~ -e 's/nobody:/www-data:/' */*,v

Unfortunately, this also changes text inside the RCS files, not just the lock holder. In fact, it changes the text of the wiki page itself. And, of course, it changes it inside the RCS files, so you cannot easily clean up.

I do not know of an easy way to accomplish this using real RCS commands that do not involve such possibly dangerous access to the raw ,v files.

A better pattern might be a regexp looking for the "; strict;" locking.

-- AndyGlew - 02 Apr 2003

Good idea. Updated TWikiInstallationGuide doc:

perl -pi~ -e 's/nobody(\:[0-9\.]+[\;\s]+strict\;)/www-data$1/' *,v

-- PeterThoeny - 15 Apr 2003

This was fixed when writing WindowsInstallCookbook by limiting the Perl s/// command to the first 10 lines of the RCS file, which means it only matches the locking line even if there's a line in the topic that accidentally matches this line.

-- RichardDonkin - 15 Apr 2003

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r3 < r2 < r1 | More topic actions
Codev.TWikiInstallationGuideRcsLockHolderChangeIssue moved from TWiki.MinorProblemWithTwikiInstallationGuideRcsLockHolderChange on 15 Apr 2003 - 05:50 by PeterThoeny - put it back
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo