Path: csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'yet.': 0.03; 'schema': 0.05; 'subject:password': 0.05; 'permissions': 0.07; 'cc:addr :python-list': 0.09; 'postgres': 0.09; 'subject:skip:a 10': 0.09; 'python': 0.10; 'accordingly.': 0.13; 'appropriate': 0.14; "skip:' 30": 0.15; 'above?': 0.16; 'commas,': 0.16; 'distinct': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'helps!': 0.16; 'manage.py': 0.16; 'settings.py': 0.16; 'subject:failed': 0.16; 'sudo': 0.16; 'wrote:': 0.16; 'archive': 0.18; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'permission': 0.20; 'denied': 0.22; 'am,': 0.23; 'select': 0.23; 'skip:( 40': 0.23; 'tables': 0.23; 'this:': 0.23; 'tried': 0.24; 'header:In-Reply-To:1': 0.24; "doesn't": 0.26; 'command': 0.26; 'chris': 0.26; 'error': 0.27; 'fri,': 0.27; 'message- id:@mail.gmail.com': 0.27; 'regular': 0.29; 'archives': 0.29; 'separated': 0.29; 'role': 0.32; 'possibly': 0.32; 'changed': 0.33; 'file': 0.34; 'list': 0.34; 'received:google.com': 0.35; 'so,': 0.35; 'replace': 0.35; 'skip:i 20': 0.36; 'should': 0.36; 'created': 0.36; 'subject:: ': 0.37; 'really': 0.37; 'some': 0.40; 'your': 0.60; 'hope': 0.61; 'user,': 0.67; 'jul': 0.72; 'chrisa': 0.84; 'database:': 0.84; 'to:none': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=f3qZBuz8A0/G6d10XFVJgSV8yn1zz439JlbZYzuZBhg=; b=DEqYjAUbQTin08xp+oKSqXaTafYNs4IUsPesJLINGpZsTXFMIHG5hdQmCW48+yHsOj K9oosLePfazY4MqhP/+02c90O9IXSAJDl6HgYgudU5GB7ykJqz0Xb4fa5hcAmUl5FX/C VytF8ZRfmabjGlColkUjwtO9LNZL8A/HZolYizYiGTS5FcCKsBBJX2gYw2ASnzg1V9TN 4Rmwtv3PPyjz7Tab54g9xp6DIuLFa6PZ++wYOUVHWvP4Mc79qFWdZ6cCFWHwKJgbhbGq x2sEqacWwKpyB8l9VqvAP/P06GAYC7WtlHSsBmj4lCfXhn7iBDtJuDh9eUNKFdfhJNve yrYA== MIME-Version: 1.0 X-Received: by 10.50.134.196 with SMTP id pm4mr6905803igb.6.1437090817186; Thu, 16 Jul 2015 16:53:37 -0700 (PDT) In-Reply-To: <55A83F93.4030403@verizon.net> References: <55A694AB.2020408@verizon.net> <55A83F93.4030403@verizon.net> Date: Fri, 17 Jul 2015 09:53:37 +1000 Subject: Re: password authentication failed From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 39 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1437090820 news.xs4all.nl 2870 [2001:888:2000:d::a6]:57787 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:93973 On Fri, Jul 17, 2015 at 9:34 AM, Gary Roach wrote: > On 07/15/2015 11:25 AM, Chris Angelico wrote: > >> You should then be able to create a regular user, and grant >> appropriate permissions: >> >> postgres=# create user archives password >> 'traded-links-linguistics-informal'; >> CREATE ROLE >> postgres=# grant all on database archivedb to archives; >> GRANT > > I really appreciate the help Chris. I created a user archive with password > 'xxxxxx' and changed the settings.py file accordingly. When I tried python > manage.py migrate I got the following error with it's traceback: > > (archivedb)root@supercrunch:~/archivedb# python manage.py migrate > [chomp] > django.db.utils.ProgrammingError: permission denied for relation > django_migrations This suggests that your new user doesn't have permissions set yet. Did you do the grant command as listed above? If so, you may have to also do this: $ sudo sudo -u postgres psql archivedb postgres=# grant all on all tables in schema X to archives; Replace X with the name of the database schema you use - possibly "public" or some other user name. You can list multiple schema names, separated by commas, if you need to. To list all schemas in the database: select distinct table_schema from information_schema.tables; Hope that helps! ChrisA