Permission on monkeysphere ids

This commit is contained in:
Bob Mottram 2016-04-29 19:47:48 +01:00
parent afb9db2d39
commit 1619659805
2 changed files with 8805 additions and 8803 deletions

View File

@ -5373,6 +5373,7 @@ function install_monkeysphere {
mkdir /home/$MY_USERNAME/.monkeysphere mkdir /home/$MY_USERNAME/.monkeysphere
chmod 755 /home/$MY_USERNAME/.monkeysphere chmod 755 /home/$MY_USERNAME/.monkeysphere
echo "$MY_USERNAME <${MY_EMAIL_ADDRESS}>" > /home/$MY_USERNAME/.monkeysphere/authorized_user_ids echo "$MY_USERNAME <${MY_EMAIL_ADDRESS}>" > /home/$MY_USERNAME/.monkeysphere/authorized_user_ids
chmod 644 /home/$MY_USERNAME/.monkeysphere/authorized_user_ids
chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.monkeysphere chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.monkeysphere
echo 'install_monkeysphere' >> $COMPLETION_FILE echo 'install_monkeysphere' >> $COMPLETION_FILE

View File

@ -144,6 +144,7 @@ su -c "monkeysphere gen-subkey $MY_GPG_PUBLIC_KEY_ID" - $MY_USERNAME
mkdir /home/$MY_USERNAME/.monkeysphere mkdir /home/$MY_USERNAME/.monkeysphere
chmod 755 /home/$MY_USERNAME/.monkeysphere chmod 755 /home/$MY_USERNAME/.monkeysphere
echo "$MY_USERNAME <${$MY_USERNAME@$HOSTNAME}>" > /home/$MY_USERNAME/.monkeysphere/authorized_user_ids echo "$MY_USERNAME <${$MY_USERNAME@$HOSTNAME}>" > /home/$MY_USERNAME/.monkeysphere/authorized_user_ids
chmod 644 /home/$MY_USERNAME/.monkeysphere/authorized_user_ids
chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.monkeysphere chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.monkeysphere
if [ -f /home/$MY_USERNAME/.muttrc ]; then if [ -f /home/$MY_USERNAME/.muttrc ]; then