title: scp permission denied in /tmp directory
body: <p>When I copy a file using scp from a remote location to the /tmp/ directory in local machine, it is successful. However, when I copy another file using scp from the same machine(i.e. remote and local machines are same), I am getting the 'Permission denied' error.</p>
  
  <p><code>scp user@host-b:/usr/U91/host-b/trace/server_console_host-b.trc /tmp</code> is successful.</p>
  
  <p><code>scp user@host-a:/usr/U91/host-a/trace/server_console_host-a.trc /tmp</code> fails with error: <code>/tmp/server_console_host-a.trc: Permission denied</code></p>
  
  <p>Even normal copy fails:
  <code>cp /usr/U91/host-a/trace/server_console_host-a.trc /tmp/
  cp: cannot create regular file ‘/tmp/server_console_host-a.trc’: Permission denied</code></p>
  
  <p>I am unable to understand why scp from remote is successful while others fail. </p>
  
  <p>Note: All the above commands are executed in host-a machine.</p>