if [ ! -e $sourcesDir ]
 then
    mkdir $sourcesDir
+   chown $loginUserName:$loginGroupName $sourcesDir   
 fi
 
 if [ ! -e $binDir ]
 then
    mkdir $binDir
+   chown $loginUserName:$loginGroupName $binDir     
 fi
 
 
 # - add line 'bash $installPrefixThird/share/creatools_third_party_library_config.sh' (with accurate value for ???)
 echo installPrefixThird=$installPrefixThird >> $ETC_BASHRC
 echo '[ -f "$installPrefixThird/share/creatools_third_party_library_config.sh" ] &&  source $installPrefixThird/share/creatools_third_party_library_config.sh' >> $ETC_BASHRC 
+
+
+
+ chown -R $loginUserName:$loginGroupName $generationdir
+