This is the mail archive of the
libc-alpha@cygnus.com
mailing list for the glibc project.
ut_id questions
- To: libc-alpha@gnu.org
- Subject: ut_id questions
- From: Daniel Jacobowitz <drow@false.org>
- Date: Tue, 27 Apr 1999 22:54:03 -0400
- Mail-Followup-To: libc-alpha@gnu.org
There seems to absolutely no convention for what values to put in
ut_id in the presence of /dev/pts.
In a quick survey, ssh uses the last two characters of ut_line;
bsd-style login uses everything after the fourth character (which
happens to be the /); telnetd uses everything after the third character
(thus beginning with the /). PAM uses the last four characters.
Are any of these 'right'?
Also, utmp(5) claims that the ut_id should be 'p' followed by the
number - which seems like a really bad idea, since ttyp0 and pts/0
would then have the same ut_id.
Dan
/--------------------------------\ /--------------------------------\
| Daniel Jacobowitz |__| CMU, CS class of 2002 |
| Debian GNU/Linux Developer __ Part-Time Systems Programmer |
| dan@debian.org | | drow@cs.cmu.edu |
\--------------------------------/ \--------------------------------/