Page 1 of 1

False access denied - SOLVED

PostPosted: Jun 24th, '21, 15:09
by GersonLearchman
Something that never happened to me with other distributions including Mageia 7 was that when copying a file from /home to another backup partition on the same disk, it did it without showing warnings, but now in Mageia 8 I get an informative window telling me:
"Access denied to..." (as seen in the image); however, the file in question that I am moving or copying does move or copy to the destination. The partition has all permissions enabled; so much so that from there I copy or move files to /home.
How do I fix it or is it a bug in Mageia 8?
I clarify that this does not happen to me if I copy or move a file from /home to an external drive or USB.

Translated with http://www.DeepL.com/Translator (free version)

Re: False access denied

PostPosted: Jun 24th, '21, 15:38
by doktor5000
That sounds like https://bugs.mageia.org/show_bug.cgi?id=25922 which is an upstream bug.

Can you please show the outputs of
Code: Select all
df -PhT /media/windows
mount | grep /media/windows
cat /etc/fstab

Re: False access denied

PostPosted: Jun 24th, '21, 16:52
by GersonLearchman
The results are as follows:
Code: Select all
[ghermain@ghermain ~]$ df -PhT /media/windows
S.ficheros     Tipo    TamaƱo Usados  Disp Uso% Montado en
/dev/sda5      fuseblk   839G   622G  217G  75% /media/windows
[ghermain@ghermain ~]$ mount | grep /media/windows
/dev/sda5 on /media/windows type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)
[ghermain@ghermain ~]$ cat /etc/fstab
# Entry for /dev/sda3 :
UUID=5c8d6014-cb4a-401e-86a6-d34abb4108a1 / ext4 defaults 1 1
# Entry for /dev/sda1 :
UUID=8BF9-0D26 /boot/EFI vfat defaults,umask=000 0 0
# Entry for /dev/sda4 :
UUID=d188ba97-dc8a-463b-959f-6f8540c0f285 /home ext4 defaults 1 2
# Entry for /dev/sda5 :
UUID=8EEE7F49EE7F291B /media/windows ntfs-3g defaults,nofail,umask=000 0 0
none /proc proc defaults 0 0
# Entry for /dev/sda2 :
UUID=3700208c-9896-43e0-8148-be5693056295 swap swap defaults 0 0
[ghermain@ghermain ~]$

Re: False access denied

PostPosted: Jun 24th, '21, 18:55
by doktor5000
GersonLearchman wrote:[ghermain@ghermain ~]$ cat /etc/fstab

# Entry for /dev/sda5 :
UUID=8EEE7F49EE7F291B /media/windows ntfs-3g defaults,nofail,umask=000 0 0


According to the bug it might help if you remove the umask=000 part from the entry for your windows partition.

You could also try to add uid and gid options for the user that should have full access.

I simply commented out the default entries for windows partitions in /etc/fstab and mount them via the desktop environment.

Re: False access denied

PostPosted: Jun 24th, '21, 19:24
by GersonLearchman
Thank you very much, corrected.
I deleted according to your suggestion the "umask=000" part of the "windows" partition in /etc/fstab, rebooted and tried again to cut a file from /home and paste in the other partition and I don't get the warning anymore.
I consider the issue solved.

Re: False access denied - SOLVED

PostPosted: Jun 27th, '21, 12:00
by GersonLearchman
Good morning. The problem is solved by editing "/etc/fstab" and deleting "umask=000" in the session, but when I reboot or in a new session it appears again, and I have to edit the file again. How do I fix it definitively?
Code: Select all
# Entry for /dev/sda3 :
UUID=5c8d6014-cb4a-401e-86a6-d34abb4108a1 / ext4 defaults 1 1
# Entry for /dev/sda1 :
UUID=8BF9-0D26 /boot/EFI vfat defaults,umask=000 0 0
# Entry for /dev/sda4 :
UUID=d188ba97-dc8a-463b-959f-6f8540c0f285 /home ext4 defaults 1 2
# Entry for /dev/sda5 :
UUID=8EEE7F49EE7F291B /media/windows ntfs-3g defaults,nofail,umask=000 0 0
none /proc proc defaults 0 0
# Entry for /dev/sda2 :
UUID=3700208c-9896-43e0-8148-be5693056295 swap swap defaults 0 0

Re: False access denied - SOLVED

PostPosted: Jun 29th, '21, 17:20
by doktor5000
Sorry but that doesn't make any sense. Once you edit /etc/fstab and save it, those options are used starting the next time you mount whichever entry you changed.

Please show the output of
Code: Select all
grep /media/windows /etc/fstab
mount | grep /media/windows