ecryptfs-migrate-home only shows usage information
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ecryptfs-utils (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
sudo ecryptfs-
(where zgantner is my username) does not work for me.
I only see the usage information.
My workaround was to change
DO_ENCRYPT=
while true; do
[ -z "$1" ] && break
case "$1" in
;;
*)
;;
esac
done
into
DO_ENCRYPT=1
USER_NAME=zgantner
#while true; do
# [ -z "$1" ] && break
# case "$1" in
# -u|--user)
# DO_ENCRYPT=1
# USER_NAME="$2"
# shift 2
# ;;
# *)
# usage
# ;;
# esac
#done
I am no shell scripting guru, so I am not sure what the code in the while loop actually does.
Could it be that it works nicely with bash, but not with dash?
ls -lh /bin/sh
gives
lrwxrwxrwx 1 root root 4 Mar 29 20:53 /bin/sh -> dash
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: ecryptfs-utils 96-0ubuntu3 [modified: usr/bin/
ProcVersionSign
Uname: Linux 3.2.0-23-generic x86_64
ApportVersion: 2.0.1-0ubuntu7
Architecture: amd64
Date: Mon May 21 19:08:22 2012
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta amd64 (20120328)
ProcEnviron:
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: ecryptfs-utils
UpgradeStatus: No upgrade log present (probably fresh install)
Marking this bug as invalid since there has been no activity and I can no longer reproduce it.
I've tested with `sudo ecryptfs- migrate- home -u foo`, `sudo dash /usr/bin/ ecryptfs- migrate- home -u foo`, and `sudo sh /usr/bin/ ecryptfs- migrate- home -u foo` on an updated amd64 12.04 system (ecryptfs-utils 96-0ubuntu3.1) and they all worked.