Pivotal Knowledge Base

Follow

gpssh encounters "[WARN] Unable to write to gpssh history file: 'xxxx' . Please check permissions."

Problem

Connecting to host via gpssh encounters the below warning message

[gpadmin@mdw faisal]$ gpssh -f hosts
[WARN] Unable to write to gpssh history file: '/home/gpadmin/testing_via_root/.gshist'. Please check permissions.
=>

Cause

When gpssh is executed it attempts to read or create a .gshist file on that server where the gpssh command was executed, at the directory defined by the OS environment parameter $HOME.

.gshist file is used by the gpssh to gather the previous command history that was executed under gpssh prompt.

Solution

  • Make sure the permission on the directory defined by $HOME is readable / writeable by the user that executed the gpssh command
  • OR Change the $HOME environment parameter to some other directory where the user can read/write.

For Eg.s

export HOME=/tmp
gpssh -f <hostfile>

Comments

Powered by Zendesk