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

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

book

Article ID: 296125

calendar_today

Updated On:

Products

VMware Tanzu Greenplum

Issue/Introduction

Symptoms:

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.
=>

Environment


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.

 

Resolution

  • 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.

Example:

export HOME=/tmp
gpssh -f <hostfile>