5

I have been locked out of cacti after setting guest_user=admin :( So I am trying to recover my access

cacti=# select * from settings;
           name            | value
-------------------------------------------
 auth_method               | 1
 guest_user                | admin

When I try to run the query:

UPDATE settings SET guest_user = 'No User' WHERE guest_user = 'admin';

I get the error:

cacti=# UPDATE settings SET guest_user = 'No User' WHERE guest_user = 'admin';
ERROR:  column "guest_user" does not exist
LINE 1: UPDATE settings SET guest_user = 'No User' WHERE guest_user ...

Database is postgres and I am new to it. (its the first time I use it :-) )

2
  • 4
    try UPDATE settings SET value = 'No User' WHERE name = 'guest_user'; because the column names are name and value, Commented Jul 7, 2012 at 23:32
  • @fvu: You should post that as an answer so it can be accepted. Commented Jul 8, 2012 at 19:55

1 Answer 1

13

Try

UPDATE settings SET value = 'No User' WHERE name = 'guest_user'; 

because the column names are name and value

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.