summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2009-03-01 19:56:41 -0500
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2009-03-01 19:56:41 -0500
commitc7ad73e5b9516c74a1e049322b89076f4878ddba (patch)
tree22a538c36d3ee9aaa04cebcfe4a75084a0961017
parenta9e9b3ae93b43b00700c379937895017bb530b08 (diff)
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.
-rw-r--r--src/share/ma/update_users3
1 files changed, 1 insertions, 2 deletions
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