Skip site navigation (1) Skip section navigation (2)

Re: PGACCESS Error Relative Path @ export table

From: "Andreas Kretzer" <andi(at)kretzer-berlin(dot)de>
To: <pgsql-interfaces(at)postgresql(dot)org>
Subject: Re: PGACCESS Error Relative Path @ export table
Date: 2002-07-31 18:19:01
Message-ID: 200207312019010310.016C6A0C@radove.kretzer.local (view raw, whole thread or download thread mbox)
Lists: pgsql-interfaces
On 31.07.2002 at 12:55 John L. Turner wrote:

>Andreas Kretzer, wanted me to know...
>> On 30.07.2002 at 17:45 John L. Turner wrote:
>> >Hi:
>> >
>> >Newbe trying to learn pgaccess' import / export of tables
>> >
>> >"Relative Path not allowed for servers side copy command"
>> >
>> >Version downloaded today (Tuesday 30 July 02) was 0.98.8
>> >( even though the/pgaccess/lib/mainlib.tcl says 0.98.7 )
>> >
>> >I opened a test database, created with the command
>> >psql mytestdb <  /pgaccess/demo/formdemo.sql
>> >
>> >Open Data base with no local host given,
>> >AND with my local host IP #
>> >
>> >I did start postmaster with -i
>> >
>> >Then From Main pgaccess Menu: Database | Export Table
>> >Tried to export the table phonebook, received above ERROR
>> >
>> >I entered the path /home/jlt/phonebook.txt
>> >ERROR received.
>> Are you sure that the error was the same? It might have been
>> 'access denied'. Try /tmp/phonebook.txt
>> >Also tested ~/phonebook.txt
>> >Also tested
>> Hmm... It should have been possible (except it is explicitly
>> catched by pgaccess. But of course the home directory
>> would have been that of the postgres backend processes'
>> user.
>> Hope this helps
>> Andreas
>Seem to have found the answer ( at least ONE answer that worked)
>Turns out that the only directory that I have permission to write to is:
>I started the postmaster -1  as user  postgres

This is probably the home directory of the user postgres.
But you should have access to /tmp too! But be sure that
there is no file of the name you choose generated by another
user. Files in /tmp are usually protected by a bit in the
directory attributes of to prevent other users from deleting
or changing files even if the directory itself has write permissions
for everybody.


>SO that leads to the bottom line Question:
>How does a user in postgresql obtain permissions to other directories ?
>Thanks to anyone for a kick in pants to find the answer.
>P.S. Why didn't the original message just say permissions not set for X
>user ?
>Regards to all that answered before,
>John Turner
>"Just because you do not know the answer
>does not mean that someone else does"
>Stephen J. Gould, {rip}
>---------------------------(end of broadcast)---------------------------
>TIP 6: Have you searched our list archives?

In response to

pgsql-interfaces by date

Next:From: C. MajDate: 2002-07-31 19:46:47
Subject: Re: PGACCESS Error Relative Path @ export table
Previous:From: John L. TurnerDate: 2002-07-31 18:05:36
Subject: Re: PGACCESS Error Relative Path @ export table

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group