From 185ac25e52069cab8144d0aea820c056544dfec2 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Fri, 17 Feb 2023 10:17:35 -0500 Subject: [PATCH] mount drives with user's ownership --- .local/bin/mounter | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.local/bin/mounter b/.local/bin/mounter index d7c1b06..059043b 100755 --- a/.local/bin/mounter +++ b/.local/bin/mounter @@ -59,7 +59,7 @@ case "$chosen" in chosen="${chosen%% *}" chosen="${chosen:1}" # This is a bashism. getmount - sudo -A mount "$chosen" "$mp" + sudo -A mount "$chosen" "$mp" -o uid="$(id -u)",gid="$(id -g)" notify-send "💾Drive Mounted." "$chosen mounted to $mp." ;; @@ -78,7 +78,7 @@ case "$chosen" in test -b "/dev/mapper/usb$num" getmount - sudo -A mount "/dev/mapper/usb$num" "$mp" + sudo -A mount "/dev/mapper/usb$num" "$mp" -o uid="$(id -u)",gid="$(id -g)" notify-send "🔓Decrypted drive Mounted." "$chosen decrypted and mounted to $mp." ;;