This is the mail archive of the
mailing list for the Cygwin project.
Re: Accessing Windows files from Cygwin
- From: "Larry Hall \(Cygwin\)" <reply-to-list-only-lh at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 06 Jul 2010 11:45:08 -0400
- Subject: Re: Accessing Windows files from Cygwin
- References: <firstname.lastname@example.org>
- Reply-to: cygwin at cygwin dot com
On 7/5/2010 12:18 PM, ppmoore wrote:
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:
On Windows, I manually modified the file to have the permissions:
Authenticated Users: Full control
Users (<machine name>\Users): Full control
I'm running Cygwin from the same Windows accounts I use to access these
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
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
Larry Hall http://www.rfk.com
RFK Partners, Inc. (508) 893-9779 - RFK Office
216 Dalton Rd. (508) 893-9889 - FAX
Holliston, MA 01746
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
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple