Re: lo_import permissions problem

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: lo_import permissions problem
Дата
Msg-id 27629.1133496752@sss.pgh.pa.us
обсуждение исходный текст
Ответ на lo_import permissions problem  ("essay182@gmail.com" <essay182@gmail.com>)
Ответы Re: lo_import permissions problem  ("essay182@gmail.com" <essay182@gmail.com>)
Список pgsql-general
"essay182@gmail.com" <essay182@gmail.com> writes:
> I have been trying to import a file into a table using lo_import and keep
> getting the error

> ERROR: could not open server file "/tmp/myfile": Permission denied

> The file is in /tmp so it is world readable and I made sure the file had the
> correct permissions by doing chmod 777. My user has super user privileges as
> well. I tried importing other files such as /etc/hosts as a test and this
> worked fine. I am running Gentoo linux with Postgres 8.0. Does anyone have
> any idea what the problem is and what I need to do to correct it?

Hm, are you sure that the /tmp directory has world execute permissions?

The other thought that comes to mind is that SELinux creates an entire
new level of reasons for permissions failures.  I have no idea whether
or not Gentoo has SELinux or runs it in enforcing mode by default ...

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: Scott Frankel
Дата:
Сообщение: Re: pg_restore error
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pg_restore error