utmp & wtmp problems in Solaris 2.3 - HELP!

utmp & wtmp problems in Solaris 2.3 - HELP!

Post by Tobias Weingartn » Sat, 27 Aug 1994 04:37:00



Hi

After using a simple program to fix up utmp when there are phantom
users on the system, my utmp problems now seem to be minor.  However,
there seems to be a definite problem with logging users in wtmp.

Last tells me:

weingart  pts/3        stan             Fri Aug 19 17:18 - 17:18  (00:00)
weingart  pts/3        donald.BrandonU. Tue Aug 16 14:06 - 17:50  (03:44)
weingart  pts/9        pc00029.pcs.bran Wed Aug 10 19:07 - 19:07  (00:00)
weingart  pts/7        pc00029.pcs.bran Wed Aug 10 17:54 - 17:54  (00:00)
weingart  pts/10       pc00029.pcs.bran Fri Aug  5 15:21 - 15:21  (00:00)
weingart  pts/9        pc00029.pcs.bran Fri Aug  5 14:03 - 14:04  (00:00)
weingart  pts/1        Lat2.BrandonU.CA Wed Aug  3 17:31 - 17:33  (00:02)
weingart  pts/10       pc00029.pcs.bran Thu Jul 21 12:08 - 12:09  (00:00)
weingart  pts/15       localhost        Sat Jul 16 17:05 - 17:05  (00:00)
weingart  pts/15       austin           Sat Jul 16 17:00 - 17:00  (00:00)

I *know* I have been on twice today, date tells me:

Thu Aug 25 19:31:29 CDT 1994


ship when the *logging* does not even work?  Does any blessed soul
have a patch that works?

Right now, it looks like xdm is screwing up, as all ftp/login sessions
seem to have been logged.  However, I can't confirm this.  For all I
know, it could be libc's routines that are screwed.

On an aside, does sun have a fix out that works for the utmp ghost-user
problem?

--Toby.
*----------------------------------------------------------------------------*

| Box 27, Beulah, MB |-----------------------------| Send E-Mail for resume, |
| R0M 0B0, Canada    | Unix Guru, Admin, Sys-Prgmr | and other details...    |
|----------------------------------------------------------------------------|
|      %SYSTEM-F-ANARCHISM, The operating system has been overthrown         |
*----------------------------------------------------------------------------*

 
 
 

utmp & wtmp problems in Solaris 2.3 - HELP!

Post by Stephen Karamat » Wed, 31 Aug 1994 11:46:17





>ship when the *logging* does not even work?  Does any blessed soul
>have a patch that works?

        I put in patch 101318-54, and my utmp problems have disappeared.  
It shows any entry for every command shell on the system.  101318-54 also
contains a utmpd daemon which expires old entries periodically.  The
utmpd in patch 101318-50 (the one on the CD's) is broken and may cause
deadlock problems.

        I also fully agree with your feeling about OS vendors leaving
administrators wide open with massive security defects in the OS.  
Imagine if aircraft pilots had half of their instrumentation broken!

Regards,

Academic Programmer/Advisor          Voice: (519) 253-4232 Ext. 3006
School of Computer Science           Fax:   (519) 973-7093
University of Windsor // Windsor, Ontario // Canada  N9B 3P4
--
  "All roles are dangerous.  The world tends to trap you in the role you
   play and it is always extremely hard to maintain a watchful mocking
   distance between onself as one appears to be and oneself as one
   actually is."                     James Baldwin

--

Academic Programmer/Advisor          Voice: (519) 253-4232 Ext. 3006
School of Computer Science           Fax:   (519) 973-7093
University of Windsor // Windsor, Ontario // Canada  N9B 3P4

 
 
 

utmp & wtmp problems in Solaris 2.3 - HELP!

Post by Ian Goldbe » Sat, 03 Sep 1994 05:27:43




>    I put in patch 101318-54, and my utmp problems have disappeared.  
>It shows any entry for every command shell on the system.  101318-54 also
>contains a utmpd daemon which expires old entries periodically.

I'm also running -54, and I no longer have utmp entries corresponding to
dead processes, thanks to utmpd.  However, since a root process must
write utmp entries (it is 644), I can't figure out how to get the person
logged in to the xterm (whose xdm runs from the Sun) recorded in the utmp.

I used to have something in Xstartup/Xreset to place/remove a utmp entry,
but now utmpd removes it as soon as Xstartup terminates.

Hints/Solutions?

---------.. ._ _.------------

Ian Goldberg  University of Waterloo PM+CS


 
 
 

utmp & wtmp problems in Solaris 2.3 - HELP!

Post by Casper H.S. D » Sat, 03 Sep 1994 17:16:28



>I'm also running -54, and I no longer have utmp entries corresponding to
>dead processes, thanks to utmpd.  However, since a root process must
>write utmp entries (it is 644), I can't figure out how to get the person
>logged in to the xterm (whose xdm runs from the Sun) recorded in the utmp.

In Solaris 2.3 there's a program called utmp_update that allows non-root
users to update their utmp entries.  Openwin xterm will use that
program.  You do need patch:
        101533-03: OpenWindows 3.3: utmp not being updated properly
for this to work.

Quote:>I used to have something in Xstartup/Xreset to place/remove a utmp entry,
>but now utmpd removes it as soon as Xstartup terminates.

Use another pid in utmpx entry.  (The pid of Xstartup's parent process,
if that sticks around)

Casper

 
 
 

utmp & wtmp problems in Solaris 2.3 - HELP!

Post by Ofer Lic » Sun, 04 Sep 1994 04:41:02





>>I used to have something in Xstartup/Xreset to place/remove a utmp entry,
>>but now utmpd removes it as soon as Xstartup terminates.

>Use another pid in utmpx entry.  (The pid of Xstartup's parent process,
>if that sticks around)

More details:

Xstartup's parent process is xdm and it does stick around.
The program most people use to make utmp entries from Xstartup
is called "sessreg".  So if Xstartup does "exec sessreg <args>"
Then sessreg will inherit the parent pid of Xstartup, namely, xdm,
which is a live process.  Then utmpd will not remove the entry.

 
 
 

utmp & wtmp problems in Solaris 2.3 - HELP!

Post by Ian Goldbe » Sun, 04 Sep 1994 13:05:29





>>I'm also running -54, and I no longer have utmp entries corresponding to
>>dead processes, thanks to utmpd.  However, since a root process must
>>write utmp entries (it is 644), I can't figure out how to get the person
>>logged in to the xterm (whose xdm runs from the Sun) recorded in the utmp.

>In Solaris 2.3 there's a program called utmp_update that allows non-root
>users to update their utmp entries.  Openwin xterm will use that
>program.  You do need patch:
>    101533-03: OpenWindows 3.3: utmp not being updated properly
>for this to work.

I noticed this program, and that it doesn't usually work.  (We have only seen
it work for _1_ user here.)  But thor.ece.uc.edu doesn't have that patch!
Where can I get it?  Can someone provide a pointer, URL, or a tar.gz?

---------.. ._ _.------------

Ian Goldberg  University of Waterloo PM+CS

gcd(a,b) { return(b?gcd(b,a%b):a); }

 
 
 

utmp & wtmp problems in Solaris 2.3 - HELP!

Post by Jian Hua » Thu, 08 Sep 1994 00:24:09


Hi,

On the old Sparc 2 running Sun OS 4.1.x, the screenblank program will take care of the monitor even if the machine is not running window. Do we have equivalent here in Solaris?

Thanks
Jian Huang

 
 
 

utmp & wtmp problems in Solaris 2.3 - HELP!

Post by Matus Uhlar Softwa » Tue, 20 Sep 1994 15:05:14


: Hi,

: On the old Sparc 2 running Sun OS 4.1.x, the screenblank program will take care of the monitor even if the machine is not running
^ Why didn't you write everything in this line ? it's very short line
perhaps...

: Thanks
: Jian Huang

--
Matus Uhlar,
Computer Centre of Technical University in Kosice, Slovakia

 
 
 

1. utmp/wtmp problems in Solaris 2.3

Hi All,

I know this has been beaten to death before, but I wasn't listening at
the time :(

We've got a machine with lots of users running Solaris 2.3 and sometimes
we get users who are not logged in but are shown in a "who" listing.  
Someone out there has figured out how to fix this!  Could you pass the
info/program(s) on to me?

This info is not in the FAQ, but if it's appropriate, I'd be glad to
place it on our anonymous ftp server for occasions like this :-)

Post or email and thanks for your help.

Best regards,

Tom

2. Y2K question

3. UTMP problem with Solaris 2.3 & tcsh.

4. libm.so.4?

5. HELP: Solaris 2.3 <---> Solaris 2.3 PPP link problems

6. SSH port forwarding with cygwin

7. HELP: Solaris 2.3 <---> Solaris 2.3 PPP link Problems

8. MASQ'ing a PPTP server with a Linux firewall (Kernel 2.2.12)

9. sessreg/xdm wtmp problem, Solaris 2.3

10. location of utmp wtmp in utmp.h

11. Utmp/wtmp logging problem. HELP.

12. runaway /var/adm/wtmp in Solaris 2.3

13. Solaris 2.3 and wtmp, wtmpx