initdb的权限被拒绝错误(PostgreSQL)

时间:2016-11-21 09:13:53

标签: postgresql permissions

我试图在没有root访问权限的情况下在Debian上设置PostgreSQL 9.3。在this guide之后,我成功编译并将其安装到/home/.local中。但是,当我运行CountDowntimer时,它会显示以下内容。

/home/.local/bin/initdb -D /home/.local/data/

值得注意的是,在运行此命令之前,数据文件夹的权限为fbbgsa@web1:~/.local$ initdb -D ~/.local/data The files belonging to this database system will be owned by user "fbbgsa". This user must also own the server process. The database cluster will be initialized with locale "en_US.UTF-8". The default database encoding has accordingly been set to "UTF8". The default text search configuration will be set to "english". Data page checksums are disabled. fixing permissions on existing directory /home/.local/data ... ok creating subdirectories ... ok selecting default max_connections ... 10 selecting default shared_buffers ... 400kB creating configuration files ... ok creating template1 database in /home/.local/data/base/1 ... FATAL: shmat(id=18808835) failed: Permission denied child process exited with exit code 1 initdb: removing contents of data directory "/home/.local/data" ,但之后似乎已更改为drwxr-xr-x

0 个答案:

没有答案