Solved rsync Permission denied -Qt cross compile
-
on my way to cross compile using this https://wiki.qt.io/RaspberryPi2EGLFS
and using stretch latest version through Ubuntu 18only whenever I run this command
rsync -avz pi@raspberrypi.local:/usr/lib sysroot/usr
I receive this error
rsync -avz pi@raspberrypi.local:/usr/lib sysroot/usr receiving incremental file list rsync: send_files failed to open "/usr/lib/cups/backend/vnc": Permission denied (13) sent 2,760 bytes received 771,959 bytes 516,479.33 bytes/sec total size is 2,014,736,838 speedup is 2,600.60 rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1668) [generator=3.1.2]
the other rsync commands doesn't give this error!
any advice!
-
The trouble (most likely) is that
rsync
logs in aspi
user - without root permissions. So it can't access/usr/lib
on your raspberry.O don't know the easiest way around it, and it's been a year since I last had to deal with RPi, but I think this should help: https://askubuntu.com/questions/719439/using-rsync-with-sudo-on-the-destination-machine
-
Or install to home dir where permissions are not a problem.
-
@sierdzio thanks so much it was really helpful, but it works with sudo in front of it :
sudo rsync ... --rsync-path="sudo rsync" ...
-
Oh, cool :-) I didn't know that.
-
@MAthias_Va said in rsync Permission denied -Qt cross compile:
--rsync-path="sudo rsync"
Worked for me as well!
Thank you -
sudo rsync -avz -e ssh --rsync-path="sudo rsync" pi@192.168.0.10:/usr/lib sysroot/usr