This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: chmod Not Working


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]