From owner-freebsd-newbies Tue Jul 23 15: 0: 6 2002 Delivered-To: freebsd-newbies@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 517AB37B400 for ; Tue, 23 Jul 2002 15:00:03 -0700 (PDT) Received: from spork.pantherdragon.org (spork.pantherdragon.org [206.29.168.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id CDEE543E65 for ; Tue, 23 Jul 2002 15:00:02 -0700 (PDT) (envelope-from dmp@pantherdragon.org) Received: from sparx.pantherdragon.org (evrtwa1-ar10-4-61-236-062.evrtwa1.dsl-verizon.net [4.61.236.62]) by spork.pantherdragon.org (Postfix) with ESMTP id 5C748471D7; Tue, 23 Jul 2002 15:00:02 -0700 (PDT) Received: from pantherdragon.org (speck.techno.pagans [172.21.42.2]) by sparx.pantherdragon.org (Postfix) with ESMTP id 4E0C9FDA0; Tue, 23 Jul 2002 15:00:00 -0700 (PDT) Message-ID: <3D3DD1E0.3B9D34F9@pantherdragon.org> Date: Tue, 23 Jul 2002 15:00:00 -0700 From: Darren Pilgrim X-Mailer: Mozilla 4.76 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Dru Cc: Mack Lobell , freebsd-newbies@FreeBSD.ORG Subject: Re: Why does /bin/ls show dot-files when logged in as root? References: <20020723172703.M158-100000@x1-6-00-80-c8-3a-b8-46.kico2.on.cogeco.ca> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-newbies@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Dru wrote: > > On Tue, 23 Jul 2002, Mack Lobell wrote: > > > Hi, > > > > i have a stupid ls question. When i hit /bin/ls as root i get a list > > including dot-files. If i hit /bin/ls as a normal user i don't get any > > dot-files, how come? > > > > Is this configurable? > > Take a peek at /root/.cshrc Not quite. For example, my root account uses bash and there is no ls alias. However a straight "ls" will show dotfiles except for '.' and '..'. The reason for this is in ls(1): -A List all entries except for . and ... Always set for the super- user. So basically there's a bit of code in ls that adds -A to the effective commandline arguements when uid==0. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message