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 > / usr / bin / | server ip : 172.67.156.115 your ip : 172.69.214.35 H O M E |
Filename | /usr/bin/ecryptfs-umount-private |
Size | 802 |
Permission | rwxr-xr-x |
Owner | root : root |
Create time | 27-Apr-2025 10:01 |
Last modified | 16-Jan-2016 08:29 |
Last accessed | 05-Jul-2025 15:46 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
#!/bin/sh -e
# This script unmounts a user's private ecryptfs folder
# and clears the kernel keyring of the relevant keys
#
# Original by Michael Halcrow, IBM
# Extracted to a stand-alone script by Dustin Kirkland <[email protected]>
TEXTDOMAIN="ecryptfs-utils"
if grep -qs "$HOME/.Private $PWD ecryptfs " /proc/mounts 2>/dev/null; then
pwd_mounted=1
fi
if /sbin/umount.ecryptfs_private; then
for sig in `cat "$HOME/.ecryptfs/Private.sig"`; do
for key_id in `keyctl list @u | grep "$sig$" | awk -F: '{print $1}'`; do
keyctl unlink "$key_id" @u
done
done
if [ "$pwd_mounted" = "1" ]; then
echo
echo `gettext "INFO:"` `gettext "Your private directory has been unmounted."`
echo `gettext "INFO:"` `gettext "To see this change in your current shell:"`
echo " cd $PWD"
echo
fi
fi
# This script unmounts a user's private ecryptfs folder
# and clears the kernel keyring of the relevant keys
#
# Original by Michael Halcrow, IBM
# Extracted to a stand-alone script by Dustin Kirkland <[email protected]>
TEXTDOMAIN="ecryptfs-utils"
if grep -qs "$HOME/.Private $PWD ecryptfs " /proc/mounts 2>/dev/null; then
pwd_mounted=1
fi
if /sbin/umount.ecryptfs_private; then
for sig in `cat "$HOME/.ecryptfs/Private.sig"`; do
for key_id in `keyctl list @u | grep "$sig$" | awk -F: '{print $1}'`; do
keyctl unlink "$key_id" @u
done
done
if [ "$pwd_mounted" = "1" ]; then
echo
echo `gettext "INFO:"` `gettext "Your private directory has been unmounted."`
echo `gettext "INFO:"` `gettext "To see this change in your current shell:"`
echo " cd $PWD"
echo
fi
fi