chown bug

Felix von Leitner (leitner@fefe.de)
Mon, 5 Mar 2001 20:06:23 +0100


The man page says:

If the owner or group is specified as -1, then that ID is not
changed.

If user !root says chown("/usr",-1,-1), he gets EPERM. Why?
He explicitly told the kernel that he does not actually want to change
anything. Why would the kernel say EPERM?

Felix
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/