Ubuntu just started renaming files while exporting (sending over mail, KDE Connect, Whatsapp web). The folder is my google drive, connected to my google drive. Sometimes it looses its file ending/type as well. The file is called something like: “1Kfhgsji2rjfIS-fi3oo598nf8ajlfoi.pdf”

I guess its a weird bug, it persist even after a restart. Thanks, maybe you have a solution

    • WeirdGoesPro@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      1
      ·
      9 months ago

      Not gonna lie, that’s straight up bizarre. I’m almost wondering if it has to do with the programs not having proper permissions to access those files, but then I’d think that they wouldn’t upload at all.

      Have you tried chmod 777 on any of those files to see if it makes a difference? That is usually my first stop when a Linux program has trouble interacting with a file.

      • WbrJr@lemmy.mlOP
        link
        fedilink
        arrow-up
        1
        ·
        9 months ago

        I just opened the Google drive folder in the terminal and listed the files. They all have the similar 33 letter name. When I “ls -ld” on the files, it shows -rw-------

        • WeirdGoesPro@lemmy.dbzer0.com
          link
          fedilink
          arrow-up
          3
          ·
          edit-2
          9 months ago

          Do you know how to accomplish a chmod in Linux?

          Here’s a breakdown if you need to learn: https://www.howtogeek.com/437958/how-to-use-the-chmod-command-on-linux/

          From your description, it looks like there is read write permission for the user, but no group or general permissions. Again, I don’t know if this will work, but it is where I would start.

          Open your terminal and type:

          sudo chmod 777 /path/to/file.txt

          That will allow all users, groups, and guests to read, write, and/or execute the file. Then, if your programs are set to run under their own user or group, this will open the door for them to be able to access the full file.

          Other than that, I’m wondering if the original file names have a structure that one of the systems can’t handle (such as slash marks) and so it changes the name to accommodate.

          This is going to take some trial and error in troubleshooting. If you aren’t familiar with your terminal yet, this is going to be a great learning opportunity. Just make a backup of your files and system so you can undo any mistakes.

          • WbrJr@lemmy.mlOP
            link
            fedilink
            arrow-up
            1
            ·
            9 months ago

            Thanks dor the link. I ran the command with sudo and the fill path to the file, permission still denied. User group and user is me, still only rw permission for the user… It confuses me, that I don’t have executive permission on my own folder. Should I try to disconnect and reconnect to Google drive?

            • WeirdGoesPro@lemmy.dbzer0.com
              link
              fedilink
              arrow-up
              3
              ·
              9 months ago

              Couldn’t hurt, but I’d be surprised if that fixed it.

              Has your account been added to the sudo group before? If not, run the following command in the terminal with your own username:

              sudo usermod -aG sudo <username>

              That should give your account sudo privileges and let you run the command with sudo properly.

              I really wish I could take a look at your system in person. There are several things happening here that are unusual for Ubuntu.

                • WeirdGoesPro@lemmy.dbzer0.com
                  link
                  fedilink
                  arrow-up
                  2
                  ·
                  9 months ago

                  It sounds like you aren’t an admin somehow. Do you know the root login credentials? Maybe adding the user to sudo from root will get you closer.

                  You could also try running chmod as root as a shortcut, but be very careful making a bunch of changes as root.

                  • WbrJr@lemmy.mlOP
                    link
                    fedilink
                    arrow-up
                    1
                    ·
                    9 months ago

                    When I use “su” and login as root, I can not navigate using ls or cd… it says permission denied again… I’m a little confused to be honest