Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. rsync Permission denied -Qt cross compile
Forum Updated to NodeBB v4.3 + New Features

rsync Permission denied -Qt cross compile

Scheduled Pinned Locked Moved Solved Mobile and Embedded
7 Posts 4 Posters 3.4k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MAthias_Va
    wrote on last edited by
    #1

    on my way to cross compile using this https://wiki.qt.io/RaspberryPi2EGLFS
    and using stretch latest version through Ubuntu 18

    only 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!

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      The trouble (most likely) is that rsync logs in as pi 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

      (Z(:^

      M 1 Reply Last reply
      1
      • sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #3

        Or install to home dir where permissions are not a problem.

        (Z(:^

        1 Reply Last reply
        1
        • sierdzioS sierdzio

          The trouble (most likely) is that rsync logs in as pi 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

          M Offline
          M Offline
          MAthias_Va
          wrote on last edited by
          #4

          @sierdzio thanks so much it was really helpful, but it works with sudo in front of it :

          sudo rsync ... --rsync-path="sudo rsync" ...
          
          F 1 Reply Last reply
          1
          • sierdzioS Offline
            sierdzioS Offline
            sierdzio
            Moderators
            wrote on last edited by
            #5

            Oh, cool :-) I didn't know that.

            (Z(:^

            1 Reply Last reply
            0
            • M MAthias_Va

              @sierdzio thanks so much it was really helpful, but it works with sudo in front of it :

              sudo rsync ... --rsync-path="sudo rsync" ...
              
              F Offline
              F Offline
              FluxDice
              wrote on last edited by
              #6

              @MAthias_Va said in rsync Permission denied -Qt cross compile:

              --rsync-path="sudo rsync"

              Worked for me as well!
              Thank you

              K 1 Reply Last reply
              0
              • F FluxDice

                @MAthias_Va said in rsync Permission denied -Qt cross compile:

                --rsync-path="sudo rsync"

                Worked for me as well!
                Thank you

                K Offline
                K Offline
                kokin
                wrote on last edited by
                #7

                @FluxDice

                sudo rsync -avz -e ssh --rsync-path="sudo rsync" pi@192.168.0.10:/usr/lib sysroot/usr
                
                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved