Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Move backup to external EXT4 (USB) disk error: Directory does not exist or cannot be accessed: EACCES: permission denied

Move backup to external EXT4 (USB) disk error: Directory does not exist or cannot be accessed: EACCES: permission denied

Scheduled Pinned Locked Moved Solved Support
backups
9 Posts 3 Posters 1.3k 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.
    • ei8fdbE Offline
      ei8fdbE Offline
      ei8fdb
      wrote on last edited by ei8fdb
      #1

      I'm moving my backups (from an internal disk..I know I know 🙂 ) to an USB external disk (ext4).

      The disk is mounted as /media/bernat/owncloud/ and permissions are:
      drwx------ 20 www-data www-data 4096 Nov 8 09:18 owncloud

      Before changing the config in Cloudron I've created the directory on the external USB disk:

      alt text

      The yellowtent user/group owns this directory (/media/bernat/owncloud/cloudron-backups) recursively.

      This is the change I try to make:

      alt text

      When I try to change the backup location in Cloudron UI I get a failure:

      Directory does not exist or cannot be accessed: EACCES: permission denied, stat '/media/bernat/owncloud/cloudron-backups'

      alt text

      I've not restarted Cloudron yet.

      Any help appreciated! I'm sure I've not done something, or done something in the wrong order. Does the whole disk need to be owned by my username?

      robiR girishG 2 Replies Last reply
      0
      • ei8fdbE ei8fdb

        I'm moving my backups (from an internal disk..I know I know 🙂 ) to an USB external disk (ext4).

        The disk is mounted as /media/bernat/owncloud/ and permissions are:
        drwx------ 20 www-data www-data 4096 Nov 8 09:18 owncloud

        Before changing the config in Cloudron I've created the directory on the external USB disk:

        alt text

        The yellowtent user/group owns this directory (/media/bernat/owncloud/cloudron-backups) recursively.

        This is the change I try to make:

        alt text

        When I try to change the backup location in Cloudron UI I get a failure:

        Directory does not exist or cannot be accessed: EACCES: permission denied, stat '/media/bernat/owncloud/cloudron-backups'

        alt text

        I've not restarted Cloudron yet.

        Any help appreciated! I'm sure I've not done something, or done something in the wrong order. Does the whole disk need to be owned by my username?

        robiR Offline
        robiR Offline
        robi
        wrote on last edited by robi
        #2

        @ei8fdb it's a permissions issue.

        make it look like:
        drwx-----x 20 www-data www-data 4096 Nov 8 09:18 owncloud
        .........^

        Conscious tech

        ei8fdbE 1 Reply Last reply
        2
        • robiR robi

          @ei8fdb it's a permissions issue.

          make it look like:
          drwx-----x 20 www-data www-data 4096 Nov 8 09:18 owncloud
          .........^

          ei8fdbE Offline
          ei8fdbE Offline
          ei8fdb
          wrote on last edited by
          #3

          @robi That's what I was thinking - my username is bernat. Does the whole dis need to be owned by that user?

          robiR 1 Reply Last reply
          0
          • ei8fdbE ei8fdb

            @robi That's what I was thinking - my username is bernat. Does the whole dis need to be owned by that user?

            robiR Offline
            robiR Offline
            robi
            wrote on last edited by
            #4

            @ei8fdb no, just chmod o+x on all dirs leading up to the backup dir.

            Conscious tech

            ei8fdbE 1 Reply Last reply
            0
            • robiR robi

              @ei8fdb no, just chmod o+x on all dirs leading up to the backup dir.

              ei8fdbE Offline
              ei8fdbE Offline
              ei8fdb
              wrote on last edited by
              #5

              @robi said in Move backup to external EXT4 (USB) disk error: Directory does not exist or cannot be accessed: EACCES: permission denied:

              @ei8fdb no, just chmod o+x on all dirs leading up to the backup dir.

              Chmod to 755?

              robiR 1 Reply Last reply
              0
              • ei8fdbE ei8fdb

                @robi said in Move backup to external EXT4 (USB) disk error: Directory does not exist or cannot be accessed: EACCES: permission denied:

                @ei8fdb no, just chmod o+x on all dirs leading up to the backup dir.

                Chmod to 755?

                robiR Offline
                robiR Offline
                robi
                wrote on last edited by robi
                #6

                @ei8fdb no, I said: chmod o+x

                Conscious tech

                ei8fdbE 1 Reply Last reply
                1
                • ei8fdbE ei8fdb

                  I'm moving my backups (from an internal disk..I know I know 🙂 ) to an USB external disk (ext4).

                  The disk is mounted as /media/bernat/owncloud/ and permissions are:
                  drwx------ 20 www-data www-data 4096 Nov 8 09:18 owncloud

                  Before changing the config in Cloudron I've created the directory on the external USB disk:

                  alt text

                  The yellowtent user/group owns this directory (/media/bernat/owncloud/cloudron-backups) recursively.

                  This is the change I try to make:

                  alt text

                  When I try to change the backup location in Cloudron UI I get a failure:

                  Directory does not exist or cannot be accessed: EACCES: permission denied, stat '/media/bernat/owncloud/cloudron-backups'

                  alt text

                  I've not restarted Cloudron yet.

                  Any help appreciated! I'm sure I've not done something, or done something in the wrong order. Does the whole disk need to be owned by my username?

                  girishG Offline
                  girishG Offline
                  girish
                  Staff
                  wrote on last edited by
                  #7

                  @ei8fdb The issue is most likely permissions of the parent directory i.e /media/bernat/owncloud. What is the output of ls -l /media/bernat/owncloud ?

                  Make sure the directory has 'rx' for others. So, chmod o+rx /media/bernat/owncloud . This is because the backup code accesses the directory as "yellowtent" user. Without the rx, it cannot read and cd into the parent directory.

                  ei8fdbE 1 Reply Last reply
                  0
                  • robiR robi

                    @ei8fdb no, I said: chmod o+x

                    ei8fdbE Offline
                    ei8fdbE Offline
                    ei8fdb
                    wrote on last edited by
                    #8

                    @robi said in Move backup to external EXT4 (USB) disk error: Directory does not exist or cannot be accessed: EACCES: permission denied:

                    no, I said: chmod o+x

                    🤦 👍

                    1 Reply Last reply
                    0
                    • girishG girish

                      @ei8fdb The issue is most likely permissions of the parent directory i.e /media/bernat/owncloud. What is the output of ls -l /media/bernat/owncloud ?

                      Make sure the directory has 'rx' for others. So, chmod o+rx /media/bernat/owncloud . This is because the backup code accesses the directory as "yellowtent" user. Without the rx, it cannot read and cd into the parent directory.

                      ei8fdbE Offline
                      ei8fdbE Offline
                      ei8fdb
                      wrote on last edited by ei8fdb
                      #9

                      What is the output of ls -l /media/bernat/owncloud ?

                      drwx------ 20 www-data www-data 4096 Nov 8 09:18 owncloud

                      Thanks @girish I thought it was permissions. 👍

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Bookmarks
                        • Search