From: spider@Orb.Nashua.NH.US (Spider Boardman)
Subject: Re: getttynam() on DEC OSF/1
Date: 02 Feb 1995 06:37:26 GMT [thread overview]
Message-ID: <SPIDER.95Feb2013726@orb.Nashua.NH.US> (raw)
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
prev parent reply other threads:[~1995-02-02 6:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-01-30 20:55 getttynam() on DEC OSF/1 Macintyre L P
1995-02-02 6:37 ` Spider Boardman [this message]
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