UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Focal no writing permission in documents and downloads folder

    Scheduled Pinned Locked Moved Solved Support
    7 Posts 4 Posters 370 Views 3 Watching
    Loading More Posts
    • 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.
      • K Offline
        Knalli73
        last edited by

        Hi,
        as the title says I can't save anything in the Downloads and Documents folder. File Manager tells me that I only have read and execute permissions. Also I can't open PDFs from the net. Document Viewer wants to save the PDF locally but can't because of missing permission.
        It is a new clean installation on the Volla phone. Changing channels makes no difference.
        Is it a known bug? I could not find anything.
        If it is a new one can someone tell me where to report it?
        And does anyone maybe have a solution there for?

        Thanx, Stefan

        1 Reply Last reply Reply Quote 0
        • arubislanderA Offline
          arubislander
          last edited by arubislander

          It would seem that some operation messed with the permissions of those directories in your home folder.

          Open the terminal app and execute the command:

          chmod -R +w $HOME/Documents $HOME/Downloads
          

          This command recursively adds the writeable flag to all files and folders in the Documents and Downloads directories.

          πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
          Happily running Ubuntu Touch
          Google Pixel 3a (20.04 DEV)
          JingPad (24.04 preview)
          Meizu Pro 5 (16.04 DEV)

          IanI 1 Reply Last reply Reply Quote 0
          • IanI Online
            Ian @arubislander
            last edited by

            @arubislander Isn't rhe r oprion for read? Shouldn't you be using the w option for write?πŸ€“

            arubislanderA 1 Reply Last reply Reply Quote 0
            • arubislanderA Offline
              arubislander @Ian
              last edited by

              @Ian said in Focal no writing permission in documents and downloads folder:

              @arubislander Isn't rhe r oprion for read? Shouldn't you be using the w option for write?πŸ€“

              :astonished_face: you are correct!! I have edited the post accordingly.

              πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
              Happily running Ubuntu Touch
              Google Pixel 3a (20.04 DEV)
              JingPad (24.04 preview)
              Meizu Pro 5 (16.04 DEV)

              1 Reply Last reply Reply Quote 0
              • K Offline
                Knalli73
                last edited by Knalli73

                Hello,

                thank you for your advice. Unfortunately it did not work.
                Maybe because I forgot to mention something that came back to me. I think the problem came up after I made the folders available to Waydroid. Used this command:
                sudo mount --bind ~/Documents ~/.local/share/waydroid/data/media/0/Documents
                sudo mount --bind ~/Downloads ~/.local/share/waydroid/data/media/0/Download
                And there are some files in the folders.

                Sorry for these mistake

                LuksusL 1 Reply Last reply Reply Quote 0
                • LuksusL Offline
                  Luksus @Knalli73
                  last edited by

                  @Knalli73 Yes, that bind mount does not work really, because as soon as Android starts, it changes the owner of the mounted folders.

                  But it still should be possible to revert the permissions on UT side (if waydroid is stopped).

                  1. sudo chown -R phablet:phablet /home/phablet/Documents

                  2. sudo chmod -R 755 /home/phablet/Documents

                  Devices: BQ e4.5, Fairphone 2, Fairphone 3, Lenovo X605F, Pinephone, Moto Z2 Force, OnePlus5T

                  1 Reply Last reply Reply Quote 0
                  • K Offline
                    Knalli73
                    last edited by

                    Yeah, that did the trick. Thanks to all. I will mark it as solved.

                    1 Reply Last reply Reply Quote 0
                    • K Knalli73 has marked this topic as solved on
                    • First post
                      Last post