ecryptfs team mailing list archive
-
ecryptfs team
-
Mailing list archive
-
Message #00825
[Bug 347970] Re: deluser --remove-home leaves /var/lib/ecryptfs/<username> behind
Attaching a patch that solves this in deluser. Basically, we do a
'find' on /var/lib/ecryptfs/$user as well, and add those to the
files/dirs to be removed. Note that there is a regex list of prohibited
dirs that matches on "/var", so I added an exception condition for
/var/lib/ecryptfs/$user.
Patch attached. I'm requesting some review of someone with more
adduser/deluser expertise than I ;-)
:-Dustin
** Changed in: ecryptfs-utils (Ubuntu)
Status: Triaged => Invalid
** Attachment added: "out.diff"
http://launchpadlibrarian.net/24314131/out.diff
--
deluser --remove-home leaves /var/lib/ecryptfs/<username> behind
https://bugs.launchpad.net/bugs/347970
You received this bug notification because you are a member of eCryptfs,
which is subscribed to ecryptfs-utils in ubuntu.
Status in “adduser” source package in Ubuntu: In Progress
Status in “ecryptfs-utils” source package in Ubuntu: Invalid
Bug description:
Binary package hint: adduser
On experimenting with encrypted home directories, I repeatedly added and removed users with encrypted home directories (had to do that because of bug 347969).
It occurred to me that "deluser --remove-home foo" followed by "adduser --encrypt-home foo" doesn't work, because deluser leaves /var/lib/ecryptfs/foo behind.
ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
Package: adduser 3.110ubuntu3
PackageArchitecture: all
ProcEnviron:
PATH=(custom, user)
LANG=de_DE.UTF-8
SHELL=/bin/bash
SourcePackage: adduser
Uname: Linux 2.6.28-11-generic i686