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
--
TWikiGuest - 03 Sep 2005
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is 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
--
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