dbTalk Databases Forums  

PostgreSQL 9.0 in Ubuntu Linux

comp.databases.postgresql comp.databases.postgresql


Discuss PostgreSQL 9.0 in Ubuntu Linux in the comp.databases.postgresql forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Mladen Gogala
 
Posts: n/a

Default Re: PostgreSQL 9.0 in Ubuntu Linux - 08-14-2011 , 04:40 PM






On Sun, 14 Aug 2011 06:32:58 +0000, Fredrik Jonson wrote:

Quote:
Did you ask on the
mailinglist mentioned on
http://wiki.postgresql.org/wiki/RPM_Installation>?
No, I didn't. To tell the truth, I toned down my engagement with Postgres
in the recent months.



--
http://mgogala.byethost5.com

Reply With Quote
  #12  
Old   
Laurenz Albe
 
Posts: n/a

Default Re: PostgreSQL 9.0 in Ubuntu Linux - 08-22-2011 , 03:51 AM






gargoyle60 wrote:

Quote:
psql:/home/gary/PostgreSQL/9.0/data/gjd_data/Z_Build_DB_Linux.sql:48:
ERROR: could not set permissions on directory
"/home/gary/PostgreSQL/9.0/ data/gjd_data/gjd_sentinel_data": Permission
denied ...

Therein lies the problem.

I forgot to show the statment that is causing the problem:
CREATE TABLESPACE sentinel_data
OWNER sentinel
LOCATION E'/home/gary/PostgreSQL/9.0/data/gjd_data/gjd_sentinel_data';

From my directory listing I can see that the permissions for gjd_sentinel_data are drwxrwxrwx with
owner/group of postgres. On that basis I can't see why there is the problem.

I am wondering if it has something to do with the psql process running as, or owned by, user
postgres?
That error message is issued when chmod(2) fails.

You can try to do the same thing from the command line to
investigate the cause of the error:

Become user postgres (or the user under which the PostgreSQL
processes tun), then try

chmod 0700 /home/gary/PostgreSQL/9.0/data/gjd_data/gjd_sentinel_data

That should fail.

What do you get for "ls -ld /home/gary/PostgreSQL/9.0/data/gjd_data/gjd_sentinel_data"
when you run it as user postgres?

Yours,
Laurenz Albe

Reply With Quote
  #13  
Old   
gargoyle60
 
Posts: n/a

Default Re: PostgreSQL 9.0 in Ubuntu Linux - 08-22-2011 , 05:06 AM



On Mon, 22 Aug 2011 10:51:13 +0200, "Laurenz Albe" <invite (AT) spam (DOT) to.invalid> wrote:

Quote:
Become user postgres
Thanks, I eventually realised that I had to login/become user postgres to successfully chmod, being
root wasn't enough.

Reply With Quote
  #14  
Old   
Laurenz Albe
 
Posts: n/a

Default Re: PostgreSQL 9.0 in Ubuntu Linux - 08-22-2011 , 09:59 AM



gargoyle60 wrote:
Quote:
Become user postgres

Thanks, I eventually realised that I had to login/become user postgres to successfully chmod, being
root wasn't enough.
I don't understand.

Running this chmod command will not fix your problem.

If CREATE TABLESPACE fails with the error you report,
then the command should also fail on the command line.
This should help you find out what is wrong.

Yours,
Laurenz Albe

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.