fix: fix mounting group ownership
This commit is contained in:
parent
3f99f774be
commit
12ea059e05
@ -29,7 +29,7 @@ mountusb() { \
|
|||||||
case "$partitiontype" in
|
case "$partitiontype" in
|
||||||
"vfat") sudo -A mount -t vfat "$chosen" "$mp" -o rw,umask=0000;;
|
"vfat") sudo -A mount -t vfat "$chosen" "$mp" -o rw,umask=0000;;
|
||||||
*) sudo -A mount "$chosen" "$mp"; user="$(whoami)";
|
*) sudo -A mount "$chosen" "$mp"; user="$(whoami)";
|
||||||
ug="$(groups | awk '{print $1}')"; sudo -A chown "$user":"$ug" "$mp";;
|
sudo -A chown "$user":"$user" "$mp";;
|
||||||
esac
|
esac
|
||||||
notify-send " USB mounting" "$chosen mounted to $mp."
|
notify-send " USB mounting" "$chosen mounted to $mp."
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user