Path: utzoo!attcan!uunet!seismo!sundc!pitstop!sun!decwrl!labrea!polya!shap From: shap@polya.Stanford.EDU (Jonathan S. Shapiro) Newsgroups: comp.unix.wizards Subject: Re: Selectively disable login at specified line? Keywords: login getty tty ultrix csh Message-ID: <4216@polya.Stanford.EDU> Date: 1 Oct 88 23:24:03 GMT References: <1227@tuhold> <659@mtxinu.UUCP> Reply-To: shap@polya.Stanford.EDU (Jonathan S. Shapiro) Organization: Stanford University Lines: 23 In article <659@mtxinu.UUCP> ed@mtxinu.UUCP (Ed Gould) writes: >>We want to restrict login-access at a specified terminal line >>to a group of designated users, with the other ttys still >>accessible to all users. > >The /etc/ttys file specifies the program to be run to capture the >login name: typically /etc/getty. You can use any program of your >own design instead, however. The functions of getty are, essentially, Unfortunately, Ed is not quite right here, because of the following: Getty: login: me: shap ...getty execs login... login: passwd: me: BOGUS (intentionally mistyped) *login*: login: A better place to enforce this sort of thing is to put in /etc/profile and /etc/.login a line to check the tty line against the users group, and log them out if the check fails. This doesn't involve writing any special code.