public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: Using external tools KILLS permissions of ASCII files
@ 2001-09-03 15:42 Andreas Eibach
  2001-09-03 16:00 ` Corinna Vinschen
  0 siblings, 1 reply; 5+ messages in thread
From: Andreas Eibach @ 2001-09-03 15:42 UTC (permalink / raw)
  To: cygwin

 I wrote:
 > The only way out seems to be sticking to Cygwin tools _only_ for editing,
 > even 'vi' if you insist.
 > But that's would be a bad compromise...

 A little add-on to this: I just checked a  -rwxr-x-r-x  file, edited it
with
vi, and modified it a bit. After saving the file the original permissions
were gone and the file was at -rw-r--r--.
How can I change this (or restore the original permissions) at least a
_little_ on W9x? Really no way to just _keep_ the original permissions of a
file?
*Sigh*

 Andreas



--
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/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Using external tools KILLS permissions of ASCII files
  2001-09-03 15:42 Using external tools KILLS permissions of ASCII files Andreas Eibach
@ 2001-09-03 16:00 ` Corinna Vinschen
  2001-09-03 16:43   ` Corinna Vinschen
  2001-09-03 17:08   ` Andreas Eibach
  0 siblings, 2 replies; 5+ messages in thread
From: Corinna Vinschen @ 2001-09-03 16:00 UTC (permalink / raw)
  To: cygwin

On Tue, Sep 04, 2001 at 12:52:11AM +0200, Andreas Eibach wrote:
>  I wrote:
>  > The only way out seems to be sticking to Cygwin tools _only_ for editing,
>  > even 'vi' if you insist.
>  > But that's would be a bad compromise...
> 
>  A little add-on to this: I just checked a  -rwxr-x-r-x  file, edited it
> with
> vi, and modified it a bit. After saving the file the original permissions
> were gone and the file was at -rw-r--r--.
> How can I change this (or restore the original permissions) at least a
> _little_ on W9x? Really no way to just _keep_ the original permissions of a
> file?
> *Sigh*

The x-bit on 9x/ME is set _only_ by examining the beginning of the
file. If it's containing e.g. #!/bin/perl or so, it's executable.

Your native Windows tool seems to remove this #! stuff, unfortunately.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
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/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Using external tools KILLS permissions of ASCII files
  2001-09-03 16:00 ` Corinna Vinschen
@ 2001-09-03 16:43   ` Corinna Vinschen
  2001-09-03 17:08   ` Andreas Eibach
  1 sibling, 0 replies; 5+ messages in thread
From: Corinna Vinschen @ 2001-09-03 16:43 UTC (permalink / raw)
  To: cygwin

On Tue, Sep 04, 2001 at 01:00:29AM +0200, Corinna Vinschen wrote:
> On Tue, Sep 04, 2001 at 12:52:11AM +0200, Andreas Eibach wrote:
> >  I wrote:
> >  > The only way out seems to be sticking to Cygwin tools _only_ for editing,
> >  > even 'vi' if you insist.
> >  > But that's would be a bad compromise...
> > 
> >  A little add-on to this: I just checked a  -rwxr-x-r-x  file, edited it
> > with
> > vi, and modified it a bit. After saving the file the original permissions
> > were gone and the file was at -rw-r--r--.
> > How can I change this (or restore the original permissions) at least a
> > _little_ on W9x? Really no way to just _keep_ the original permissions of a
> > file?
> > *Sigh*
> 
> The x-bit on 9x/ME is set _only_ by examining the beginning of the
> file. If it's containing e.g. #!/bin/perl or so, it's executable.

...except for the test for file suffixes (.exe, etc.), of course.
But that shouldn't match your problem.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
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/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Using external tools KILLS permissions of ASCII files
  2001-09-03 16:00 ` Corinna Vinschen
  2001-09-03 16:43   ` Corinna Vinschen
@ 2001-09-03 17:08   ` Andreas Eibach
  1 sibling, 0 replies; 5+ messages in thread
From: Andreas Eibach @ 2001-09-03 17:08 UTC (permalink / raw)
  To: cygwin

----- Original Message -----
From: "Corinna Vinschen" <cygwin@cygwin.com>
To: <cygwin@cygwin.com>
Sent: Tuesday, September 04, 2001 1:00 AM
Subject: Re: Using external tools KILLS permissions of ASCII files


> On Tue, Sep 04, 2001 at 12:52:11AM +0200, Andreas Eibach wrote:
> >  I wrote:
> >  > The only way out seems to be sticking to Cygwin tools _only_ for
editing,
> >  > even 'vi' if you insist.
> >  > But that's would be a bad compromise...
> >
> >  A little add-on to this: I just checked a  -rwxr-x-r-x  file, edited it
> > with
> > vi, and modified it a bit. After saving the file the original
permissions
> > were gone and the file was at -rw-r--r--.
> > How can I change this (or restore the original permissions) at least a
> > _little_ on W9x? Really no way to just _keep_ the original permissions
of a
> > file?
> > *Sigh*
>
> The x-bit on 9x/ME is set _only_ by examining the beginning of the
> file. If it's containing e.g. #!/bin/perl or so, it's executable.

Thank you very very much, Corinna, you've just saved my life. :-)
Honestly, I didn't know this before...(that the shebang determines the
executable status in Cygwin)
Well yes, Dreamweaver 3 _must not_ auto-correct ANYTHING.

Now look at that!

[before]
#!/usr/bin/perl
<BODY text="#000000" bgcolor="#FFFFFF">

[afterwards]
<BODY text="#000000" bgcolor="#FFFFFF">#!/usr/bin/perl

This obviously _cannot_ work.
Fix: Tell Dreamweaver to NEVER rewrite CGI files:
Edit->Preferences->HTML Rewriting
Never Rewrite HTML: In Files with Extensions [...] .cgi [...]
OK.

That did it.
Many thanks again, Corinna. Glad I was able to track that down now with DW.

Andreas


--
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/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Using external tools KILLS permissions of ASCII files
@ 2001-09-03 14:34 Andreas Eibach
  0 siblings, 0 replies; 5+ messages in thread
From: Andreas Eibach @ 2001-09-03 14:34 UTC (permalink / raw)
  To: cygwin

Hi,

this is a very serious problem. I'm working with apache and it works great.
But there are also CGI files involved.When working with them, I edit them
with Macromedia Dreamweaver. After saving with Dreamweaver, my permissions
are GONE and the file is inaccessible on the browser via '/cgi-bin/'!! NOTE:
this happens with both invoking DW from within Cygwin and by Windows
Explorer.
I'm using Win98SE so I cannot use ntsec.

The only way out seems to be sticking to Cygwin tools _only_ for editing,
even 'vi' if you insist.
But that's would be a bad compromise...

Thanks in advance for your suggestions.

Andreas


--
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/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-09-03 17:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-03 15:42 Using external tools KILLS permissions of ASCII files Andreas Eibach
2001-09-03 16:00 ` Corinna Vinschen
2001-09-03 16:43   ` Corinna Vinschen
2001-09-03 17:08   ` Andreas Eibach
  -- strict thread matches above, loose matches on Subject: below --
2001-09-03 14:34 Andreas Eibach

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).