Uploaded image for project: 'Mender'
  1. Mender
  2. MEN-2376

mender-artifact cp modifies/corrupts file permissions

    XMLWordPrintable

    Details

      Description

      See following steps based on our documentation,

      $ gunzip mender-beagleboneblack_1.7.0.sdimg.gz 
      mirzak@mk2000 ~/Downloads
      $ sudo mount -o loop,offset=$((512*49152)) mender-beagleboneblack_1.7.0.sdimg /mnt/
      mirzak@mk2000 ~/Downloads
      $ ls -alh /mnt/etc/systemd/network/eth.network 
      -rwxr-xr-x 1 root root 65 11 dec 10.44 /mnt/etc/systemd/network/eth.network
      mirzak@mk2000 ~/Downloads
      $ sudo umount /mnt/
      mirzak@mk2000 ~/Downloads
      $ echo -n "\
      > [Match]
      > Name=eth0
      > 
      > [Network]
      > Address=192.168.1.120
      > Gateway=192.168.1.1
      > " | mender-artifact cp mender-beagleboneblack_1.7.0.sdimg:/etc/systemd/network/eth.network
      mirzak@mk2000 ~/Downloads
      $ sudo mount -o loop,offset=$((512*49152)) mender-beagleboneblack_1.7.0.sdimg /mnt/                        
      mirzak@mk2000 ~/Downloads
      $ ls -alh /mnt/etc/systemd/network/eth.network                                             
      -rw------- 1 root root 71 15 feb 22.43 /mnt/etc/systemd/network/eth.network
      

      The problem here is that file permissions on the 'eth.network' file went from '751' to '600', and a user reported that systemd fails to read the file when permission is '600'.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mirzak Mirza Krak
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel