strip permissions from public file