Tags:
create new tag
, view all tags

Question

When I save a change, the history is not being saved. I ran the testenv script and daw the following:

User: system Note: Your CGI scripts are executing as this user. Warning: Since your CGI script is not running as user nobody, you need to change the locks in the *,v RCS files of the TWiki distribution from nobody to system. Otherwise, changes to topics will not be logged by RCS. Fix: If needed, relock all the rcs files to user system

I tried running the "relock" link but about half way through it seems to get stuck in an infinite loop.

My specs are:

Windows 2000 Pro SP4 Cygwin Apache

Can anyone helpshed some light on this?

Please let me know if you need any other info.

Steven

Environment

TWiki version: TWikiRelease02Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Windows 2000 Pro
Web server: Apache 1.3.33
Perl version: 5.8.6
Client OS: Windows 2000 Pro
Web Browser: Netscape 7.x, Firefox
Categories:  

-- TWikiGuest - 03 Sep 2005

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

I am not familiar with setup on Windows, but if relock you could try a manual way. See " Set permissions manually" at TWikiInstallationGuide#Step_3_Set_File_Permissions

-- PeterThoeny - 03 Sep 2005

Wow - thanks Peter. ! I can't believe that you responded (I feel honored).

I tried:

Alternatively, run this in your shell: cd twiki/data
% find . -name \*,v -exec perl -pi~ -e '$. <= 10 && s/nobody:/www-data:/ ' {} \;
This will create *,v~ backup files which you should remove after verification:
find . -name \*,v~ -exec rm -f {} \;
%

But it doesn't seem to do anything other than create a copy of my ,t files. Do you know what that line is supposed to do? (My PERL skills are nearly non-existent).

Thanks...

-- TWikiGuest - 03 Sep 2005

In your case you need to change the lock user from nobody to system. Here is the command:

find . -name \*,v -exec perl -pi~ -e '$. <= 10 && s/nobody:/system:/ ' {} \;
However, I am not sure if this is correct; the Cygwin shell might behave differently, the command might need to be tweaked a bit. Someone else familiar with Cygwin can help out.

Here is what it is supposed to happen:

  • find all .txt,v files (e.g. all RCS files)
  • for each file:
    • run perl, and
    • for the first 10 lines, search text nobody: and replace it with text system:
    • save the .txt,v file and create a .txt,v~ backup file

-- PeterThoeny - 03 Sep 2005

I became annoyed with Cygwin and Perl ... I used HTML-Kit from Chami.com to batch search and replace and changed all the nobody: to system:

So far, it's working. I have HTML-Kit set for "Unix" line mode.

-- TsuDhoNimh - 29 Sep 2005

 
Topic revision: r7 - 2005-09-29 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by PerlIdeas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.