create new tag
, view all tags

SID-01716: How to change admin password?

Status: Answered Answered TWiki version: 5.1.3 Perl version: 5.10
Category: Server OS: CentOs Last update: 1 hour ago

Hi Team,

I trying to change admin password by configuration setting, it doesn't work. It throws following error,

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

cannot change user passwords using TWiki::BaseUserMapping

Thanks, Madhuri

-- Madhuri Yevale - 2013-05-31

Discussion and Answer

You need to delete the password entry in the twiki/lib/LocalSite.cfg file. Run configure, it will tell you the details.

-- Peter Thoeny - 2013-05-31

It shows Password changed message but doesn't work. Should it take time to load new password in file?

-- Madhuri Yevale - 2013-05-31

Specifically, delete the $TWiki::cfg{Password} line in twiki/lib/LocalSite.cfg and run configure again. Make sure twiki/lib/ is owned by the webserver user.

-- Peter Thoeny - 2013-05-31

Yes.. its working.. Thanks!!!

-- Madhuri Yevale - 2013-06-03

Hi there,

I am in the same boat. I set configure password and go use it for admin login, but it says password is invalid. I have gone, and deleted the line $TWiki::cfg{Password} from LocalSite.cfg.

drwxr-xr-x 4 apache apache 4096 Mar 29 07:35 lib

-- Nick Patel - 2016-03-29

To add more, when I set the configure password, it doesnt even add line $TWiki::cfg{Password} in LocalSite.cfg file. May be a permissions problem ?

-- Nick Patel - 2016-03-29

Very possible a permission issue. Make sure LocalSite.cfg is owned and writable by your webserver user.

-- Peter Thoeny - 2016-03-31

Please confirm what is meant by 'run configure' in the first answer, and what should it tell you the details of?

-- Thomas Daly - 2018-04-29

When you have deleted the password entry in lib/LocalSite.cfg as suggested, the configure script prompts you for a new admin password and saves this (encrypted) as the new value for $TWiki::cfg{Password}.

-- Harald Jörg - 2018-04-29

Thank you. Do you mean run the script '/twiki/bin/configure' in a web browser, and when it says 'Enter the configuration password. Your Password:' it actually means 'Choose a new password'?

-- Thomas Daly - 2018-04-29

I'm sorry, but no. This prompt means that you have a password in your config file (twiki/lib/LocalSite.cfg) and you need to enter it to proceed. Only when there's no password in your configuration, the same URL shows a screen which allows you to reset (or initially set after a fresh installation) the password.

-- Harald Jörg - 2018-04-29

-- Thomas Daly - 2018-04-29

      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 Answered
Title How to change admin password?

TWiki version 5.1.3
Server OS CentOs
Web server Apache
Perl version 5.10
Browser & version Firefox 20
Edit | Attach | Watch | Print version | History: r12 < r11 < r10 < r9 < r8 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r12 - 2018-04-29 - ThomasDaly
  • 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-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.