try: After creating temp.txt in Cygwin:
$ ls -l temp.txt The permissions of this file will depend upon your setting of 'umask'. For me, this yields: $ umask 0022 So, my permissions are set to 'rw-r--r--'. Because you are creating a text file, execution permission should not be on by default. 'ex' appears to be behaving correctly. After 'c:\temp> copy temp.txt a.txt', try: $ ls -l a.txt For me, this yields permissions '---------', i.e., all "UNIX" permissions are turned off. When I attempt to "run" the text file 'a.txt', notepad opens with the contents of 'a.txt' because on my system (Win2K, running Cygwin 1.3.15-2) I have notepad associated with .txt files. > -----Original Message----- > From: Joel Rubin [mailto:jmrubin@;ix.netcom.com] > Sent: Monday, November 11, 2002 4:22 PM > To: [EMAIL PROTECTED] > Subject: Access Denied (XP Home SP1, cygwin-1.3.15 > > > I have the same problem with several Cygwin programs including wget > and unzip. The "access denied" survives a reboot. > > So it seems that Cygwin is creating files with this problem. I have > only one user with, of course, administrative rights. > > 11/08/2002 11:49 AM 1,080,807 cygwin-1.3.15-2.tar.bz2 > > bash-2.05b$ ex temp.txt > "temp.txt" [New File] > Entering Ex mode. Type "visual" to go to Normal mode. > :a > This is a test > Test > . > :wq > bash-2.05b$ exit > Now back in cmd.exe: > > C:\TEMP>temp.txt > Access is denied. > > C:\TEMP>copy temp.txt a. > txt > 1 file(s) copied. > > C:\TEMP>del temp.txt > > C:\TEMP>ren a.txt temp.t > xt > > C:\TEMP>temp.txt > > C:\TEMP> > > > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Bug reporting: http://cygwin.com/bugs.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cygwin.com/faq/ > > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/