Skip to contentSkip to conversation

chown bug

DISCUSSION Felix von Leitner 1 participant 1 message Mar 5, 2001

lore
Share & tools
lore
#0 lore raw

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