Bash script permissions

Corinna Vinschen cygwin@cygwin.com
Wed Sep 12 13:25:00 GMT 2001


On Wed, Sep 12, 2001 at 02:50:30PM -0500, David Monk wrote:
> I am running the latest net realease on NT 4 and Win 2k. I am having a
> problem limiting, from cygwin, the permissions on a bash script so that only
> the owner can execute it.
> I finally after much fiddling figured out that with the shebang line in the
> script, cygwin immediately thinks it's executable by all. If I try any chmod
> affecting it's executable status, it's ignored. How can I work around this?
> Also, how can this be worked around on Win9x also, as it is planned to
> eventually distribute this script set.

On NT use CYGWIN=ntsec to use the NTFS ACLs, on 9x forget about it.
Where there's no security at all...

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/



More information about the Cygwin mailing list