Run scp as ubuntu@ copying to Ubuntu system with correct permissions?

Posted by Heinrich Schmetterling on Super User See other posts from Super User or by Heinrich Schmetterling
Published on 2010-02-04T20:31:14Z Indexed on 2010/03/12 5:07 UTC
Read the original article Hit count: 275

Filed under:
|
|

I ssh into a ubuntu box with username "ubuntu" and I can become root without entering a password via "sudo su". How can I scp files onto this box using the ubuntu@ username? It does not allow me to do so using root@. The error is:

scp: /etc/...: Permission denied

I can do this same task in rsync by using --rsync-path="sudo rsync" for example.

© Super User or respective owner

Related posts about ubuntu

Related posts about scp