Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

Why can't a normal user `chown` a file?

Why is the chown command root-only? Why can't non-root users use chown to give away files they own?
by

1 Answer

Amit8z4mc
You can launch the command but it will not work if you are not root. It is easy : imagine a user which can change a software to root user. It can add the setuid bit and, voilà, the guy is root ! So, the use can add the bit with chmod, but no chance to change the owner of files.

Login / Signup to Answer the Question.