home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.hp
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!hp-cv!hp-pcd!hpcvusn!hpcvusd.cv.hp.com!daves
- From: daves@hpcvusd.cv.hp.com (Dave Serisky)
- Subject: Re: xterm and utmp
- Message-ID: <1992Dec11.215051.5227@hpcvusn.cv.hp.com>
- Sender: nobody@hpcvusn.cv.hp.com (Nobody - UID must be 99999)
- Nntp-Posting-Host: hpcvusd.cv.hp.com
- Organization: Hewlett-Packard Co., Corvallis, OR, USA
- References: <Bz0M0H.6Br@helios.physics.utoronto.ca>
- Date: Fri, 11 Dec 1992 21:50:51 GMT
- Lines: 33
-
- In article <Bz0M0H.6Br@helios.physics.utoronto.ca>, harrison@faraday.physics.utoronto.ca (David Harrison) writes:
- |> We are running a locally modified xterm, originally hacked from a home-made
- |> X11R4 on a Sun. [Yes, I think we have a good reason for doing this, which
- |> I will comment on to individuals who want to know.]
- |>
- |> I attempted to move it to our HP9000/750 running HP-UX 8.07. Worked fine
- |> except that the /etc/utmp file wasn't being updated.
-
- Are you running xterm setuid root? It can't update the file if it can't
- write it.
-
- |> So, thinks I, time to convert to X11R5 anyhow. Got the HP unsupported
- |> distribution from iworks. It made beautifully. Except the dead-stock
- |> xterm from that distribution doesn't update /etc/utmp either.
- |>
- |> I did a "strings ... | grep tmp" on the xterm shipped by HP. It doesn't
- |> have either "/etc/utmp" or "/etc/wtmp" in it; the X11R4 xterm I made from
- |> source has both; the X11R5 one from source has only "/etc/utmp".
- |>
- |> Can someone from HP or elsewhere comment on what's going on here? I can
- |> see a number of ways in main.c to fix this problem, but somebody has obviously
- |> already done it for the shipped binary. Can anybody share the "wheel" so I
- |> don't have to re-invent it?
-
- Depending on the release and how it was linked, it may or may not be
- using shared libraries. If it is using shared libraries (specifically
- libc), there should be no reference to "/etc/utmp" in the file since it
- is all handled by the SYSV lib calls (see getut(3C) for more info).
-
- So, setuid root it and try it again...
-
- -- Dave Serisky
- email - daves@cv.hp.com
-