• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
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 394 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 16 May 2023, 18:45

      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
      • A Offline
        arubislander
        last edited by arubislander 17 May 2023, 03:58

        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)

        I 1 Reply Last reply 17 May 2023, 06:16 Reply Quote 0
        • I Offline
          Ian @arubislander
          last edited by 17 May 2023, 06:16

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

          A 1 Reply Last reply 17 May 2023, 11:31 Reply Quote 0
          • A Offline
            arubislander @Ian
            last edited by 17 May 2023, 11:31

            @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 17 May 2023, 20:28

              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

              L 1 Reply Last reply 18 May 2023, 05:54 Reply Quote 0
              • L Offline
                Luksus @Knalli73
                last edited by 18 May 2023, 05:54

                @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 18 May 2023, 17:01

                  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 18 May 2023, 17:01
                  6 out of 7
                  • First post
                    6/7
                    Last post