Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате
Форум программистов > Программное обеспечение под *NIX системы > logfile Permisison denied


Автор: cecilb 5.8.2009, 11:02
При запуске севера в фоновом режиме, он не может открыть файл для записи:

Код

postgres@biglinsrv:/usr/lib/postgresql/8.3/bin$ postgres /usr/local/pgsql/data/ > logfile
-su: logfile: Permission denied
postgres@biglinsrv:/usr/lib/postgresql/8.3/bin$ ls -l /usr/local/pgsql/data/
total 72
drwx------ 5 postgres postgres  4096 2009-08-05 03:07 base
drwx------ 2 postgres postgres  4096 2009-08-05 03:57 global
-rwxrwxrwx 1 postgres postgres     0 2009-08-05 03:56 logfile
drwx------ 2 postgres postgres  4096 2009-08-05 03:07 pg_clog
-rw------- 1 postgres postgres  3429 2009-08-05 03:07 pg_hba.conf
-rw------- 1 postgres postgres  1460 2009-08-05 03:07 pg_ident.conf
drwx------ 4 postgres postgres  4096 2009-08-05 03:07 pg_multixact
drwx------ 2 postgres postgres  4096 2009-08-05 03:07 pg_subtrans
drwx------ 2 postgres postgres  4096 2009-08-05 03:07 pg_tblspc
drwx------ 2 postgres postgres  4096 2009-08-05 03:07 pg_twophase
-rw------- 1 postgres postgres     4 2009-08-05 03:07 PG_VERSION
drwx------ 3 postgres postgres  4096 2009-08-05 03:07 pg_xlog
-rw------- 1 postgres postgres 16592 2009-08-05 03:07 postgresql.conf
-rw------- 1 postgres postgres    67 2009-08-05 03:57 postmaster.opts
-rw------- 1 postgres postgres    48 2009-08-05 03:57 postmaster.pid


Владелец файла - postgres, права доступа даны. В чем может быть дело?
Система Debian Lenny.

Автор: nickless 6.8.2009, 21:41
А на /usr/local/pgsql/data/ какие права стоят?

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)