From: Daniel Kahn Gillmor Date: Mon, 2 Mar 2009 00:56:41 +0000 (-0500) Subject: proposed fix for issue 630; since m-a u operates on a saved copy of the users authori... X-Git-Tag: monkeysphere_0.24~31 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=c7ad73e5b9516c74a1e049322b89076f4878ddba;p=monkeysphere.git proposed fix for issue 630; since m-a u operates on a saved copy of the users authorized_user_ids file, we should only check filesystem permissions against the monkeysphere user, not the target user. --- diff --git a/src/share/ma/update_users b/src/share/ma/update_users index a48bbd1..67fabb2 100644 --- a/src/share/ma/update_users +++ b/src/share/ma/update_users @@ -88,12 +88,11 @@ for uname in $unames ; do cat "$authorizedUserIDs" > "$TMP_AUTHORIZED_USER_IDS" # export needed variables - export FILE_OWNER="$uname" export AUTHORIZED_KEYS export TMP_AUTHORIZED_USER_IDS # process authorized_user_ids file, as monkeysphere user - su_monkeysphere_user \ + FILE_OWNER="$MONKEYSPHERE_USER" su_monkeysphere_user \ ". ${SYSSHAREDIR}/common; process_authorized_user_ids $TMP_AUTHORIZED_USER_IDS" \ || returnCode="$?" else