X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org X-Yahoo-SMTP: Uu383n6swBCEN1G9up0WSnxbvN8fCPmk Message-ID: <4C334F84.4040704@cygwin.com> Date: Tue, 06 Jul 2010 11:45:08 -0400 From: "Larry Hall \(Cygwin\)" Reply-To: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090320 Remi/2.0.0.21-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Accessing Windows files from Cygwin References: <29077481 DOT post AT talk DOT nabble DOT com> In-Reply-To: <29077481.post@talk.nabble.com> Content-Type: text/plain; charset=UTF-8; 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 7/5/2010 12:18 PM, ppmoore wrote: > > Hello, > > I' trying to use a BASH script running on Cygwin to change the name of a > large number of Windows files. The filenames are in DOS 8.3 format. My > script reads a translation file that lists each DOS 8.3 filename, and the > corresponding correct filename. > > The problem is that the script cannot change the filenames because it > doesn't have sufficient priority. > > On Cygwin, the files are listed as follows: > http://old.nabble.com/file/p29077481/cygwin.png > > On Windows, I manually modified the file to have the permissions: > Authenticated Users: Full control > Users (\Users): Full control > http://old.nabble.com/file/p29077481/win7.png > > I'm running Cygwin from the same Windows accounts I use to access these > files, > > Why, when I manually change the file permissions from Window, are the > updated permissions not visible from within Cygwin? Why can't I modify the > permissions from within Cygwin, since it is the same account? > > I've rerread the Cygwin documentation (Chapter 2), but I couldn't see > anything there. > > Can anyone help? You need to decide which set of permissions you want to use, POSIX or Windows, with Cygwin. If the former, read and run 'mkpasswd' and 'mkgroup' with the appropriate flags for your installation to get your user and group in the '/etc/passwd' and '/etc/group' files. If you prefer to use Windows permissions only, set the 'noacl' option for all the mount points for which you want Windows permissions (http://cygwin.com/cygwin-ug-net/using-utils.html#mount). -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _____________________________________________________________________ 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