Support history file permission when persisting history commands into file
Merge pull request #133 from Gonthim/eap6.1

Backport configuring history file permissions