Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!mcdchg!usenet From: usenet@mcdchg.UUCP Newsgroups: mod.os.unix Subject: attaching '/dev/tty' to the control group from getty Message-ID: <230@mcdchg.UUCP> Date: Fri, 13-Mar-87 10:11:17 EST Article-I.D.: mcdchg.230 Posted: Fri Mar 13 10:11:17 1987 Date-Received: Sat, 14-Mar-87 07:04:54 EST Sender: usenet@mcdchg.UUCP Organization: Univ. of Central Florida, Orlando Lines: 28 Keywords: login, getty Approved: usenet@falkor.UUCP [This is the first of several messages that have been in my backlog. With changing jobs and trying to get net feeds established, I haven't had time to do mod.os.unix (soon to be renamed something like comp.unix). My apologies for the long delay. I will include a "Posted:" header line to indicate the date the posting originated for the backlog messages. Ron Heiby, usenet@mcdchg.UUCP (reachable via cbatt, cbosgd, clyde, and gatech)] I am attempting to write a new getty to run on an IBM RT running AIX ( SYSV ). The client for our package wants a friendlier logon screen based upon curses. They want two methods of logging on. If they give a userid/passwd combo then they will enter into our package. If they enter UNIX for the userid they want to get a regular unix login. My problem is that when I exec '/bin/login', login only prompts for the userid, and always lets the user in without asking for a passwd. The best I can tell is that '/dev/tty' is not being associated with the control group. The reason that the user is not prompted for a passwd is that 'getpass' tries to open '/dev/tty' and when it can't it return's NULL which login is not expecting. Can any body validate my observations, and hopely tell me how to attach '/dev/tty' to the control group. -- Larry Baird uucp: {ihnp4!decvax,peora}!ucf-cs!baird Dept. of Computer Science arpa: baird.ucf-cs@csnet-relay University of Central Florida csnet:baird@ucf Orlando, FL 32816