asherman@dino.ulowell.edu (Aaron Sherman) (10/28/90)
Hello all, My question is in regards to a SystemV machine that is losing track of /etc/utmp. The machine is a Stellar (Stardent) GS2000 running stellix2.0 (a SysV with BSDisms). The problem can be seen in the following outputs of who, and who -a (show ALL entries): --------------------------------------- who: bcourtne ttyp2 Oct 25 19:59 asherman ttyp1 Oct 27 19:08 (dino) reichert ttyp1 Oct 25 03:08 asherman ttyp6 Oct 20 03:42 reichert ttyp0 Oct 19 19:50 who -a: . system boot Oct 19 01:53 . run-level 2 Oct 19 01:53 2 0 S brc . Oct 19 01:53 old 15 id= mt term=0 exit=0 rc2 . Oct 19 01:53 old 21 id= s2 term=0 exit=0 xgetty . Oct 20 03:42 old 2271 id=XCn0 xgetty . Oct 19 01:53 old 124 id=XCn1 LOGIN tty00 Oct 19 01:53 old 125 bcourtne ttyp2 Oct 25 19:59 old 665 root ttyp0 Oct 23 16:45 old 6179 id= p0 term=-9 exit=2 asherman ttyp1 Oct 27 19:08 . 2769 (dino) iks ttyp2 Oct 26 12:30 old 1653 id= p2 term=-9 exit=2 reichert ttyp1 Oct 25 03:08 . 8019 asherman ttyp6 Oct 20 03:42 old 2262 reichert ttyp0 Oct 19 19:50 old 1661 root ttyp5 Oct 20 03:46 old 2294 id= p5 term=-9 exit=2 root ttyp6 Oct 20 03:46 old 2295 id= p6 term=-9 exit=2 root ttyp3 Oct 23 16:45 old 6181 id= p3 term=-9 exit=2 kosta ttyp4 Oct 23 16:47 old 6221 id= p4 term=-9 exit=2 ------------------------------------------ Problem is that I (asherman) am the only one logged in, and I am only logged in once. Now, this wouldn't be too much of a problem, but /bin/passwd checks /etc/utmp instead of getuid(2), so it won't let users change their passwords unless they HAPPEN to match their utmp entry. At first I thought that this was a problem with Xterm, so I replaced Xterm with a script that checks to see if it is a Console-window, and only run suid if it is (thus utmp only gets modified by the loggin window). This seems to have done nothing, so I'm at a loss. Any ideas? -AJS -- | asherman@dino.cpe.ulowell.edu or asherman%cpe@swan.ulowell.edu or | | {harvard,mit-eddie,m2c,etc}!ulowell!ul-cpe!asherman | | "That that is is that that is not is not is that it it is." | ------------------------------------------------------------------------------