Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #98411

Re: Problems connecting to PostgreSQL

From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Subject Re: Problems connecting to PostgreSQL
Date 2015-11-08 10:54 +1100
Message-ID <mailman.113.1446940500.16136.python-list@python.org> (permalink)
References <87wptt5qg4.fsf@Equus.decebal.nl>

Show all headers | View raw


On Sun, Nov 8, 2015 at 10:40 AM, Cecil Westerhof <Cecil@decebal.nl> wrote:
> I used:
>     sudo -u postgres createuser stressTest
> this create the role, but also gave:
>     could not change directory to "/root": Permission denied
> and I did not get the questions.
>

You might need to become root before you can become another user - it
depends on your sudoers file. Try this:

sudo sudo -u postgres createuser stressTest

Note that this isn't a Python question, but a PostgreSQL and system
administration one. You may find good results by searching the web for
your issue and omitting all reference to Python.

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Problems connecting to PostgreSQL Cecil Westerhof <Cecil@decebal.nl> - 2015-11-08 00:40 +0100
  Re: Problems connecting to PostgreSQL Chris Angelico <rosuav@gmail.com> - 2015-11-08 10:54 +1100
  Re: Problems connecting to PostgreSQL Chris Warrick <kwpolska@gmail.com> - 2015-11-08 09:36 +0100
    Re: Problems connecting to PostgreSQL Cecil Westerhof <Cecil@decebal.nl> - 2015-11-09 13:59 +0100

csiph-web