Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
4 edited tags
| link
3 added 18 characters in body
source | link

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 profprofessor exactly meanmeant to ask here? How do I not allow a directory to be deleted but copy files into it?

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?

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 professor exactly meant to ask here? How do I not allow a directory to be deleted but copy files into it?

2 edited tags
| link
1
source | link