Protecting access and sharing files