[comp.sys.next] fingerd fixed

ddj@zardoz.club.cc.cmu.edu (Doug DeJulio) (03/02/91)

>> (I have the supposedly latest finger and fingerd sources from uunet,
>> which will hopefully fix NeXT's broken versions, but can't compile
>> them).

>(Actually, I thought only fingerd was broken???)

Oops, I've already done it and forgot to tell anyone except NeXT.  All
I did was to grab the fingerd sources off uunet.uu.net, change the
pathnames.h file from /usr/bin/finger to /usr/ucb/finger, compile it
via "cc -object -O -o fingerd fingerd.c", and install it in the
apropriate place.  Now people can finger USERID@zardoz.club.cc.cmu.edu
and get something other than a list of who'se logged in.  Should I
make a tarfile with a Makefile that'll let people simply type "make
install", and drop it at an archive site?

NeXT told me that they forwarded the information to their software
engineering folks.

Finger is broken too, as far as I'm concerned.  When you finger
userid, you get their entry *twice* at least.
-- 
DdJ
ddj@zardoz.club.cc.cmu.edu (NeXT mail)
dd26+@andrew.cmu.edu (AMS/ATK mail)

eps@toaster.SFSU.EDU (Eric P. Scott) (03/04/91)

In article <12178@pt.cs.cmu.edu> ddj@zardoz.club.cc.cmu.edu
	(Doug DeJulio) writes:
>... "cc -object -O -o fingerd fingerd.c", ...

Toss in a -bsd and a -s while you're at it.

>Finger is broken too, as far as I'm concerned.  When you finger
>userid, you get their entry *twice* at least.

I haven't been able to find any problems with finger.
The only time you get multiple listings is when someone's logged
in more than once; this is not a bug.  (Try  mesg n  on one of
them.)

					-=EPS=-
-------
begin 755 fingerd
M_NWZS@````8````!`````0````0```*T`````0````$```(4````````````
M``````````````````3T```"T```!.P````'````!P````<`````7U]T97AT
M`````````````%]?5$585``````````````````````"[````M`````!````
M``````````````````````!?7V9V;6QI8E]I;FET,```7U]415A4````````
M`````````NP```$P```%O`````(``````````````````````````%]?9G9M
M;&EB7VEN:70Q``!?7U1%6%0````````````````$'`````````;L`````@``
M````````````````````````7U]C<W1R:6YG`````````%]?5$585```````
M``````````0<````1```!NP````````````````````"``````````!?7V1A
M=&$`````````````7U]$051!````````````````!&````",```',`````(`
M`````````````````````````%]?8G-S``````````````!?7T1!5$$`````
M```````````$[````````````````@```````````````0``````````7U]C
M;VUM;VX``````````%]?1$%400````````````````3P````!``````````$
M```````````````!```````````````&````,````!0````L!0```"]U<W(O
M<VAL:6(O;&EB<WES7W,N0BYS:&QI8@`````"````&```````````````````
M```````%````6`````$````2````````````````````````````````````
M````````````````````````````````````````````````````````````
M($^>_``,(!@N@"/````$9"](``0CR```!&A2@.6`T<`O2``((\@```1@8?\`
M``!(2KD$`0*P9Q@@>00!`K!.D$JY!`$!I&<(('D$`0&D3I!*N0``!/!G!F'_
M```$ED*Y!`$%L&'_````/BZ`8?\%`"1"3G%.5O_\+7P```+L__Q.<0RN```$
M'/_\9!0@;O_\(&@`!")N__P@D5"N__Q@XDY>3G5.5OLL2.<P.$AY!`$``$AX
M!`!(;OLT8?\%`"14WOP`#$J`9@Q(>``!8?\%`"/B6$\M?```!!S_-"`.!H#_
M__LT1>[_."0.68)(>0``!",O`&'_!0`O>"!`)(A03V<F#!``+V86#"@`5P`!
M9P@,*`!W``%F!B2\```$*%A*M(IG!$*`8,1(;OLL8?\%`"K\6$]*@&P.2'D`
M``0K8?\```%V6$]A_P4`(]IR_[*`9U!*@&9:+R[[+$7Y!0`BFDZ26$]R`;*N
M^S!G&$AX``$O+OLP8?\%`"(X+R[[,$Z2WOP`#$AN_S1(>0``!#!A_P4`(PY(
M>``!8?\%`![DWOP`#$AY```$0&'_```!#%A/+R[[,&'_!0`@Y$AY```$12\N
M^RQA_P4`(R`H0-[\``Q*C&8.2'D```1'8?\```#:6$]"@D?Y!`$`%$7K``1@
M``".<@JR@V8X4Y-K!"!28!I*.00!`"5L&B`31("PN00!`"!L#B!Y!`$`&!"\
M``U2DF`.+PM(>``-8?\%`!YX4$]3DVL((%(0@U*28$)*.00!`"5L+"`31("P
MN00!`"!L("!Y!`$`&!`#$(`,```*9P12DF`:+PL@>00!`!@4$&`$+PL4`R\"
M8?\%`!XJ4$]3E&L.0>P`!")0%!$@`E*08`HO#&'_!0`=]EA/)@!R_[*#9@#_
M4$*G8?\%`"((3.X<#/L83EY.=4Y6```O.00!!;!A_P4`+6HO`"\N``A(>0``
M!$Y(>00!`"AA_P4`(E1(>``!8?\%`"',3EY.=04`/6H$`094!0`]9`0!!E`%
M`#U>!`$&1`4`/5@$`09`!0`]4@0!!CP%`"10!`$&.`4`)$H$`08T!0`RE@0!
M!C`%`"16!`$&+`4`)$0$`08<!0`D+`0!!A@%`"0F!`$&%`4`)"`$`080!0`D
M/@0!!B@%`"1<!`$&2`4`)!H$`08,!0`D,@0!!B0%`"04!`$&"`4`)`X$`08$
M!0`D.`0!!B`%`"AD!`$&``4`+L0$`07\```$9`0!!DP```1H!`$%]`4`*0P$
M`07P!0`I!@0!!>P%`"D`!`$%Z`4`*1($`07D!0`E1@0!!>`%`"GD!`$%W`4`
M,H0$`078!0`M>@0!!=0%`"(*!`$%T`4`*/H$`07,!0`DL`0!!<@```1@!`$%
MP`4`(+0$`06\!0`@W@0!!;AF:6YG97(`(`D-"@`M;`!P:7!E`"]U<W(O=6-B
M+V9I;F=E<@!F;W)K`'(`9F1O<&5N`&9I;F=E<F0Z("5S.B`E<PT*````````
M`````````$`H(RD@0V]P>7)I9VAT("AC*2`Q.3@S(%1H92!296=E;G1S(&]F
M('1H92!5;FEV97)S:71Y(&]F($-A;&EF;W)N:6$N"B!!;&P@<FEG:'1S(')E
M<V5R=F5D+@H`0"@C*69I;F=E<F0N8PDU+C8@*$)E<FME;&5Y*2`V+S$O.3``
`
end

ddj@zardoz.club.cc.cmu.edu (Doug DeJulio) (03/04/91)

>>Finger is broken too, as far as I'm concerned.  When you finger
>>userid, you get their entry *twice* at least.
>
>I haven't been able to find any problems with finger.
>The only time you get multiple listings is when someone's logged
>in more than once; this is not a bug.  (Try  mesg n  on one of
>them.)

Script started on Sun Mar  3 23:29:15 1991
zardoz 1 % w
 11:29pm  up 1 day, 22:47,  3 users,  load average: 0.22, 0.17, 0.16
User     tty       login@  idle   JCPU   PCPU  what
ddj      console  10:49pm    40                -
ddj      ttyp1    10:49pm            2      1  /usr/bin/emacs /Users/ddj/.artic
ddj      ttyp3    11:04pm            3         script 
zardoz 2 % finger guest
Login name: guest                       In real life: Harry Q. Bovik
Directory: /Users/guest                 Shell: /bin/csh
Never logged in.
Plan:
Turist account.

Login name: guest                       In real life: Harry Q. Bovik
Directory: /Users/guest                 Shell: /bin/csh
Never logged in.
Plan:
Turist account.
zardoz 3 % 

script done on Sun Mar  3 23:29:23 1991

-- 
DdJ

eps@toaster.SFSU.EDU (Eric P. Scott) (03/04/91)

Oh-ho!  OK, we have a two-level NetInfo hierarchy; all our users
are in the root.  If a username appears in both domains, finger
displays it twice.  I'm not convinced this is a bug; after all,
they are separate entries, and could have (for example) different
realnames (=gecos fields for you traditionalists).

					-=EPS=-

ddj@zardoz.club.cc.cmu.edu (Doug DeJulio) (03/04/91)

In article <1395@toaster.SFSU.EDU> eps@cs.SFSU.EDU (Eric P. Scott) writes:
>Oh-ho!  OK, we have a two-level NetInfo hierarchy; all our users
>are in the root.  If a username appears in both domains, finger
>displays it twice.  I'm not convinced this is a bug; after all,
>they are separate entries, and could have (for example) different
>realnames (=gecos fields for you traditionalists).

Well, my machine is totally local with respect to NetInfo; I don't
share the database with any other NeXT machines.  All the users I've
added were added either with the user manager or with "niload passwd .
< file".  It's true, "nidump passwd ." and "nidump passwd /" both give
me the same password file.  What can I do about this?  I don't want
users' entries to show up twice when a user is fingered.
-- 
Doug DeJulio
ddj@zardoz.club.cc.cmu.edu

glaeske@plains.NoDak.edu (Brian Glaeske) (03/05/91)

In article <12196@pt.cs.cmu.edu> ddj@zardoz.club.cc.cmu.edu (Doug DeJulio) writes:
>me the same password file.  What can I do about this?  I don't want
>users' entries to show up twice when a user is fingered.
>--
>Doug DeJulio
>ddj@zardoz.club.cc.cmu.edu

On my machine, and other UNIX machines I have worked on, finger will list
the person as many times as the person is logged on.  For instance, if I did
a finger right now I would get finger info 3 times.  It is sort of like 'w'
which shows an individual line for each time you are logged in.

--
Brian Glaeske
 -  /|                        glaeske@plains.NoDak.edu  [Internet]
  o.O`   --Ooop ACK!!         glaeske@plains            [BITNET  ]
=(___)=                       ..!uunet!plains!glaeske   [UUCP    ]
   U    "Bloom County Forever!!"

eps@toaster.SFSU.EDU (Eric P. Scott) (03/06/91)

In article <8700@plains.NoDak.edu> glaeske@plains.NoDak.edu
	(Brian Glaeske) writes:
>On my machine, and other UNIX machines I have worked on, finger will list
>the person as many times as the person is logged on.  For instance, if I did
>a finger right now I would get finger info 3 times.  It is sort of like 'w'
>which shows an individual line for each time you are logged in.

That's true, and that's normal.  It turns out in Doug's cases
that he's attempting to do "traditional UNIX management" by
editing /etc/passwd and then niloading.  I asked him to try
cleaning out /etc/passwd, and his problem went away.

					-=EPS=-

ddj@zardoz.club.cc.cmu.edu (Doug DeJulio) (03/06/91)

Ack.  The problem was that I had the users listed twice -- once in
NetInfo, and once in /etc/passwd.  Removing the /etc/passwd file
"fixed" the problem.

ACK!  ICK!
-- 
DdJ

matthews@lewhoosh.umd.edu (Mike Matthews) (03/07/91)

In article <12242@pt.cs.cmu.edu> ddj@zardoz.club.cc.cmu.edu (Doug DeJulio) writes:
>Ack.  The problem was that I had the users listed twice -- once in
>NetInfo, and once in /etc/passwd.  Removing the /etc/passwd file
>"fixed" the problem.
>
>ACK!  ICK!

Ack, Ick is right!  The /etc/passwd file is read during bootstrap, so
deleting it might not have been wise.

I have /etc/passwd updated every Friday? morning by a nidump passwd . >
/etc/passwd in crontab.local.  I have no problems with finger -- at least,
not the same ones you were having.  Perhaps you had a descrepancy in NetInfo
and the flat file?

>DdJ
------
Mike Matthews, matthews@lewhoosh.umd.edu (NeXT)/matthews@umdd (bitnet)
------
All I ask is a chance to prove that money can't make me happy.

eps@toaster.SFSU.EDU (Eric P. Scott) (03/07/91)

In article <8168@umd5.umd.edu> matthews@lewhoosh.umd.edu (Mike Matthews) writes:
>                    The /etc/passwd file is read during bootstrap, so
>deleting it might not have been wise.

Ain't nothin' but root happening when the machine's booting.

You only need /etc/passwd if you're running YP (er, NIS) or using
GatorShare (and that's only because of a minor stupidity on their
part).
					-=EPS=-

rbp@investor.pgh.pa.us (Bob Peirce #305) (03/14/91)

In article <12242@pt.cs.cmu.edu> ddj@zardoz.club.cc.cmu.edu (Doug DeJulio) writes:
>Ack.  The problem was that I had the users listed twice -- once in
>NetInfo, and once in /etc/passwd.  Removing the /etc/passwd file
>"fixed" the problem.
>
The NeXT doesn't use /etc/passwd?  What other standard files aren't?  If
they aren't needed, why do they leave them in?
-- 
Bob Peirce, Pittsburgh, PA				  412-471-5320
...!uunet!pitt!investor!rbp			rbp@investor.pgh.pa.us