I have a web app that uses a PosgreSQL database.

To use the database I use the following command:

sudo -u postgres psql

I think, this is very basic, so I'm looking for something like:

  • not all users even if the use sudo can access PostgreSQL (user with limited sudo)
  • users that have read only access(not referring to database type users) but OS users regaring what they can do with the files

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.