You are not logged in.
When i plug in a usb flash drive plasma comes up with a window where I can click mount and open, however if i do that the user does not have permission to write.
I want to make this mount and open button mount with permissions for all users to read write and execute.
I've tried to go through a few pages:
https://wiki.archlinux.org/title/USB_storage_devices
https://bbs.archlinux.org/viewtopic.php?id=119261 but that didn't help with mounting via plasma
https://wiki.archlinux.org/title/Fstab doesn't seem to help with mounting with plasma
I read up on permissions https://wiki.archlinux.org/title/File_p … attributes
https://www.reddit.com/r/kde/comments/a … _disk_for/ which led me to https://wiki.archlinux.org/title/Udisks#Mount_to_/media which i got it to mount to /media instead, but that didn't do anything for letting a user write.
Looking at https://wiki.archlinux.org/title/Udisks#Permissions i wondered if putting something in /etc/udisks2/mount_options.conf was how to do it, but there doesnt seem to be anything on that page about changing the default mounting permissions or anything.
I probably just missed something obvious, but I've been banging my head against a brick wall for about 2 hours, on the verge of tears at this point, trying to do this seemingly simple thing.
Forced myself to just ask for help at this point.
Offline
This depends on your filesystem, first and foremost. What you envision works for filesystems that don't actually have POSIX permission support like the fat or ntfs family of filesystems, there the actual perms get set once during mount and can be set to a specific user for that mount (and udisks will generally do that correctly for your user).
If you're using a proper linux filesystem like ext4 or btrfs, the permissions are stored on the filesystem itself and are not influenced by the process of mounting directly, hence after a mount you have to chown the paths you want write access to your user and that will stick in the future. if you really want "all" then you explicitly need to chmod/chown the paths you want accessible so everyone can store files, read https://wiki.archlinux.org/title/File_p … attributes as well
Last edited by V1del (2025-01-10 13:30:24)
Offline
Thanks for the info, will keep in mind that changing permissions with chmod/chown should stick. I plugged in the usb just now and what I could have sworn wasn't working yesterday on my Arch machine, but was on my laptop with Linux Mint, suddenly worked. I don't entirely know what happened but thanks for the help anyway
Last edited by ceidways (2025-01-11 06:24:56)
Offline
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Offline
Note that "should stick" can be somewhat relative. What's actually getting stored is the numerical UID/GID (e.g. 1000) of the user you chmod/chowned to. If this doesn't match between different systems it might look like it "didn't work" but it's just how the permission system works in practice
Offline