Gaining exclusive acccess to a file by changing the permissions and then setting the permissions back to what they were originally?

view story

http://serverfault.com – Are there any utilities that will record what the permissions of a file or folders were originally, set the permissions to exclusive access by the administrator, and then when the administrator is done working with the file or folders set the permissions back to what was recorded? (HowTos)