From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,b3f7552d08a21035 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1995-02-01 22:37:26 PST Path: nntp.gmd.de!Germany.EU.net!howland.reston.ans.net!gatech!newsxfer.itd.umich.edu!zip.eecs.umich.edu!caen!crl.dec.com!crl.dec.com!nntpd.lkg.dec.com!leggy.zk3.dec.com!orb!orb!spider From: spider@Orb.Nashua.NH.US (Spider Boardman) Newsgroups: comp.unix.osf.osf1 Subject: Re: getttynam() on DEC OSF/1 Date: 02 Feb 1995 06:37:26 GMT Organization: Duchy of Wabesylvan Obspauk Distribution: world Message-ID: References: <3gjjot$9m7@stc06.CTD.ORNL.GOV> NNTP-Posting-Host: orb.nashua.nh.us In-reply-to: lpz@nautique.epm.ornl.gov's message of 30 Jan 1995 20:55:57 GMT In article <3gjjot$9m7@stc06.CTD.ORNL.GOV> lpz@nautique.epm.ornl.gov (Macintyre L P) writes: lpz> I'm trying to find out whether a terminal has the secure lpz> attribute (root can use it to log in). According to the man lpz> pages, you put ptys in the file /etc/securettys and then all lpz> ttys are secure. However, it also says that the routine lpz> getttyname() can be used to find out whether root logins are lpz> allowed on your terminal. Unfortunately, it seems that lpz> getttyname() only checks for the terminal by its full name lpz> (e.g. /dev/ttypa) and doesn't look for the ptys keyword. lpz> This leads me to believe that DEC either has another call lpz> that they don't tell you about or that they explicitly check lpz> for ptys as well as the actual name. Does anyone know? If you're on a pty, you have to know that and check getttyname("ptys") yourself. This is trickier than it used to be if you make the switch to SystemV-style pty names (/dev/pts/9 for example). To be truly general, software has to check for "/dev/pts/" as well as anything that works for BSD-ish systems. -- Spider Boardman (at home) spider@Orb.Nashua.NH.US speaking only for myself ...!decvax!orb!spider