🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.sys5
Article #1110

Re: 'ls -n' opens password file for reading

#1110
From: Jeff
Date: Fri, 12 May 1989 16:51
20 lines
1446 bytes
In article <1326@rivm05.UUCP>, ccea3@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  |
  ----------------------------------------------------------------------------
Technical Details
Message-ID: <128@softop.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!dogie.macc.wisc.edu!uwvax!rutgers!att!alberta!ubc-cs!van-bc!softop!jeff
References: <1326@rivm05.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!dogie.macc.wisc.edu!uwvax!rutgers!att!alberta!ubc-cs!van-bc!softop!jeff
From: jeff@softop.UUCP (Jeff)
Newsgroups: comp.bugs.sys5,comp.sys.att,comp.unix.xenix
Subject: Re: 'ls -n' opens password file for reading
Summary: inode.h shows struct contains gid, uid, etc.
Message-ID: <128@softop.UUCP>
Date: 12 May 89 16:51:34 GMT
References: <1326@rivm05.UUCP>
Organization: Soft Options, Vancouver, BC, Canada
Lines: 20