Article 56RRK Why I am being able to delete a root ownedfile?

Why I am being able to delete a root ownedfile?

by
coltson
from LinuxQuestions.org on (#56RRK)
Ok, there is this file "a" that has rwx permissions for everyone, so anyone can erase it.

I use cp to create "a2". a2 is created with has similar permissions, excepted that, for some reason, it does not allow members of other groups to write it. Then I use chown to make it to belong to root.

Yet, when I return to my normal user, I can erase it. How is that possible? And how I can avoid it?

Thanks for the help.latest?d=yIl2AUoC8zA latest?i=eo6pMOikYXc:6cV2ODsfzP4:F7zBnMy latest?i=eo6pMOikYXc:6cV2ODsfzP4:V_sGLiP latest?d=qj6IDK7rITs latest?i=eo6pMOikYXc:6cV2ODsfzP4:gIN9vFweo6pMOikYXc
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments