Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Feb 2001 22:32:51 -0500 (EST)
From:      jim@freeze.org
To:        questions@freebsd.org
Subject:   Re Mysterious user
Message-ID:  <200102120332.WAA09385@CI590846-B.lxintn1.ky.home.com>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200102120332.WAA09385>