touching up changelog; switch ${shlibs:Depends} to ${misc:Depends} to mollify lintian.
[monkeysphere.git] / src / share / ma / update_users
index c180b5689717e0e3b1810478b0ac7957ecd6ad78..195e9828f8c49a937647963b9a4dbab567a86559 100644 (file)
@@ -80,6 +80,7 @@ for uname in $unames ; do
     # translating ssh-style path variables
     authorizedUserIDs=$(translate_ssh_variables "$uname" "$AUTHORIZED_USER_IDS")
     if [ -s "$authorizedUserIDs" ] ; then
+       log debug "authorized_user_ids file found."
        # check permissions on the authorized_user_ids file path
        if check_key_file_permissions "$uname" "$authorizedUserIDs" ; then
             # copy user authorized_user_ids file to temporary
@@ -87,6 +88,7 @@ for uname in $unames ; do
            cat "$authorizedUserIDs" > "$TMP_AUTHORIZED_USER_IDS"
 
            # export needed variables
+           export USER="$uname"
            export AUTHORIZED_KEYS
            export TMP_AUTHORIZED_USER_IDS