From owner-freebsd-questions Fri Dec 20 7: 5:36 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 30F9D37B401 for ; Fri, 20 Dec 2002 07:05:35 -0800 (PST) Received: from mail.bellavista.cz (mail.bellavista.cz [62.168.44.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id E6FB243ED8 for ; Fri, 20 Dec 2002 07:05:33 -0800 (PST) (envelope-from neuhauser@bellavista.cz) Received: from freepuppy.bellavista.cz (freepuppy.bellavista.cz [10.0.0.10]) by mail.bellavista.cz (Postfix) with ESMTP id 5098F5C; Fri, 20 Dec 2002 17:01:39 +0100 (CET) Received: by freepuppy.bellavista.cz (Postfix, from userid 1001) id 623282FDBAC; Fri, 20 Dec 2002 16:05:32 +0100 (CET) Date: Fri, 20 Dec 2002 16:05:32 +0100 From: Roman Neuhauser To: Andrew Cutler Cc: freebsd-questions@freebsd.org Subject: Re: chown broken?? Message-ID: <20021220150532.GD6845@freepuppy.bellavista.cz> Mail-Followup-To: Andrew Cutler , freebsd-questions@freebsd.org References: <1040390551.921.36.camel@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1040390551.921.36.camel@localhost> User-Agent: Mutt/1.5.1i 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 # andrew@1stelement.com / 2002-12-21 00:22:32 +1100: > 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 .* apart from what others said about wildcard substitution: roman@freepuppy /usr 1005:1 > ls -l .* zsh: no matches found: .* roman@freepuppy /usr 1006:1 > IOW, the behavior is actually shell- (and shell configuration-) dependent. zsh (at least with my settings) would protect you from yourself in this situation. -- If you cc me or remove the list(s) completely I'll most likely ignore your message. see http://www.eyrie.org./~eagle/faqs/questions.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message