This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: chmod Not Working
- From: "Nellis, Kenneth" <Kenneth dot Nellis at xerox dot com>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Mon, 30 Dec 2013 19:23:10 +0000
- Subject: RE: chmod Not Working
- Authentication-results: sourceware.org; auth=none
- References: <52C14A0C dot 1030806 at mailme dot ath dot cx>
From: bartels
>
> On 12/30/2013 06:16 AM, Nithin Kurien wrote:
> > When I type the following sequence of commands:
> >
> > cd ~; mkdir sample; chmod -R 0700 sample; stat -c "%a %u %g" sample;
> > rm -rf sample; mkdir sample; chmod -R 0755 sample; stat -c "%a %u %g"
> > sample
> >
> > the output is:
> >
> > 770 1001 513
> > 775 1001 513
> >
> > Why is chmod not working?
> >
> > OS: Windows 8 Pro 64-bit
> > Cygwin Setup.exe Version: 2.831 (32-bit)
>
> That looks fine to me.
> What do you expect?
Presumably because when the OP asked for 700 he got 770, and when
he asked for 755 he got 775.
--Ken Nellis
--
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