K2LL33D SHELL

 Apache/2.4.7 (Ubuntu)
 Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64
 uid=33(www-data) gid=33(www-data) groups=33(www-data)
 safemode : OFF
 MySQL: ON | Perl: ON | cURL: OFF | WGet: ON
  >  / var / lib / dpkg / info /
server ip : 172.67.156.115

your ip : 172.70.80.134

H O M E


Filename/var/lib/dpkg/info/ecryptfs-utils.prerm
Size1.05 kb
Permissionrwxr-xr-x
Ownerroot : root
Create time27-Apr-2025 10:01
Last modified16-Jan-2016 08:29
Last accessed08-Jul-2025 05:09
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
#!/bin/sh -e

if [ "$1" = remove ]; then
# We should do some checking to prevent removal of ecryptfs if in use
# Check active mounts
if out=`mount | grep "\Wtype\Wecryptfs\W"`; then
echo "WARNING: Should not remove ecryptfs-utils, as it appears to be in use:" 1>&2
echo "$out" 1>&2
fi
if out=`grep "\Wecryptfs\W" /proc/mounts`; then
echo "WARNING: Should not remove ecryptfs-utils, as it appears to be in use:" 1>&2
echo "$out" 1>&2
fi
# Check fstab
if out=`grep "\Wecryptfs\W" /etc/fstab`; then
echo "WARNING: Should not remove ecryptfs-utils, as it appears to be in use:" 1>&2
echo "$out" 1>&2
fi
# 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 "WARNING: Should not remove ecryptfs-utils, as it appears to be in use:" 1>&2
echo " [/home/$i/.ecryptfs]" 1>&2
fi
done
pam-auth-update --package --remove ecryptfs-utils
fi



exit 0