Problems with PostgreSQL

HI, i got this error while i tried to login to postgres

sudo -i -u postgres
This account is currently not available.

when i add postgres:x:26:26:PostgreSQL Server:/var/lib/pgsql:/bin/bash to /etc/passwd
i got this error in systemctl status postgresql

postgres: could not access the server configuration file "/var/lib/pgsql/data/postgresql.conf": Permission denied

i follow the instructions of the Invidious
is there a way to solve it?


Seem like current username got Superuser, Create role, Create DB attrributes.
checked with sudo -u postgres psql and then \dg. if doesn’t run sudo -u postgres createuser --interactive and add current user with superuser

you need to know the user id of postgres, id -u postgres
and i got 30 instead of 26