Comment 11 for bug 302870

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Martin,

I actually tested the absence of ecryptfs-setup-private... It's sort of handled by:
  my $ecryptfs_setup_private = &which('ecryptfs-setup-private')

It says:
  adduser: Could not find program named 'ecryptfs-setup-private' in $PATH

We could emit another message, about apt-get install ecryptfs-utils, but I figured the user should be able to figure that out with command-not-found. (Perhaps even adduser's which() function should be taught to call command-not-found???)

However, the failed which() call exits adduser immediately, $?=1, which has succeeded in adding the user, but not in populating the home directory. Should it purge the user on failed exit?

For the adduser.conf request, I filed Bug #305582 and assigned to myself. I'll submit another patch for that.

:-Dustin