Updated to allow users to specify permissions on files by their SHA1 in addition to filename