From owner-freebsd-questions Fri Dec 20 5:44:51 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9FA5D37B401 for ; Fri, 20 Dec 2002 05:44:49 -0800 (PST) Received: from post-20.mail.nl.demon.net (post-20.mail.nl.demon.net [194.159.73.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id C494843EE8 for ; Fri, 20 Dec 2002 05:44:48 -0800 (PST) (envelope-from cls@raggedclown.net) Received: from [212.238.197.102] (helo=mailhost.raggedclown.net) by post-20.mail.nl.demon.net with esmtp (Exim 3.36 #1) id 18PNSJ-000Ha6-00 for freebsd-questions@freebsd.org; Fri, 20 Dec 2002 13:44:48 +0000 Received: from localhost (localhost [127.0.0.1]) by mailhost.raggedclown.net (Ragged Clown Mail Gateway [dawn]) with ESMTP id E3A25163D for ; Fri, 20 Dec 2002 14:44:46 +0100 (CET) Received: from willow.raggedclown.net (willow.raggedclown.intra [192.168.1.10]) by mailhost.raggedclown.net (Ragged Clown Mail Gateway [dawn]) with ESMTP id 69E79F76 for ; Fri, 20 Dec 2002 14:44:31 +0100 (CET) Received: by willow.raggedclown.net (Ragged Clown Host [willow], from userid 1009) id 356F0225D9; Fri, 20 Dec 2002 14:44:32 +0100 (CET) Date: Fri, 20 Dec 2002 14:44:32 +0100 From: Cliff Sarginson To: freebsd-questions@freebsd.org Subject: Re: chown broken?? Message-ID: <20021220134432.GE85754@raggedclown.net> References: <1040390551.921.36.camel@localhost> <20021220132634.GA6498@submonkey.net> <1040391396.921.43.camel@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1040391396.921.43.camel@localhost> User-Agent: Mutt/1.5.1i X-Virus-Scanned: by AMaViS 0.3.12pre8 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Dec 21, 2002 at 12:36:36AM +1100, Andrew Cutler wrote: > I realise that now, but why does chown not ignore the match since most > other commands simply return? > . is a directory -- ignored > .. is a directory -- ignored > > This inconsistency is not logical. > It is not inconsistent, the -R flag has told it to wend it's way through the directory hierarchy. And chown unadorned can change the ownerships of a directory as well. Maybe you want a flag that own recurses down the hierarchy and not up it ... ? Anyway the behaviour is consistent with other system commands that take a recursion flag (cp for example). Remember, sympathy is not abundant when mistakes are made as root .. since we have all been there .. :) or :( .. depending on your point of view. -- Regards Cliff Sarginson The Netherlands [ This mail has been checked as virus-free ] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message