777 permissions means that everyone has read, write and execute permission. In order to protect one’s own files in such a directory from being deleted or overwritten by another user, the directory has to be set up with 1777 permissions, i.e. drwxrwxrwt. See the tutorial below…