create new tag
, view all tags

SID-02225: Deleting Users From Twiki

Status: Asked Asked TWiki version: 6.0.2 Perl version:
Category: CategoryAccessControl Server OS: Last update: 1 year ago

I am trying to delete users from Twiki and I found the below steps Step 1 is stright forward but step 3-4 docent have no detail on how to do the deletion?

1. Delete the user from the .htpasswd file

2. Delete the user entry in TWikiUsers (what is TWikiUsers and how do you access it)

3. Remove the user from all groups (how to access this all groups)

4. Delete the user's page ("Main.username") (how? where is this located?)

-- Adam Khan - 2016-07-12

Discussion and Answer

Deleting users from an active TWiki isn't done very often, because the contributions by these users should be properly attributed even if the users are no longer active - but I guess you are talking about users which have been added during the testing phase.

If you have access to your .htpasswd file (you need shell access for that), then you also have access to the rest:

  • Main.TWikiUsers is a usual topic in your TWiki, you can just edit it with TWiki as a member of the administrators group. If you do it that way, the topic's history will be properly updated. With shell access, You can also directly edit the file data/Main/TWikiUsers.txt in your TWiki and delete the line containing the user. Such a change is hidden from TWiki's visible history.
  • In Main.TWikiGroups, you see all groups of you TWiki (again, assuming you have the default user management in place). Just look where the user you want to delete shows up, and edit the groups. On the shell, a grep UserName data/Main/*Group.txt should do the trick as well, if you replace UserName by the user you want to delete.
  • The user page is in the Main web, where all users are listed in Main.TWikiUsers. You can delete the users with TWiki's methods (using "more topic actions" in the "Edit" menu, then "Delete"), or again from the shell delete UserName.txt and UserName.txt,v.

-- Harald Jörg - 2016-07-12

      Change status to:
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.
Status Asked
Title Deleting Users From Twiki
SupportCategory CategoryAccessControl
TWiki version 6.0.2
Server OS

Web server

Perl version

Browser & version

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2016-07-12 - HaraldJoerg
  • 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-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.