The current implementation for the SshScpFile methods canRead, canWrite and canExecute are incomplete and incorrect.
If the user is not the owner of the file, the current implementations return incorrect values.
It's better to:
- check whether the user == owner, and in that case look at the first section of the lsResults,
- check whether the user is in the group that owns the file, then check the second section
- else check the third section