Setting folder permission so it isn't deletable, but everything else is allowed

Posted by user10324 on Ask Ubuntu See other posts from Ask Ubuntu or by user10324
Published on 2012-10-02T10:32:31Z Indexed on 2012/10/02 21:51 UTC
Read the original article Hit count: 159

Filed under:
|

I want to set permissions to a folder such that, when I'm normally logged in (meaning not as root), this folder isn't deletable, but I can still change the name of this folder and move in around in my system ?

IS this possible and if yes, how to set the permission ? I already tried different combinations for the permissions but couldn't figure out how to do it.

Also (side question), if some folder hast some permission set and I copy this folder, along with its contents (assuming I am allowed to read it) to a memory, are these permission preserved ? I suppose not, since under Windows I could delete the folder on the stick, even if under Ubuntu it isn't allowed to delete it...

© Ask Ubuntu or respective owner

Related posts about permissions

Related posts about directory