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

I'm using Rsync to backup an Ubuntu Server server. I'm getting a lot of permission denied messages. Is there a command I can use to see exactly what directories were denied? I could scroll back up through all the files, but that would take forever. Any help would be greatly appreciated.

share|improve this question
i think you have asked the same question on server fault… .There some user have given good solution for it – Mughil Dec 31 '11 at 19:19
up vote 1 down vote accepted

We'll need a bit more details. When are permissions denied and what do you want to achieve?

If I presumed right and it's denied when you try to upload files I would presume you can allow permissions to an RSync group to prevent it.

share|improve this answer
Thanks. It seems as if access is denied because I do not have root access on the server being backed up. I am using the following command: sudo rsync -av ubuntu@*******:/ /media/backup1/ubuntubackup. I figured out how to see where access was denied. Now, I am wondering how to get root access to my Ubuntu Server server, via Rsync. Once I log in through Rsync, I do not have the option to issue a sudo command. I understand that I can configure the Rsync daemon, instead of going through SSH, but I was wondering if there was a way to do it through SSH with Ubuntu. – Arthur Dec 31 '11 at 19:57
I'm not an Rsync expert but it looks like the -e "ssh -l root" parameter from the other suggestion does that. – Beanow Dec 31 '11 at 21:24

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.