https://bugs.kde.org/show_bug.cgi?id=490818

            Bug ID: 490818
           Summary: Editing the mount point makes all executable files
                    unusable and gives an error of access denied.
    Classification: Applications
           Product: partitionmanager
           Version: 24.05.1
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: andr...@stikonas.eu
          Reporter: mohammedwaelelshiek...@gmail.com
  Target Milestone: ---

Created attachment 171987
  --> https://bugs.kde.org/attachment.cgi?id=171987&action=edit
The mount point configurstion

SUMMARY
After editing the mount point of the partition using KDE partition manager, I
couldn't use executable files on the edited partition. I was working on a
Next.js project when decided to edit the mount point of a partition that
contains my work to help to use absolute paths more efficiently. But this led
to being unable to run node_modules executable files. And running them results
in Access denied error. This problem appeared after the restart of the system
after doing my edits on the mount point. And it was resolved by opening KDE
partition manager and right-click on the partition and edit mount point and
clicking ok, without any edits. I think this creates the /etc/fstab files
again, and it was deleted.

STEPS TO REPRODUCE
1. Unmounting the desired partition and right click, edit mount point
2. choosing label, and entering the mount point to be /mnt/files, check only
allow users to mount and unmount and don't prevent system from booting if
unmountable
3. mount the partition, reboot the machine, and start a new Next.js project
inside it. 
4. try running "npm run dev"

OBSERVED RESULT
Access denied

EXPECTED RESULT
Starting server

SOFTWARE/OS VERSIONS
Operating System: CachyOS Linux 
KDE Plasma Version: 6.1.1
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2
Kernel Version: 6.9.7-3-cachyos (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-7200U CPU @ 2.50GHz
Memory: 7.7 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 620
Manufacturer: HP
Product Name: HP 250 G6 Notebook PC
System Version: Type1ProductConfigId 

ADDITIONAL INFORMATION
The partition format is Btrfs
I tried marking the files to be executables using chmod but didn't work
I tried running the executable files directly, using "./node_modules/.bin/next"
The same issue happens when running any other executable file that doesn't end
with .sh
Here is the content of the fstab before solving the problem: 
```
# <file system>             <mount point>  <type>  <options>  <dump>  <pass>
UUID=D2C7-FFC9                              /boot        vfat    umask=0077    
                                                  0 2 
UUID=a80d8c0d-4ba4-4d08-b2f6-8b2308e42d70   /            btrfs  
subvol=/@,noatime,compress=zstd,space_cache=v2,commit=120        0 0 
UUID=a80d8c0d-4ba4-4d08-b2f6-8b2308e42d70   /home        btrfs  
subvol=/@home,noatime,compress=zstd,space_cache=v2,commit=120    0 0 
UUID=a80d8c0d-4ba4-4d08-b2f6-8b2308e42d70   /root        btrfs  
subvol=/@root,noatime,compress=zstd,space_cache=v2,commit=120    0 0 
UUID=a80d8c0d-4ba4-4d08-b2f6-8b2308e42d70   /srv         btrfs  
subvol=/@srv,noatime,compress=zstd,space_cache=v2,commit=120     0 0 
UUID=a80d8c0d-4ba4-4d08-b2f6-8b2308e42d70   /var/cache   btrfs  
subvol=/@cache,noatime,compress=zstd,space_cache=v2,commit=120   0 0 
UUID=a80d8c0d-4ba4-4d08-b2f6-8b2308e42d70   /var/tmp     btrfs  
subvol=/@tmp,noatime,compress=zstd,space_cache=v2,commit=120     0 0 
UUID=a80d8c0d-4ba4-4d08-b2f6-8b2308e42d70   /var/log     btrfs  
subvol=/@log,noatime,compress=zstd,space_cache=v2,commit=120     0 0 
UUID=155566d0-eb6d-4c36-a57f-36b89f535107   swap         swap    defaults      
                                                  0 0 
LABEL=Files                                 /mnt/files   btrfs   nofail,users  
                                                  0 0 

```
The content after solving it: 
```
# <file system>             <mount point>  <type>  <options>  <dump>  <pass>
UUID=D2C7-FFC9                              /boot        vfat    umask=0077    
                                                  0 2 
UUID=a80d8c0d-4ba4-4d08-b2f6-8b2308e42d70   /            btrfs  
subvol=/@,noatime,compress=zstd,space_cache=v2,commit=120        0 0 
UUID=a80d8c0d-4ba4-4d08-b2f6-8b2308e42d70   /home        btrfs  
subvol=/@home,noatime,compress=zstd,space_cache=v2,commit=120    0 0 
UUID=a80d8c0d-4ba4-4d08-b2f6-8b2308e42d70   /root        btrfs  
subvol=/@root,noatime,compress=zstd,space_cache=v2,commit=120    0 0 
UUID=a80d8c0d-4ba4-4d08-b2f6-8b2308e42d70   /srv         btrfs  
subvol=/@srv,noatime,compress=zstd,space_cache=v2,commit=120     0 0 
UUID=a80d8c0d-4ba4-4d08-b2f6-8b2308e42d70   /var/cache   btrfs  
subvol=/@cache,noatime,compress=zstd,space_cache=v2,commit=120   0 0 
UUID=a80d8c0d-4ba4-4d08-b2f6-8b2308e42d70   /var/tmp     btrfs  
subvol=/@tmp,noatime,compress=zstd,space_cache=v2,commit=120     0 0 
UUID=a80d8c0d-4ba4-4d08-b2f6-8b2308e42d70   /var/log     btrfs  
subvol=/@log,noatime,compress=zstd,space_cache=v2,commit=120     0 0 
UUID=155566d0-eb6d-4c36-a57f-36b89f535107   swap         swap    defaults      
                                                  0 0 
LABEL=Files                                 /mnt/files   btrfs   nofail,users  
                                                  0 0 

```
I know they are the same But I thought It will help, or you can see what I
cannot.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to