Tags:
create new tag
view all tags

Question

What is the best way to disable edits on a TWiki (for example, in the period running up to a maintenance shutdown)? I guess you could brute-force it by hiding/renaming the edit and attach scripts but I'd like to give my users a more elegant failure.

Options I came up with in a 5 minute think included (in rough order of effort):

  • Rename the edit and attach scripts to hide them
  • Use an Apache Redirect directive to send the user to a static HTML error page.
  • Create a new oops template and write new scripts to launch these pages on attempted access to the two scripts

What do other sites do in this situation?

Thanks Gareth

Environment

TWiki version: TWikiRelease01Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Fedora Core 2
Web server: Apache
Perl version: 5.8.0
Client OS:  
Web Browser:  
Categories: Deployment

-- GarethEdwards - 18 Nov 2004

Answer

I've never been in the situation, but I think your option #2 is the simplest. Just set up a normal TWikiPage that states that you're doing maintenance, and use .htaccess to catch clicks on any edit link/URL.

-- TorbenGB - 19 Nov 2004

We use a much simpler way to do this:

  1. > In TwikiPreferences
    1. > Use the BROADCASTMESSAGE variable to set an announcement of the impending "change freeze"
    2. > Set ALLOWWEBCHANGE to the TWikiAdminGroup. Make sure that you are included in this group.
    3. > Update FINALPREFERENCES to include ALLOWWEBCHANGE which means that only the accounts listed in AdminGroup may make any changes to any web.

If you suspect that someone has specifically allowed editing via ALLOWTOPICCHANGE then you can override this as well.

We've found this method much simpler as everything remains within TWiki.

-- SteveRJones - 22 Nov 2004

BTW, SamHasler answered a similar question in HowToDenyAccessToAllUsersAndAllGroupInaWeb

-- SteveRJones - 22 Nov 2004

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2004-11-22 - SteveRJones
 
  • 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.