allow the user to set a file or a folder to a public state