Comment 13 for bug 350089

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

The code that checks this is the following:

        # Check home directories
        for i in `ls /home`; do
                if [ -d "/home/$i/.ecryptfs" ]; then
                        # If we find a .ecryptfs directory (or link) in a home,
                        # directory, then someone is using ecryptfs-utils, and
                        # we should not allow package removal
                        echo "ERROR: Cannot remove ecryptfs-utils, as it appears to be in use:" 1>&2
                        echo " [/home/$i/.ecryptfs]" 1>&2
                        exit 1
                fi
        done

The goal here is to prevent an administrator from inadvertently removing ecryptfs-utils, in case one of her users is actually using ecryptfs. Of course, the administrator has the ability to 'rm -rf /home/$i/.ecryptfs', if that's the appropriate action.

:-Dustin