From 61dd670bb4b950f96002ea529235ac341c21a12e Mon Sep 17 00:00:00 2001 From: imarom Date: Wed, 13 Jan 2016 11:11:33 -0500 Subject: fixed the permission on the console directory (now creates with 777) --- scripts/automation/trex_control_plane/console/trex_console.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/automation/trex_control_plane/console/trex_console.py b/scripts/automation/trex_control_plane/console/trex_console.py index 8c823e8c..450feb6a 100755 --- a/scripts/automation/trex_control_plane/console/trex_console.py +++ b/scripts/automation/trex_control_plane/console/trex_console.py @@ -66,7 +66,14 @@ class TRexGeneralCmd(cmd.Cmd): def save_console_history(self): if not os.path.exists(self._history_file_dir): - os.makedirs(self._history_file_dir) + # make the directory available for every user + try: + original_umask = os.umask(0) + os.makedirs(self._history_file_dir, mode = 0777) + finally: + os.umask(original_umask) + + # os.mknod(self._history_file) readline.write_history_file(self._history_file) return -- cgit