From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,b3f7552d08a21035,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1995-01-30 12:55:57 PST Path: nntp.gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!gw1.att.com!fnnews.fnal.gov!stc06.CTD.ORNL.GOV!nautique.epm.ornl.gov!lpz From: lpz@nautique.epm.ornl.gov (Macintyre L P) Newsgroups: comp.unix.osf.osf1 Subject: getttynam() on DEC OSF/1 Date: 30 Jan 1995 20:55:57 GMT Organization: Oak Ridge National Laboratory Distribution: world Message-ID: <3gjjot$9m7@stc06.CTD.ORNL.GOV> Reply-To: lpz@nautique.epm.ornl.gov (Macintyre L P) NNTP-Posting-Host: nautiquee.epm.ornl.gov X-Newsreader: mxrn 6.18-20 Hi: I'm trying to find out whether a terminal has the secure attribute (root can use it to log in). According to the man pages, you put ptys in the file /etc/securettys and then all ttys are secure. However, it also says that the routine getttyname() can be used to find out whether root logins are allowed on your terminal. Unfortunately, it seems that getttyname() only checks for the terminal by its full name (e.g. /dev/ttypa) and doesn't look for the ptys keyword. This leads me to believe that DEC either has another call that they don't tell you about or that they explicitly check for ptys as well as the actual name. Does anyone know? Lawrence ~ ------------------------------------------------------------------------------- lpz@nautique.epm.ornl.gov Lawrence MacIntyre lpz@ornl.gov Oak Ridge National Laboratory 615.574.8696