Let's just call this ```chmod()``` and also, I don't like ```tempf``` as a variable name. Isn't it a path?