X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=3.6 required=5.0 tests=AWL,BAYES_00,BOTNET,RCVD_IN_DNSWL_NONE,TW_MK,TW_YG X-Spam-Check-By: sourceware.org Message-id: <4F3BF932.9080201@cygwin.com> Date: Wed, 15 Feb 2012 13:28:02 -0500 From: "Larry Hall (Cygwin)" Reply-to: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: File permissions problems with cp in Windows 7 References: In-reply-to: Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On 2/15/2012 12:09 PM, Tom Quarendon wrote: > I'm hoping you can help me understand a problem that's been plaguing me > for some time. > I'm on a recent version of Cygwin (cygcheck -V reports 1.7.9) and I'm on > Windows 7. I believe I have set up my /etc/passwd and /etc/group using > mkpasswd and mkgroup in the appropriate way. If it makes a difference I am > logged on to my machine as a domain user. > > So I have a file created externally to Cygwin, just normal notepad for > example. Let's say this is called hello.txt. > Now I can "fix" this by just doing a chmod -R 755 or some such, but this seems so be papering over the real issue. > Do I expect the permissions on the root of my C drive to just be ---------? > Have I set up Cygwin wrong, or rather missed a set up step? I can't reproduce this on 1.7.9 using a domain user following the steps you outlined above. Perhaps there's something hidden in your cygcheck output and passwd and group files that would help? The only thing that occurred to me is that my user is part of the local administrators group. I'm not sure yours is. You might investigate that. Or try with a local user (with and without admin privs). Alternatively, if you only care about Windows permissions and not POSIX ones that Cygwin prefers, you can use the "noacl" to tell Cygwin to not use POSIX permissions on any part of the file-system. See for more details. I recommend this option only as a last resort of course. -- Larry _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- 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