Tags:
create new tag
view all tags

Question

I installed Twiki, it kind of worked. I can edit some pages and save. However, I can not register new user. The error message I got on IE6 is:

TWiki detected an internal error - please check your TWiki logs and webserver logs for more information.

RCS: failed to create file path: Permission denied

In the error.log of Apache, it has this line:

| 22 Mar 2006 - 23:12 | RCS: failed to create file /twiki/data/Main/TWikiUsers.txt: Permission denied at c:/twiki/lib/TWiki/Store/RcsFile.pm line 722.

I checked the code, the "RcsFile.pm line 722" means saving a file.

I checked TWikiUsers.txt, it had 555 privilege and belonged to system. I used "chmod 777 -R *" at /twiki to modify all the files under /twiki (too much? :>)

It worked, I could register one new user without any problem. But, when I tried to register the second new user, I got the same error message as before.

I went to TWikiUsers.txt, it changed to 555 again!.

Who modified it? TWiki program? Why did it not change it back?

Could anybody help me here?

Environment

TWiki version: TWiki-4.0.1.zip
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Win2k server
Web server: apache_1.3.34-win32-x86-no_src.exe
Perl version: ActivePerl-5.8.8.816-MSWin32-x86-255195.msi
Client OS: XP pro with SP2
Web Browser: IE6
Categories: Permissions, Registration

-- EdwinMa - 22 Mar 2006

Answer

ALERT! 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.

Make sure all directories and files at and below twiki/data and twiki/pub are owned by the webserver user. The configure script tells you what the webserver user is.

-- PeterThoeny - 23 Mar 2006

Thanks for your answer. I have all files under /twiki owned by system, which I got from configure: userid. But still have this issue. I just don't understand why the privilege of TWikiUsers.txt changed from 777 to 555 automatically

-- EdwinMa - 23 Mar 2006

Actually I used "chown -R system *" at /twiki

-- EdwinMa - 23 Mar 2006

Here is what I got in configure:

CGI user userid = system groups = [Cannot identify groups - no Cygwin 'id' or 'sh' command on path]

-- EdwinMa - 23 Mar 2006

Sorry, I am not familiar with Cygwin to help debug the groups problem. Hopefully someone else will help.

-- PeterThoeny - 23 Mar 2006

Thanks anyway. I used "chgrp system -R *" at /twiki. it works now. I am not sure whether it is safe or not, any comment?

-- EdwinMa - 23 Mar 2006

I only changed the data directory to my web user to fix this error (chown -R apache data/). I don't think it's a good idea to give the web user permissions to all of the TWiki directories.

-- AaronHooley - 30 Jan 2007

Edit | Attach | Watch | Print version | History: r8 < r7 < r6 < r5 < r4 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r8 - 2007-01-30 - AaronHooley
 
  • 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.