Tags:
create new tag
view all tags
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 | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2003-04-15 - RichardDonkin
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.