Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!apple!mrspoc!itkin From: itkin@mrspoc.Transact.COM (Steven M. List) Newsgroups: comp.unix.questions Subject: Re: autoexecution of a program by tty Message-ID: <1991Apr10.182548.11027@mrspoc.Transact.COM> Date: 10 Apr 91 18:25:48 GMT References: <1991Mar28.143204.27014@ddsw1.MCS.COM> <1991Apr3.135455.3191@athena.mit.edu> <1991Apr08.130553.16073@ddsw1.MCS.COM> Reply-To: steven@Transact.COM Organization: Transact Software Lines: 28 ebrill@ddsw1.MCS.COM (Edward Brill) writes: >In article <1991Apr3.135455.3191@athena.mit.edu> jik@athena.mit.edu (Jonathan I. Kamens) writes: >>In article <1991Mar28.143204.27014@ddsw1.MCS.COM>, ebrill@ddsw1.MCS.COM (Edward Brill) writes: >>|> Is there any way that I can tell xgetty that any connect to an x.25 tty >>|> should automatically run the BBS (or at least a shell program)? Since all >>|> users have to log in as bbs, I'd rather they be able to skip that step. >> >> If all the people using the BBS log in as "bbs", then why don't you just >>change the shell field in /etc/passwd for the BBS account so that the shell >>that is invoked automatically when the bbs user logs in is the BBS program? >> >I was kinda hoping that it could assume that any connects on xty00 thru >xty3f are BBS connections, and that the user wouldn't even have to face >a login: prompt. I am getting the feeling that this is basically >impossible. This is definitely possible. Since there is a getty running for each port, you need merely replace either the getty program or the login program. How about taking one of the PD getty replacements and modifying it so it does a setuid and then invokes the BBS program? Assuming that the BBS program waits for a command, then users would only need to press enter or something to begin their sessions, right? -- +----------------------------------------------------------------------------+ : Steven List @ Transact Software, Inc. :^>~ : : Chairman, Unify User Group of Northern California : : itkin@Transact.COM :