gdm doesn't unmount crypted directories

Bug #609575 reported by pinus on 2010-07-24
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
gdm (Ubuntu)
Low
Unassigned

Bug Description

Binary package hint: gdm

I use a crypted home directory using cryptmount, cryptsetup etc.
I use pam-mount to pass my password to the mount command.
This way everything works but I want the directory to be unmounted at logout. This doesn't work.
I tried to modify PostSession/Default script to unmount.
The unmount failed because of open files.
I tried to kill -9 `lsof -t $HOME_DIR` but some are persistent.

COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
gconfd-2 2469 pinus 17w REG 252,4 299 67166268 /home/pinus/.gconf/apps/nautilus/desktop-metadata/directory/%gconf.xml.new
gnome-pan 2494 pinus cwd DIR 252,4 4096 128 /home/pinus
nautilus 2496 pinus cwd DIR 252,4 4096 128 /home/pinus
gdu-notif 2593 pinus cwd DIR 252,4 4096 128 /home/pinus
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
pulseaudi 2626 pinus mem REG 252,4 696 136 /home/pinus/.pulse/9b4e51497724cc5218ebb1614c2617ca-card-database.tdb
pulseaudi 2626 pinus mem REG 252,4 73728 135 /home/pinus/.pulse/9b4e51497724cc5218ebb1614c2617ca-stream-volumes.tdb
pulseaudi 2626 pinus mem REG 252,4 61440 134 /home/pinus/.pulse/9b4e51497724cc5218ebb1614c2617ca-device-volumes.tdb
pulseaudi 2626 pinus 11u REG 252,4 61440 134 /home/pinus/.pulse/9b4e51497724cc5218ebb1614c2617ca-device-volumes.tdb
pulseaudi 2626 pinus 12u REG 252,4 73728 135 /home/pinus/.pulse/9b4e51497724cc5218ebb1614c2617ca-stream-volumes.tdb
pulseaudi 2626 pinus 13u REG 252,4 696 136 /home/pinus/.pulse/9b4e51497724cc5218ebb1614c2617ca-card-database.tdb
gconfd-2 2628 pinus 18w REG 252,4 238602 67166474 /home/pinus/.gconfd/saved_state

I think something is broken in the shutdown sequence/scrips.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: gdm 2.30.2.is.2.30.0-0ubuntu2
ProcVersionSignature: Ubuntu 2.6.32-23.37-generic 2.6.32.15+drm33.5
Uname: Linux 2.6.32-23-generic x86_64
Architecture: amd64
Date: Sat Jul 24 22:20:54 2010
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100427.1)
ProcEnviron:
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: gdm

pinus (pinus) wrote :
Pedro Villavicencio (pedro) wrote :

Thanks for the report, it has been some time without any response or feedback in this bug report and we are wondering if this is still an issue for you with the latest release of Ubuntu the Natty Narwhal, May you please test with that version and comment back if you're still having or not the issue? Please have a look at http://www.ubuntu.com/download to know how to install that version.Thanks in advance and sorry for the late response.

Changed in gdm (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
silroquen (silroquen) wrote :

I have had this problem consistently through several versions of ubuntu, including natty. In addition to killing processes, I've tried to use the <logout> tag's attributes with various values in /etc/security/pam_mount.conf.xml, none of which ever results in the filesystem getting unmounted.

If someone can suggest what to try, I'd be glad to help diagnose this problem.

Changed in gdm (Ubuntu):
status: Incomplete → New
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers