From owner-freebsd-questions Fri Dec 20 5:22:13 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 7A02737B401 for ; Fri, 20 Dec 2002 05:22:12 -0800 (PST) Received: from fry.serversaint.com (fry.serversaint.com [162.42.131.156]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0597B43EE5 for ; Fri, 20 Dec 2002 05:22:12 -0800 (PST) (envelope-from andrew@1stelement.com) Received: from cpe-144-132-174-149.nsw.bigpond.net.au ([144.132.174.149] helo=[192.168.0.106]) by fry.serversaint.com with esmtp (Exim 3.36 #1) id 18PN6N-0002de-00 for freebsd-questions@freebsd.org; Fri, 20 Dec 2002 13:22:08 +0000 Subject: chown broken?? From: Andrew Cutler To: freebsd-questions@freebsd.org Content-Type: text/plain Organization: Message-Id: <1040390551.921.36.camel@localhost> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.0 Date: 21 Dec 2002 00:22:32 +1100 Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - fry.serversaint.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [0 0] X-AntiAbuse: Sender Address Domain - 1stelement.com 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 Hello I just hosed one of my boxes by recursively setting all my file permissions incorrectly: $ su $ cd /data $ chown -R andrew:wheel * $ chown -R andrew:wheel .* For some reason the last command was interpreted as: $ chown -R andrew:wheel /* I just cvsuped to 4.7 a few days ago, still running 4.7-RELEASE GENERIC kernel. Why does the behaviour of chown change when u r root? Surely this is a bug? And what the hell is this crap in the man page about -R: -R Change the user ID and/or the group ID for the file hierarchies rooted in the files instead of just the files themselves. As always, any assistance is appreciated! Cheers, -- Andrew Cutler To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message