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: Accessing Windows files from Cygwin


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 (<machine name>\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

<http://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-ids>

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


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