From: david@adboyd.com (J. David Boyd)
To: cygwin@cygwin.com
Subject: Re: chmod questions
Date: Wed, 07 Aug 2013 18:49:00 -0000 [thread overview]
Message-ID: <gjubpptpibeo.fsf@W0144758.usac.mmm.com> (raw)
In-Reply-To: <479059e9-1e1f-4289-9bfb-98dac1c1fafe@default>
Drew Adams <drew.adams@oracle.com> writes:
> I have read various info regarding trying to make Cygwin's `chmod'
> work as (I) expected, including the Cygwin FAQ and user guide.
> I am using Windows 7 with an NTFS disk. My user and group are
> defined as they should be AFAIK.
>
> Two questions in this regard:
>
> . is "chmod a-w" supposed to set the Windows Read-only attribute
> on Windows 7?
>
> . is "chmod a-w" supposed to cause "ls -l" to show -r-r-r on
> Windows 7?
>
> When I do `chmod a-w' it does not seem to have any effect. The
> target file is still writable. Can someone please tell me what
> I'm missing? Thx.
Works for me.
Here's a file on my system:
$ ls -ltr boxes.txt
-rw-rw-rw-+ 1 A4J0PZZ Administrators 45 Aug 5 12:46 boxes.txt
When I run chmod a-w boxes.txt, I get
$ ls -ltr boxes.txt
-r--r--r--+ 1 A4J0PZZ Administrators 45 Aug 5 12:46 boxes.txt
and the file is no longer writeable.
That's not what you are seeing? I'm on Windows 7 with an NTFS disk as well.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
prev parent reply other threads:[~2013-08-07 18:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-07 18:33 Drew Adams
2013-08-07 18:48 ` Larry Hall (Cygwin)
2013-08-07 18:49 ` J. David Boyd [this message]
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=gjubpptpibeo.fsf@W0144758.usac.mmm.com \
--to=david@adboyd.com \
--cc=cygwin@cygwin.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).