Announcement

Collapse
No announcement yet.

App permissions bugged (though they're not the ones you think...)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [System] App permissions bugged (though they're not the ones you think...)

    Scroll to bottom for system specs

    So I'm two days into my installed kubuntu OS (dual-booting with win11) with a BTRFS file system. and I've encountered an issue with file permissions.
    My user is able to read and write to my computer no problem. sudo works too. the problem I'm having is with apps.

    For whatever reason. every app either install from a .deb file, or installed from the default ubuntu repo is automatically denied permissions to the root folder. Meaning any app that isn't self contained or already running in a sandbox (snap, flatpak, appimage) will fail to launch. Funnily enough. The one type of app that can access these folders are the self-contained ones themselves! This probably marks a departure from 99% of these types of issues on this forum. Though the discover client itself refuses to install flatpaks. I assume it's a permissions issue with​ external repos or something like that.

    I've just come out the other end of a nasty BIOS update that wiped my linux install from the boot order. Following instructions in a telegram channel from a dev i had recently crashed out on. On an OS i stopped using a couple days afterwards. So safe to say my permissions might be a little scuffed.Though I'm not actually sure how they're scuffed but i think you guys can figure that out. I've already tried running these apps as sudo and it spits out an Error: Cannot run as root user​.
    Here's my specs if anyone needs them:
    Operating System: Kubuntu 25.10
    KDE Plasma Version: 6.4.5
    KDE Frameworks Version: 6.17.0
    Qt Version: 6.9.2
    Kernel Version: 6.17.0-22-generic (64-bit)
    Graphics Platform: Wayland
    Processors: 16 × AMD Ryzen 7 7700X 8-Core Processor
    Memory: 32 GiB of RAM (30.2 GiB usable)
    Graphics Processor 1: AMD Radeon Graphics
    Graphics Processor 2: AMD Ryzen 7 7700X 8-Core Processor
    Manufacturer: Micro-Star International Co., Ltd.
    Product Name: MS-7E26
    System Version: 1.0​

    And the output of my fstab:
    UUID=0CC5-7406 /boot/efi vfat defaults 0 2
    UUID=5bd03062-8624-4fd0-a7cf-33ec11198754 / btrfs subvol=/@,defaults,noatime,autodefrag 0 0
    UUID=5bd03062-8624-4fd0-a7cf-33ec11198754 /home btrfs subvol=/@home,defaults,noatime,autodefrag 0 0
    UUID=5bd03062-8624-4fd0-a7cf-33ec11198754 /swap btrfs subvol=/@swap,defaults 0 0
    /swap/swapfile swap swap defaults 0 0
    tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0​


    Worth noting the apps i have had issues with so far are:
    • Steam (installer from website and presumably from repo as well)
    • OnlyOffice (installer from website+snap)
    • Krita (preinstalled from installer menu)
    I am ready and willing to post the output logs for these programs if need be.

    #2
    The application fails to open, or can't access a directory?


    The quickest thing to do is to run the application in question from the terminal with the immediate error as to why it isn't launching.

    So, for Krita just enter krita in Konsole. The error should be immediate and probably short.

    Originally posted by IcarusWasted View Post
    OnlyOffice (installer from website+snap)
    So both the snap nor either the deb or appimage on their website do not open? OO do not have an "installer"


    Originally posted by IcarusWasted View Post
    Though the discover client itself refuses to install flatpaks
    What does this mean, exactly?
    Is flatpak fully set up? Enabled, then adding flathub, *possibly* a reboot,( though I have never had to despite messaging)?

    Any errorrs?

    As a caution, make sure that your partiton(s) are not full, though that would affect everything
    Self-built: Asus PRIME B550M-K/Ryzen 5600GT/32Gb/Intel ARC B580 12Gb/KDE neon
    HP Elitedesk 800 G3 Mini: i5-7500T(35w)/32Gb/Kubuntu LTS
    HP Chromebook 14: i5-1135G7/8Gb/512Gb SSD/KDE Linux

    Comment


      #3
      Every application has something different depending on how much it relies on libraries present in the root folder. For example, steam has:
      Code:
      bin_steam.sh[5441]: Failed to extract /usr/lib/steam/bootstraplinux_ubuntu12_32.tar.xz, aborting installation.
      Krita's got:
      Code:
      Could not prepare delete temporary resources query. QSqlError("", "", "")
      Alongside the GUI errors Could not initialize the resource cache database and The resource location at /home/username/snap/krita/109/.local/share/krita/ is not writable
      And OnlyOffice spit out:
      Code:
      Segmentation fault (core dumped)
      (By the way. I'm using their provided .deb file. Though i did just notice they have an appimage version, so that should work for my purposes)
      The one thing they all have in common? the output logs are full 'permission denied' and 'cannot be opened' errors. krita and onlyoffice opened their 'startup' screen for 5 seconds before closing. And steam doesn't even have the chance to launch a GUI.​
      Originally posted by claydoh View Post
      Is flatpak fully set up? Enabled, then adding flathub, *possibly* a reboot,( though I have never had to despite messaging)?
      I installed flathub via installing the flathub backend to discover and adding the repo. then restarting when it didn't work (pretty dumb, right?).
      The way it 'fails' so to speak is that whenever i try to install a flatpak from the website or load a .flatpakref file. discover hangs. then eventually comes up with an error that says flatpak su returned with error.
      Originally posted by claydoh View Post
      As a caution, make sure that your partiton(s) are not full, though that would affect everything
      closest thing i have to that is an external drive i backed my home partition up to. But it still has 150-200GB left on there. far from the size where it should start causing problems.

      Interestingly enough i have noticed some preinstalled apps (Gwenview, Spectacle, KDE Partition Manager) display an error upon startup that usually goes Configuration file "/home/iw/iconfig/appnamerc" not writable. please contact your system administrator so i AM wrong in my assessment about it not affecting preinstalled apps. I guess most of them just don't need external files or dependencies.

      What's worrying is this and one of the krita errors tells me that my home folder is being affected too. and considering I'm the owner and have set permissions on that folder to be as free as possible (aware of the security risk but i don't give a rat's) This means it isn't just apps not having root access. it means that the apps are treating the filesystem like a read-only drive. Definitely speculating here but still worrying.

      (Funnily enough this may explain why my custom SDDM theme, Sugar Candy, is bugging out on me. Again, just speculating but i would make a lot of sense)

      Comment


        #4
        (Funnily enough this may explain why my custom SDDM theme, Sugar Candy, is bugging out on me. Again, just speculating but i would make a lot of sense)
        Originally posted by IcarusWasted View Post
        (Funnily enough this may explain why my custom SDDM theme, Sugar Candy, is bugging out on me. Again, just speculating but i would make a lot of sense)
        Actually, that is quite unrelated.Your Sugar Candy theme is ancient, and for Plasma 5 - it is incompatible with Plasma 6. You will want a fork that is less than two years old (preferably less), and is stated to work with Plasma 6, and is not lying about it (I have seen a few instances of those on other themes in the past). KDE doesn't control the store where these themes are hosted, and they haven't split out the Plasma 6 compatible stuff like they did with Global Themes.


        Originally posted by IcarusWasted View Post
        Configuration file "/home/iw/iconfig/appnamerc" not writable.
        Either you do not have write permissions, not ownership, or there is something wrong with the file system or drive. If it were permissions, you would have different errors here, like permission denied.

        Poke around some directories using ls -la


        Code:
        $ ls -la ~/.config
        total 788
        drwxrwxr-x  1 claydoh claydoh  4866 Apr 17 08:25  .
        drwxr-x---+ 1 claydoh claydoh   674 Apr 17 07:29  ..
        drwxrwxr-x  1 claydoh claydoh     8 Mar  6 05:32  GIMP
        drwxrwxr-x  1 claydoh claydoh   196 Mar 30 14:53  KDE
        drwxrwxr-x  1 claydoh claydoh    22 Mar 25 09:08  LanguageTool
        drwxrwxr-x  1 claydoh claydoh    48 Apr  2 06:52  MangoHud
        drwxrwxr-x  1 claydoh claydoh   132 Mar 25 11:04  OpenRGB
        -rw-------  1 claydoh claydoh    56 Feb 22 20:07  PlasmaDiscoverUpdates
        -rw-------  1 claydoh claydoh    26 Dec  7 02:59  PlasmaUserFeedback
        drwxrwxr-x  1 claydoh claydoh    68 Mar 25 11:04  QtProject
        -rw-rw-r--  1 claydoh claydoh   526 Apr 14 07:14  QtProject.conf
        -rw-rw-r--  1 claydoh claydoh  1081 Apr 15 17:01  Trolltech.conf
        drwxrwxr-x  1 claydoh claydoh    90 Mar 25 11:04 'Unknown Organization'
        drwxrwxr-x  1 claydoh claydoh    22 Feb 20 06:35  WritingTool
        drwxrwxr-x  1 claydoh claydoh    22 Dec 23 19:05  WritingTool.sv
        drwxrwxr-x  1 claydoh claydoh  2990 Apr 17 04:45  akonadi
        -rw-------  1 claydoh claydoh   151 Nov 30 18:43  akonadi-firstrunrc
        -rw-------  1 claydoh claydoh   158 Feb 15 20:00  akonadi-migrationrc
        -rw-------  1 claydoh claydoh    32 Dec  1 19:45  akonadi_contactrc
        -rw-------  1 claydoh claydoh    28 Nov 30 18:43  akonadi_contacts_resource_0r​
        I have a feeling it isn't the permissions, Hopefully you see a lot of W's in yours.

        Still, check out your drive space, using df -h This specific error is a symptom of a full partition as well as the other causes mentioned.


        Code:
        ​$ df -h
        Filesystem              Size    Used    Avail    Use% Mounted on
        tmpfs                      3.2G    2.4M    3.2G    1%     /run
        /dev/nvme0n1p2    854G   495G    357G    59%   / <-------------------------------------
        tmpfs                      16G     419M   16G       3%      /dev/shm
        tmpfs                      5.0M    32K      5.0M     1%     /run/lock
        efivarfs                   128K    61K     63K       49%    /sys/firmware/efi/efivars
        /dev/nvme0n1p2    854G    495G  357G     59%     /home <----------------------------
        /dev/nvme0n1p2    854G    495G  357G     59%     /swap
        /dev/nvme1n1p1    1.8T     1.2T     557G    69%     /mnt/Backups
        /dev/nvme1n1p1    1.8T     1.2T     557G    69%     /mnt/Extras
        /dev/nvme1n1p1    1.8T     1.2T     557G    69%    /mnt/virts
        tmpfs                      16G     0          16G 0% /run/qemu
        tmpfs                      16G     2.3G   14G 15% /tmp
        /dev/nvme0n1p1    300M   45M    256M 15% /boot/efi
        tmpfs                      3.2G    204K 3.2G 1% /run/user/1000


        Self-built: Asus PRIME B550M-K/Ryzen 5600GT/32Gb/Intel ARC B580 12Gb/KDE neon
        HP Elitedesk 800 G3 Mini: i5-7500T(35w)/32Gb/Kubuntu LTS
        HP Chromebook 14: i5-1135G7/8Gb/512Gb SSD/KDE Linux

        Comment

        Users Viewing This Topic

        Collapse

        There are 0 users viewing this topic.

        Working...
        X