[cs631apue] -A flag always set for super user?
Jan Schaumann
jschauma at stevens.edu
Sun Oct 13 15:33:15 EDT 2013
Tejas Nadkarni <tnadkarn at stevens.edu> wrote:
> How do we implement this from the man page?
Check if the effective uid of the process is 0. If so, default to '-A'
behaviour.
> The system ls doesn't enable this by default. Also running the system
> ls with sudo doesn't change it either.
That depends likely on the system on which you're running this. BSD
derived systems do default to this; Linux, for example, does not.
-Jan
More information about the cs631apue
mailing list