Subject: Re: bin/847: `ls' always root always turns on `-A'
To: Chris G Demetriou <Chris_G_Demetriou@LAGAVULIN.PDL.CS.CMU.EDU>
From: UNIX hacker and security officer <greywolf@lonewolf.ithaca.com>
List: netbsd-bugs
Date: 03/07/1995 10:42:22
While I remember the -A option being automagically invoked for the
super-user (didn't find it on the man page, but in the code -- must not
have read the man page closely enough!), it would most certainly be nice
to provide a +A or something to that effect in order to turn the -A
*off* for the super-user.

BTW:  From the SunOS 4.1+ manpage for ls (1):

###########

LS(1V)                   User Commands                     LS(1V)

NAME
     ls - list the contents of a directory

SYNOPSIS
     ls [ -aAcCdfFgilLqrRstu1 ] filename ...

...

OPTIONS
...
     -a   List all  entries;  in  the  absence  of  this  option,
          entries  whose  names  begin  with a `.' are not listed
          (except for  the  super-user,  for  whom  ls,  but  not
          /usr/5bin/ls,  normally  prints  even  files that begin
          with a `.').
					     
     -A   (ls only)  Same as -a, except that `.' and `..' are not
          listed.
...

Scum Microsystems, Inc.  Last change: 2 October 1989                  2

###########

Now, it doesn't show that the super-user has this flag set, but note what
"-a" says (it's kind of confusing, though)...

--
** Stand by -- one to beam up **
 ______________ ___   ________ _____WHO: Greywolf (unto death)
/ ___\ _ \ __\ V / \  / /__ \| | __/WHAT: UNIX System Mangler...er, Admin
\ \| |   < _| ` ' \ '` / \/ /|_| _/ WHERE: Ithaca SW,  1301 Marina Village Pkwy
 \___|_|\_\__\|_|  \/\/ \__/___/_|  Alameda, CA 94501 (415) 332-2344 x7255
"If Jesus is the answer, the question must be pretty absurd."