Problem with permissions on macos when i try to work in django shell

Im open shell with python manage.py shell, import model and try to make response to db (its remote) and have this problem:

connection to server at "192.168.0.110", port 5023 failed: could not open certificate file "/Users/zadro/Work/urrobot_back_end/config/extra/backdev.crt": Permission denied

If i make sudo su i have this problem:

OperationalError: connection to server at "192.168.0.110", port 5023 failed: private key file "/Users/zadro/Work/urrobot_back_end/config/extra/backdev.key" has group or world access; file must have permissions u=rw (0600) or less if owned by the current user, or permissions u=rw,g=r (0640) or less if owned by root

Than i make chmod 600 config/extra/ and restart shell. After this:

OperationalError: connection to server at "192.168.0.110", port 5023 failed: private key file "/Users/zadro/Work/urrobot_back_end/config/extra/backdev.key" has group or world access; file must have permissions u=rw (0600) or less if owned by the current user, or permissions u=rw,g=r (0640) or less if owned by root

How can i fix this?...

Back to Top