ecryptfs-migrate-home only shows usage information

Bug #1002386 reported by Zeno Gantner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ecryptfs-utils (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

sudo ecryptfs-migrate-home -u zgantner

(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
               -u|--user)
                       DO_ENCRYPT=1
                       USER_NAME="$2"
                       shift 2
               ;;
               *)
                       usage
               ;;
       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/ecryptfs-migrate-home]
ProcVersionSignature: Ubuntu 3.2.0-23.36-generic 3.2.14
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)

Revision history for this message
Zeno Gantner (zeno-gantner) wrote :
Revision history for this message
Tyler Hicks (tyhicks) wrote :

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.

Changed in ecryptfs-utils (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.