Admin account botched

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
ktruex99
Posts: 1
Joined: Wed Jan 10, 2018 4:06 pm

Admin account botched

Post by ktruex99 »

So in attempts to locking down the "guest" account. I accidentally removed most access rights from from the "admin" account.

Any thoughts on how to return the Admin account rights back to default?
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Admin account botched

Post by netniV »

Assuming you are on 1.1.30, try the following code:

Code: Select all

php -r 'echo "Hash: ".password_hash('test',PASSWORD_DEFAULT)."\n";';
Hash: <hash>
mysql -u <cacti_db_user> -p <cacti_db_name> -e "REPLACE INTO user_auth VALUES (1,'admin','<hash>',0,'Administrator','','on','on','on','on','on','on',2,1,1,1,1,'on',-1,-1,'-1','',0,0,0);"
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests