• HiddenLayer5@lemmy.ml
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    1
    ·
    edit-2
    11 months ago

    Worst when you plug in an external drive on Linux and the user the files belong to is different so it doesn’t let you access it.

    IMO, the rule should be that the user who mounts specifically a removable drive should have complete access to it regardless of existing file permissions, or, meeting in the middle, maybe have a command that requires sudo, which will grant complete access to the drive, something like sudo takeover-volume /mnt/usbdrive so you don’t have to sudo every single command that needs a file without your name on it. (I’m aware you can also just use sudo chown -R you /mnt/usbdrive but I think there should be a way to let a user access everything in a drive without changing the actual ownership.)