Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to do I solve the access permission problem for any folders in Ubuntu??

I am currently trying to copy a folder from one Ubuntu to another Ubuntu machine using "scp" command.

scp -r foldername ipaddress_of_other_machine:directorypath

It shows like this:

scp: permission denied.
share|improve this question

Try doing it as root. You might need to name the user at the target system, too, if it is not the same one.

sudo scp -r <directory> <user>@<IP>:<directory>

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.