Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: lpz@nautique.epm.ornl.gov (Macintyre L P)
Subject: getttynam() on DEC OSF/1
Date: 30 Jan 1995 20:55:57 GMT	[thread overview]
Message-ID: <3gjjot$9m7@stc06.CTD.ORNL.GOV> (raw)


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


             reply	other threads:[~1995-01-30 20:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-01-30 20:55 Macintyre L P [this message]
1995-02-02  6:37 ` getttynam() on DEC OSF/1 Spider Boardman
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox