Unfinished attempt to implement user-defined file permissions