From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Received: (qmail 1127 invoked from network); 20 May 2004 18:38:26 -0000 Received: from unknown (HELO esds.vss.fsi.com) (66.136.174.212) by sourceware.org with SMTP; 20 May 2004 18:38:26 -0000 Received: from fordpc.vss.fsi.com (fordpc [198.51.27.93]) by esds.vss.fsi.com (8.11.6+Sun/8.9.1) with ESMTP id i4KIcJU08680; Thu, 20 May 2004 13:38:19 -0500 (CDT) Date: Thu, 20 May 2004 20:44:00 -0000 From: Brian Ford Reply-To: cygwin@cygwin.com To: Michael Wood cc: cygwin@cygwin.com Subject: Re: com1 access denied - win xp In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-IsSubscribed: yes X-SW-Source: 2004-05/txt/msg00706.txt.bz2 On Thu, 20 May 2004, Michael Wood wrote: > I get an "Access is denied" error message when attempting to create a > serial port connection through Cygwin, running on Win XP. > > In cygwin, when I execute: > ls -l COM1 > > I get the following: > -rw-r--r-- 1 mwood mkgroup- 0 Jan 1 1970 COM1 Not related, but note the mkgroup- in the group field. That means your group is not part of /etc/group. Please see "man mkgroup" to fix this. I get the following with the latest snapshot: -rwxrwxrwx 1 Administ SYSTEM 0 Dec 31 1969 COM1* which may or may not make more sense to you. > However, when I execute: > chmod a+rw COM1 > > the command exits normally (no error message), but the permissions on > COM1 stay the same. AFAIK, you can't change the POSIX derived permissions of DOS devices. > Furthermore, I do not particularly understand why if I am the owner of > COM1 (as illustrated by the 'ls -l'), why I would get a permission > error. That may depend on the version of Cygwin you are using. Please see: http://cygwin.com/problems.html for the required information in a problem report. > I have successfully created and used a connection on the serial port on > the same machine through a VMWare session running a Linux Red Hat image. > I used a very similar procedure above, in that I simply changed the > permissions on "/dev/ttyS0" to grant all users read and write > permissions to the serial port. Does this help? http://cygwin.com/cygwin-ug-net/using-specialnames.html#AEN806 Don't use a DOS device if you want POSIX behavior. -- Brian Ford Senior Realtime Software Engineer VITAL - Visual Simulation Systems FlightSafety International the best safety device in any aircraft is a well-trained pilot... From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1136 invoked by alias); 20 May 2004 18:38:27 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 1127 invoked from network); 20 May 2004 18:38:26 -0000 Received: from unknown (HELO esds.vss.fsi.com) (66.136.174.212) by sourceware.org with SMTP; 20 May 2004 18:38:26 -0000 Received: from fordpc.vss.fsi.com (fordpc [198.51.27.93]) by esds.vss.fsi.com (8.11.6+Sun/8.9.1) with ESMTP id i4KIcJU08680; Thu, 20 May 2004 13:38:19 -0500 (CDT) Date: Fri, 21 May 2004 01:30:00 -0000 From: Brian Ford Reply-To: cygwin@cygwin.com To: Michael Wood cc: cygwin@cygwin.com Subject: Re: com1 access denied - win xp In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-IsSubscribed: yes X-SW-Source: 2004-05/txt/msg00708.txt.bz2 Message-ID: <20040521013000.P7sji7N5wIPE5e88_pu9Q4R2gR6qrZlDHu0uKvFPzbU@z> On Thu, 20 May 2004, Michael Wood wrote: > I get an "Access is denied" error message when attempting to create a > serial port connection through Cygwin, running on Win XP. > > In cygwin, when I execute: > ls -l COM1 > > I get the following: > -rw-r--r-- 1 mwood mkgroup- 0 Jan 1 1970 COM1 Not related, but note the mkgroup- in the group field. That means your group is not part of /etc/group. Please see "man mkgroup" to fix this. I get the following with the latest snapshot: -rwxrwxrwx 1 Administ SYSTEM 0 Dec 31 1969 COM1* which may or may not make more sense to you. > However, when I execute: > chmod a+rw COM1 > > the command exits normally (no error message), but the permissions on > COM1 stay the same. AFAIK, you can't change the POSIX derived permissions of DOS devices. > Furthermore, I do not particularly understand why if I am the owner of > COM1 (as illustrated by the 'ls -l'), why I would get a permission > error. That may depend on the version of Cygwin you are using. Please see: http://cygwin.com/problems.html for the required information in a problem report. > I have successfully created and used a connection on the serial port on > the same machine through a VMWare session running a Linux Red Hat image. > I used a very similar procedure above, in that I simply changed the > permissions on "/dev/ttyS0" to grant all users read and write > permissions to the serial port. Does this help? http://cygwin.com/cygwin-ug-net/using-specialnames.html#AEN806 Don't use a DOS device if you want POSIX behavior. -- Brian Ford Senior Realtime Software Engineer VITAL - Visual Simulation Systems FlightSafety International the best safety device in any aircraft is a well-trained pilot... -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/