From f210cd9d6ff974d70ec3201f80c265a4b8108c89 Mon Sep 17 00:00:00 2001 From: duettwe <61516027+duettwe@users.noreply.github.com> Date: Thu, 21 Mar 2024 09:40:37 -0500 Subject: [PATCH] Update XnatCheckLogin --- bin/Xnat_tools/XnatCheckLogin | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/Xnat_tools/XnatCheckLogin b/bin/Xnat_tools/XnatCheckLogin index 061c87bc..10fef602 100755 --- a/bin/Xnat_tools/XnatCheckLogin +++ b/bin/Xnat_tools/XnatCheckLogin @@ -51,7 +51,10 @@ def check_settings(host): dax_netrc = DAX_Netrc() user, pwd = dax_netrc.get_login(host) except DaxNetrcError: - print('ERROR:login not found, set in ~/.netrc') + print('ERROR FOUND - PLEASE CHECK THE FOLLOWING') + print(' 1. Login not found, set in ~/.netrc') + print(' 2. File permissions on the .netrc file MUST be user-only') + print(' - chmod go-rwx ~/.netrc') sys.exit(1) print('Checking connection:host={}, user={}'.format(host, user))