Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 5 Mar 2001 15:05:53 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 5 Mar 2001 15:05:43 -0500 Received: from hera.cwi.nl ([192.16.191.8]:41394 "EHLO hera.cwi.nl") by vger.kernel.org with ESMTP id ; Mon, 5 Mar 2001 15:05:37 -0500 Date: Mon, 5 Mar 2001 21:05:35 +0100 (MET) From: Andries.Brouwer@cwi.nl Message-Id: To: leitner@fefe.de, linux-kernel@vger.kernel.org Subject: Re: chown bug Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org From: Felix von Leitner If user !root says chown("/usr",-1,-1), he gets EPERM. Why? Because the standard says: The chown( ) function shall fail if: [EPERM] The effective user ID does not match the owner of the file, or .. Andries - 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/