Loading...
 
Architecture / Installation

Architecture / Installation


Renamed admin - now locked out

posts: 4 Australia

Well I've managed to do something stupid. Unfortunately I'm so new to the system I don't know how to fix it.

I went into the User Admin facility and changed the name of admin to mungbeans and also changed the password. I haven't made any other changes to users or permissions. I now find that when I log in using the new name and password that I am a standard user and have no way to fix it up.

I have full access to the database and underlying files. Help reversing this would be appreciated. I'd hate to have to wipe the database and start over unless I have to.

Cheers
Mungbeans

posts: 4 Australia

As usual, defining the problem takes me halfway there to solving it.

I created a file addadmin.php with the following syntax:

^^

Worked a treat.

Now - its there a way to rename the admin without this hassle?

posts: 3665 United States

>
> Now - its there a way to rename the admin without this hassle?


No. But you can:

  1. Create a new Admin group.
  2. Assign the admin permissions to this group.
  3. Add your username to this group.


Please see this FAQ for details.

HTH,


-Rick
Coming soon: TikiWiki for Dummies Smarties — A beginner's guide to ))TikiWiki((.


posts: 4 Australia

Here is the contents of addadmin.php - sorry I don't know how to display code yet:

include_once('tiki-setup.php');
$userlib->add_user('admin', 'admin', 'admins_email@gmail.com');


posts: 4 Australia

> And there is now a warning about renaming "admin" user.

Very good idea!


Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting