diff options
author | Jameson Graef Rollins <jrollins@phys.columbia.edu> | 2008-07-10 16:50:05 -0400 |
---|---|---|
committer | Jameson Graef Rollins <jrollins@phys.columbia.edu> | 2008-07-10 16:50:05 -0400 |
commit | 13298a58b39438ae9892194578b8b8f3d3b6013a (patch) | |
tree | 946b6de773d2f167824783d01910d47a2df6a243 /src/monkeysphere-server | |
parent | 5fadec09dcd44c4dcad657a0f3d96878b592b77b (diff) |
Added file permission check function, and fixed bug in key writing for
untranslated keys.
Diffstat (limited to 'src/monkeysphere-server')
-rwxr-xr-x | src/monkeysphere-server | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/monkeysphere-server b/src/monkeysphere-server index 9205b1d..a5497c2 100755 --- a/src/monkeysphere-server +++ b/src/monkeysphere-server @@ -141,6 +141,16 @@ update_users() { log "----- user: $uname -----" + if ! check_key_file_permissions "$uname" "$AUTHORIZED_USER_IDS" ; then + log "Improper permissions on authorized_user_ids file." + continue + fi + + if ! check_key_file_permissions "$uname" "$RAW_AUTHORIZED_KEYS" ; then + log "Improper permissions on authorized_keys file." + continue + fi + # make temporary directory TMPDIR=$(mktemp -d) |