From owner-freebsd-questions Sun Feb 11 19:37:47 2001 Delivered-To: freebsd-questions@freebsd.org Received: from CI590846-B.lxintn1.ky.home.com (ci590846-b.lxintn1.ky.home.com [24.9.218.175]) by hub.freebsd.org (Postfix) with ESMTP id 2E76B37B401 for ; Sun, 11 Feb 2001 19:37:44 -0800 (PST) Received: (from root@localhost) by CI590846-B.lxintn1.ky.home.com (8.9.3/8.9.3) id WAA09385 for To:questions@freebsd.org; Sun, 11 Feb 2001 22:32:51 -0500 (EST) (envelope-from jim@freeze.org) Date: Sun, 11 Feb 2001 22:32:51 -0500 (EST) From: jim@freeze.org Message-Id: <200102120332.WAA09385@CI590846-B.lxintn1.ky.home.com> Subject: Re Mysterious user To: questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thanks for the code Dima, but it did not compile. I get % gcc -pipe lo.c /usr/tmp/ccHE93781.o: In function `main': /usr/tmp/ccHE93781.o(.text+0x2e): undefined reference to `logout' I checked the man 3 logout page, and it looks like the includes are correct, You are right about my question. I don't really care about how it got this way, but I do want to get rid of the bogus login. I looked in /dev and found dir /dev/ttyp[0-9] crw-rw-rw- 1 root wheel 5, 0 Feb 11 22:21 /dev/ttyp0 crw-rw-rw- 1 root wheel 5, 1 Feb 11 22:35 /dev/ttyp1 crw-rw-rw- 1 mfreeze tty 5, 2 Feb 11 22:21 /dev/ttyp2 crw-rw-rw- 1 root wheel 5, 3 Feb 11 22:21 /dev/ttyp3 crw-rw-rw- 1 root wheel 5, 4 Feb 11 22:32 /dev/ttyp4 crw-rw-rw- 1 root wheel 5, 5 Feb 11 22:31 /dev/ttyp5 crw-rw-rw- 1 root wheel 5, 6 Feb 11 22:35 /dev/ttyp6 crw-rw-rw- 1 root wheel 5, 7 Feb 11 15:38 /dev/ttyp7 crw-rw-rw- 1 root wheel 5, 8 Feb 10 15:37 /dev/ttyp8 crw-rw-rw- 1 root wheel 5, 9 Feb 1 01:46 /dev/ttyp9 When I (jfreeze) login, the owner:group is root:wheel. When mfreeze (or cfreeze) logs in I get the above (mfreeze:tty or cfreeze:tty respectively). When they logout via exit or logout, the owner:group stays the same. The listing above is after mfreeze logged in and immediately logged out. Now they show up under the users logged in. % w 10:38PM up 42 days, 15:59, 5 users, load averages: 0.02, 0.03, 0.07 USER TTY FROM LOGIN@ IDLE WHAT jfreeze v0 - 6:16PM 46 -bash (bash) jfreeze p1 - Sat03PM 5 ssh www.freeze.org -l mfreeze p2 - 10:17PM 16 - cfreeze p4 - 10:04PM - sendmail -fjim@freeze. cfreeze p7 - Sat03PM 6:59 - Also, I tried opening terminal till they wrapped. It did not change the /dev/ttyp# owner:group. Jim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message