SOS! Could not change directory to "/root": Insufficient permissions

Use this category only if you have build GVM from sources or if you use packages provided by a 3rdparty repository.

Please read About the Greenbone Source Edition (GSE) and About GVM Architecture before posting.

When posting you should provide information about your environment using the following template:

GVM versions

gsad: (‘gsad --version’)
gvmd: (‘gvmd --(20.8.0.3~kali1)’)
openvas-scanner: (‘openvas --version’, in older GVM versions < 11: ‘openvassd --version’)【 openvas-scanner (20.8.1-0kali1)。 】
gvm-libs:

Environment

Operating system:kali
Kernel:liunx (‘uname -a’)
Installation method / source:apt install gvm

Executing “gvm-setup”
/usr/bin/gvm-setup: 第 22 行:[: =:需要一元表达式
/usr/bin/gvm-setup: 第 27 行:[: -ne:需要一元表达式
Creating openvas-scanner’s certificate files

[>] Creating database
could not change directory to “/root”: 权限不够
createuser: error: could not connect to database template1: 无法联接到服务器: 没有那个文件或目录
服务器是否在本地运行并且在 Unix 域套接字
"/var/run/postgresql/.s.PGSQL.5432"上准备接受联接?
could not change directory to “/root”: 权限不够
createdb: error: could not connect to database template1: 无法联接到服务器: 没有那个文件或目录
服务器是否在本地运行并且在 Unix 域套接字
"/var/run/postgresql/.s.PGSQL.5432"上准备接受联接?
could not change directory to “/root”: 权限不够
psql: error: 无法联接到服务器: 没有那个文件或目录
服务器是否在本地运行并且在 Unix 域套接字
"/var/run/postgresql/.s.PGSQL.5432"上准备接受联接?
could not change directory to “/root”: 权限不够
psql: error: 无法联接到服务器: 没有那个文件或目录
服务器是否在本地运行并且在 Unix 域套接字
"/var/run/postgresql/.s.PGSQL.5432"上准备接受联接?
could not change directory to “/root”: 权限不够
psql: error: 无法联接到服务器: 没有那个文件或目录
服务器是否在本地运行并且在 Unix 域套接字
"/var/run/postgresql/.s.PGSQL.5432"上准备接受联接?
could not change directory to “/root”: 权限不够
psql: error: 无法联接到服务器: 没有那个文件或目录
服务器是否在本地运行并且在 Unix 域套接字
"/var/run/postgresql/.s.PGSQL.5432"上准备接受联接?
[>] Migrating database

(gvmd:17068): md manage-WARNING **: 16:32:28.258: sql_open: PQconnectStart to ‘gvmd’ failed: 无法联接到服务器: 没有那个文件或目录
服务器是否在本地运行并且在 Unix 域套接字
"/var/run/postgresql/.s.PGSQL.5432"上准备接受联接?

(gvmd:17068): md manage-WARNING **: 16:32:28.259: init_manage_process: sql_open failed
[>] Checking for admin user
[] Creating user admin for gvm
[
] Please note the generated admin password
[]
could not change directory to “/root”: 权限不够
psql: error: 无法联接到服务器: 没有那个文件或目录
服务器是否在本地运行并且在 Unix 域套接字
"/var/run/postgresql/.s.PGSQL.5432"上准备接受联接?
[
] Define Feed Import Owner

(gvmd:17092): md main-CRITICAL **: 16:32:28.478: gvmd: g_option_context_parse: 缺少 --value 的参数

Please note that neither the gvm-setup nor the Kali GVM packages are provided or maintained by Greenbone.

Please raise an issue about that at the Kali issue tracker here: https://bugs.kali.org

1 Like