Path: utzoo!mnetor!uunet!husc6!bloom-beacon!tut.cis.ohio-state.edu!ukma!uflorida!codas!usfvax2!pdn!tsc3b21!crash From: crash@tsc3b21.UUCP (Frank "crash" Edwards) Newsgroups: comp.sys.ibm.pc.rt Subject: Re: Dial in/out on one line? Message-ID: <258@tsc3b21.UUCP> Date: 29 Mar 88 14:16:22 GMT References: <385@pan.UUCP> Organization: Transportation Systems Consulting, Inc, Palm Harbor FL Lines: 44 From article <385@pan.UUCP>, by jw@pan.UUCP (Jamie Watson): > In article <5424@spool.cs.wisc.edu> luner@ai.cs.wisc.edu (David L. Luner) writes: >>I believe that this is a "restriction." A port cannot be set up for both >>dial-in and dial-out UUCP access. The way around this is to have a cron or >>at job pdisable the port prior to when uucp is going to try to call out. >>I hope to have a better solution in the future, but I wouldn't hold my >>breath. > > But you see, "pdisable/penable" is not the problem! The uucico program does > that (at least, when run with -x9 it claims to do that), but then it can't > open the serial line, because the line is owned by root and mode 622. I can > either the owner or mode by hand, and then everything works. But the next > time a new getty is spawned, the owner and modes are changed back, and I'm > stuck again. > > The fact that uucico diables and enables the port makes me believe that > someone intended for dialin/dialout on one line to work. I'm hoping that > I just need to make some special kind of L-devices file entry, or something, > but perhaps they just never quite got it done right. > > jw This is just off the top of my head, but ... what about putting both fields 2 and 3 in the L-devices file. The first is the "ACU" unit device, and the second is the data line. Perhaps if you set the ACU field (#2) to the port device specified in the /etc/ports file, then uucico would disable that line and use the other for communicating. If so, then you could, as root, create another device, say "/dev/modem", with the "mknod" command and give it the same major/minor device numbers as the original. And your L-devices line might be: /dev/tty6 /dev/modem 2400 where is your name for the entry. Since the two devices refer to the same port, but --ARE NOT-- linked together, you can have separate permissions/owners on each. And with both fields in the L-devices, uucico will disable the port that has the getty running it... Well, it's just a thought -- if it doesn't work, don't blame me!!! ---- Frank (crash) Edwards ...!codas!usfvax2!{pdn,jc3b21}!tsc3b21!crash TSC in Palm Harbor, FL Phone: (813) 785-0583 (voice) The Sweat Shop These opinions belong to no one.