* getttynam() on DEC OSF/1
@ 1995-01-30 20:55 Macintyre L P
1995-02-02 6:37 ` Spider Boardman
0 siblings, 1 reply; 2+ messages in thread
From: Macintyre L P @ 1995-01-30 20:55 UTC (permalink / 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
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: getttynam() on DEC OSF/1
1995-01-30 20:55 getttynam() on DEC OSF/1 Macintyre L P
@ 1995-02-02 6:37 ` Spider Boardman
0 siblings, 0 replies; 2+ messages in thread
From: Spider Boardman @ 1995-02-02 6:37 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1995-02-02 6:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-01-30 20:55 getttynam() on DEC OSF/1 Macintyre L P
1995-02-02 6:37 ` Spider Boardman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox