Problem running 'login' Could not secure .jazz-scm.

Hi,
While trying to login to RTC using the scm.sh triggering from Jenkins am getting the below error.
but am able to login successfully through putty with the same command.
Problem running 'login':
Could not secure .jazz-scm. Failed to set permissions on directory /home/jenkins/.jazz-scm <title></title>