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


On 12/30/2013 2:23 PM, Nellis, Kenneth wrote:
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.

The groups magically changing reminds me of the group setuid ("sticky") bit being set. Try a "ls -ld ~" and see what's up with your home directory. And maybe open up your home directory permissions from Windows Explorer and see if there are special object inherit options coming from parent directories that might be affecting it (if not using windows pro, "cd; cacls .")


--
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]