From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Duffy Subject: pseudo-tty access for unpriv'd user Date: Fri, 18 Mar 2005 10:46:54 +1100 Message-ID: <423A16EE.5070708@mailcall.com.au> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-msdos-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: linux-msdos@vger.kernel.org Hi all, I'm trying to run some DOS-based BBS software under DOSemu. In my dosemu.conf, I specify a pseudo-tty to use as COM1, like: $_com1 = "/dev/ptyp0" And my linux-native front-end program talks to the BBS software running under DOSemu via /dev/ttyp0. All fine so far, but it only works when DOSemu is running as root, even though I'm not accessing any real serial port hardware (at least I don't think so...). My pty isn't in use by anything else, and permissions are all fine. When run as an unprivileged user, DOSemu starts up fine, but the BBS software complains about not being able to access COM1. The problem isn't particular to that piece of BBS software, either - same thing happens trying to talk to TELIX or any such serial comms program. Is this normal? Or is there some way of getting it to work without running as root? (or being suid-root). I'm using DOSemu 1.2.2.0. My kernel is 2.4.22-1.2115.nptl. Sorry if this question has been asked already - there have been quite a few posts about BBS software and serial port access, but none that I could find addressed this particular issue. Thanks, -- Charles Duffy Systems Administrator Mail Call Couriers