Skip to content

Commit

Permalink
Merge pull request #440 from VUIIS/duettwe-xnatchecklogin-error-update
Browse files Browse the repository at this point in the history
Update XnatCheckLogin
  • Loading branch information
duettwe authored Mar 21, 2024
2 parents d15f17c + f210cd9 commit 1753694
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/Xnat_tools/XnatCheckLogin
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 1753694

Please sign in to comment.