Path: utzoo!attcan!uunet!tank!ncar!zaphod.mps.ohio-state.edu!samsung!know!cs.utexas.edu!hellgate.utah.edu!helios.ee.lbl.gov!epb2.lbl.gov!envbvs From: envbvs@epb2.lbl.gov (Brian V. Smith) Newsgroups: comp.windows.x Subject: Re: How to get xdm to make wtmp and utmp file entries? Message-ID: <5728@helios.ee.lbl.gov> Date: 1 Jun 90 16:44:09 GMT References: <5723@helios.ee.lbl.gov> Sender: usenet@helios.ee.lbl.gov Reply-To: envbvs@epb2.lbl.gov (Brian V. Smith) Distribution: comp Organization: lbl Lines: 32 X-Local-Date: 1 Jun 90 09:44:09 PDT In article , mjd@central.cis.upenn.edu (Mark-Jason Dominus) writes: |> In article <5723@helios.ee.lbl.gov> envbvs@epb2.lbl.gov (Brian V. Smith) writes: |> > mjd@central.cis.upenn.edu (Mark-Jason Dominus) writes: |> > |> |> > |> Our xdm's don't seem to be logging logins and logouts in the |> > |> /etc/wtmp and /etc/utmp files. |> > |> > The -ls is required to make it write in the /etc/wtmp |> > file. The -ls also makes it read and execute your .login file. |> |> Thanks for the +ut tip; I must have missed it when I read |> the man page. But neither the R3 nor the R4 man pages say |> that -ls makes xterm write a wtmp entry, and, in fact, we |> had the -ls option set already, and no wtmp entries. |> |> Does it work for you? There is something strange that I didn't notice at first. You must use BOTH +ut and -ls to get xterm to write to both files. If you only specify +ut, you will see the use logged in (/etc/utmp), but the "last" command (/etc/wtmp) shows nothing for that user. The -ls option *BY ITSELF* doesn't seem to do anything with either file, but both options together will write to both files. _____________________________________ Brian V. Smith (bvsmith@lbl.gov) Lawrence Berkeley Laboratory I don't speak for LBL, these non-opinions are all mine.