From owner-freebsd-questions Tue Jun 16 08:18:07 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA22952 for freebsd-questions-outgoing; Tue, 16 Jun 1998 08:18:07 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from java.dpcsys.com (java.dpcsys.com [206.16.184.7]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA22852 for ; Tue, 16 Jun 1998 08:17:58 -0700 (PDT) (envelope-from dan@dpcsys.com) Received: from localhost (dan@localhost) by java.dpcsys.com (8.8.7/8.8.2) with SMTP id IAA24132; Tue, 16 Jun 1998 08:21:36 -0700 (PDT) Date: Tue, 16 Jun 1998 08:21:35 -0700 (PDT) From: Dan Busarow To: Johann Visagie cc: Malartre , questions@FreeBSD.ORG Subject: Re: /root:"chmod 600 .*" nothing work now In-Reply-To: <19980616120752.H26576@cityip.co.za> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 16 Jun 1998, Johann Visagie wrote: > > BTW, the command you wanted was chmod 600 .??* > > But that would miss out any file whose name is a period followed by a single > character, e.g. ".a". The original poster wanted to chmod root's dotfiles, .login, .cshrc etc. But you're right that mine would miss single character dot files. > What about: > > $ chmod 600 .??* .[!.] I always try ls -l pattern before doing anything potentially dangerous that relyies on shell expansion. Knowing for certain what the expansion will be can be comforting when issuing an rm -r :) Dan -- Dan Busarow 949 443 4172 DPC Systems / Beach.Net dan@dpcsys.com Dana Point, California 83 09 EF 59 E0 11 89 B4 8D 09 DB FD E1 DD 0C 82 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message