'ls -n' opens password file for reading
Jeff
jeff at softop.UUCP
Sat May 13 02:51:34 AEST 1989
In article <1326 at rivm05.UUCP>, ccea3 at rivm.UUCP (Adri Verhoef) writes:
> The command 'ls -n' fails with '/etc/passwd file cannot be
> opened for reading' if the password file is missing, or it
> fails with '/etc/group file cannot be opened for reading'
> if the group file is missing.
>
> -Flame on-
> 'ls -n' does not need to open any password or group file!
> -Flame off-
I had never considered this before. Inspection of inode.h (Xenix 2860
shows that the inode contains uid & gid, not username and groupname.
Surely then 'ls -n' is the only version that should work if the files
ARE missing?????
--
----------------------------------------------------------------------------
| Jeff Tate | 2425 Pandora Street, Vancouver, BC, Canada |
| van-bc!softop!jeff | (604) 254-4583 |
----------------------------------------------------------------------------
More information about the Comp.unix.xenix
mailing list