Mass Storage is not unmounted after logoff

Mass Storage is not unmounted after logoff
I could not access an usb-drive, after some investigation
you can reproduce this by:

  • Login user1 plugin USB-Mass Storage device
  • Logoff user1
  • Login with user2, USB-Mass Storage device is mounted as user1
  • (or use a tty to check: mounts)

:thinking:

Hi :slight_smile:
A new bug to report :slight_smile:
Possible workaround is to add a umount script in your home profile / .bash_logout

─[olek@lenovo_apbook04u]─[~]
└──╼ $cat .bash_logout 
# ~/.bash_logout: executed by bash(1) when login shell exits.

# when leaving the console clear the screen to increase privacy

if [ "$SHLVL" = 1 ]; then
    [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q
fi
echo test >> /tmp/logout # add your mess here as me i done

Reported: https://bugs.launchpad.net/ubuntu-mate/+bug/1884379

1 Like

Anyone having problems with mounting image files ?
mkfs.vfat -C testimage.ima 1440

Its mounted read-only, so user cannot write to it.
Do you think its related to this problem ?