5

do not allow a directory to be deleted but make new files in it?

view full story
linux-howto

http://unix.stackexchange.com – The question in my assignment says this: create a directory temp with all permissions for everybody, that cannot be deleted and copy hello.sh in this directory giving execution rights for everybody, but hello.sh will be executed as the owner. So I created a directory called temp and gave permissions like this: chmod 555 temp but when I try to cp hello.sh to temp I get an error as temp has the permissions 555. What does the prof exactly mean? How do I not allow a directory to be deleted but copy files into it? (HowTos)