From: Brian Ford <ford@vss.fsi.com>
To: Michael Wood <mwood@broadcom.com>
Cc: cygwin@cygwin.com
Subject: Re: com1 access denied - win xp
Date: Fri, 21 May 2004 01:30:00 -0000 [thread overview]
Message-ID: <Pine.CYG.4.58.0405201321230.2628@fordpc.vss.fsi.com> (raw)
Message-ID: <20040521013000.P7sji7N5wIPE5e88_pu9Q4R2gR6qrZlDHu0uKvFPzbU@z> (raw)
In-Reply-To: <c8im1b$rri$1@sea.gmane.org>
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/
next prev parent reply other threads:[~2004-05-20 18:38 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-20 16:49 Michael Wood
2004-05-20 17:45 ` Igor Pechtchanski
2004-05-21 0:10 ` Igor Pechtchanski
2004-05-20 18:27 ` Dave Korn
2004-05-24 20:30 ` Michael Wood
2004-05-20 20:44 ` Brian Ford [this message]
2004-05-21 1:30 ` Brian Ford
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.CYG.4.58.0405201321230.2628@fordpc.vss.fsi.com \
--to=ford@vss.fsi.com \
--cc=cygwin@cygwin.com \
--cc=mwood@broadcom.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).