From owner-freebsd-questions Mon Jun 15 20:36:13 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA22529 for freebsd-questions-outgoing; Mon, 15 Jun 1998 20:36:13 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from dan.emsphone.com (dan@dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA22448 for ; Mon, 15 Jun 1998 20:36:03 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.8.8/8.8.8) id WAA15349; Mon, 15 Jun 1998 22:34:47 -0500 (CDT) (envelope-from dan) Message-ID: <19980615223447.A15211@emsphone.com> Date: Mon, 15 Jun 1998 22:34:47 -0500 From: Dan Nelson To: Malartre , questions@FreeBSD.ORG Subject: Re: /root:"chmod 600 .*" nothing work now References: <3585D0EB.389AA3D7@aei.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.92.8i In-Reply-To: <3585D0EB.389AA3D7@aei.ca>; from "Malartre" on Mon Jun 15 21:56:59 GMT 1998 X-OS: FreeBSD 2.2.6-STABLE Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Jun 15), Malartre said: > Ok, I have play with chmod for the first time. > > #pwd: > /root > #chmod 600 .* > Unfortunately, sh, csh, and bash all match "." and ".." with the pattern ".*". You just have to be careful about wildcards. Zsh is the only shell I know of offhand that explicitly never lets a wildcard match "." or "..". What your command did was make "/home/.." (that is, "/") mode 600. To fix your particular problem, "chmod 755 /". -Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message