public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Bash script permissions
@ 2001-09-12 12:50 David Monk
  2001-09-12 13:23 ` Larry Hall (RFK Partners, Inc)
                   ` (2 more replies)
  0 siblings, 3 replies; 20+ messages in thread
From: David Monk @ 2001-09-12 12:50 UTC (permalink / raw)
  To: cygwin

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.

Thanks,
David Monk CCNA. MCSE
david@purplebear.net




--
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] 20+ messages in thread
* RE: Properly using ntsec, from the beginning
@ 2001-09-13  7:04 Berndl, Klaus
  0 siblings, 0 replies; 20+ messages in thread
From: Berndl, Klaus @ 2001-09-13  7:04 UTC (permalink / raw)
  To: 'David Monk'; +Cc: 'Cygwin'

AFAIK there is no such proven method per default, means automaticaly
done by setup.exe for example.

But at http://tech.erdelynet.com/cygwin-perms.asp you will find a script
which at least modifies the permissions for ntsec for all
directories below ~ /etc and /.

You can download the script and very easily modify it so it operates
on additional directories too.

Does this help?,
Klaus

-----Original Message-----
From: David Monk [ mailto:david@purplebear.net ]
Sent: Thursday, September 13, 2001 3:31 PM
To: Corinna Vinschen
Subject: Properly using ntsec, from the beginning


How would one go about doing a fresh install on NTFS, whether it be NT or
2000, and use the ntsec option of CYGWIN properly, without having to
immediately change file and directory permissions throughout?
IOW, is there a proven method to install Cygwin and get a proper filesystem
tree with permissions on text files, configuration files, and executable
scripts set similar to a typical UNIX filesystem? And also have proper
permission manipulation within cygwin.

David Monk



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

^ permalink raw reply	[flat|nested] 20+ messages in thread
* Re: Properly using ntsec, from the beginning
@ 2001-09-13  7:05 Karl M
  0 siblings, 0 replies; 20+ messages in thread
From: Karl M @ 2001-09-13  7:05 UTC (permalink / raw)
  To: cygwin

Hi All...

There have been several command scripts posted here for setting up all of 
the file permissions immediately post install. These may be helpful.

Thanks,

...Karl

>From: Corinna Vinschen <cygwin@cygwin.com>
>To: cygwin <cygwin@cygwin.com>
>Subject: Re: Properly using ntsec, from the beginning
>Date: Thu, 13 Sep 2001 15:59:01 +0200
>
>On Thu, Sep 13, 2001 at 08:30:41AM -0500, David Monk wrote:
> > How would one go about doing a fresh install on NTFS, whether it be NT 
>or
> > 2000, and use the ntsec option of CYGWIN properly, without having to
> > immediately change file and directory permissions throughout?
> > IOW, is there a proven method to install Cygwin and get a proper 
>filesystem
> > tree with permissions on text files, configuration files, and executable
> > scripts set similar to a typical UNIX filesystem? And also have proper
> > permission manipulation within cygwin.
>
>Setup.exe is not ntsec aware currently and since NT doesn't support
>setting POSIX permissions by default, the answer is no.
>
>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/
>


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


--
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] 20+ messages in thread
* RE: Properly using ntsec, from the beginning
@ 2001-09-13 14:22 Steve Jorgensen
  0 siblings, 0 replies; 20+ messages in thread
From: Steve Jorgensen @ 2001-09-13 14:22 UTC (permalink / raw)
  To: Cygwin List (E-mail)

It is on my to do list to start a project or join an existing project to 
create a security wizard that can be run by setup.exe after install or at 
any time.  This would help in creating and maintaining passwd and group 
files and setting proper ntsec permissions for existing objects.  Its a few 
big projects down on my list, but I do intend to work on it.

On Thursday, September 13, 2001 7:03 AM, Berndl, Klaus 
[SMTP:klaus.berndl@sdm.de] wrote:
> AFAIK there is no such proven method per default, means automaticaly
> done by setup.exe for example.
>
> But at http://tech.erdelynet.com/cygwin-perms.asp you will find a script
> which at least modifies the permissions for ntsec for all
> directories below ~ /etc and /.
>
> You can download the script and very easily modify it so it operates
> on additional directories too.
>
> Does this help?,
> Klaus
>
> -----Original Message-----
> From: David Monk [ mailto:david@purplebear.net ]
> Sent: Thursday, September 13, 2001 3:31 PM
> To: Corinna Vinschen
> Subject: Properly using ntsec, from the beginning
>
>
> How would one go about doing a fresh install on NTFS, whether it be NT or
> 2000, and use the ntsec option of CYGWIN properly, without having to
> immediately change file and directory permissions throughout?
> IOW, is there a proven method to install Cygwin and get a proper 
filesystem
> tree with permissions on text files, configuration files, and executable
> scripts set similar to a typical UNIX filesystem? And also have proper
> permission manipulation within cygwin.
>
> David Monk
>
>
>
> --
> 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/
> 

--
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] 20+ messages in thread

end of thread, other threads:[~2001-09-13 14:22 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-12 12:50 Bash script permissions David Monk
2001-09-12 13:23 ` Larry Hall (RFK Partners, Inc)
2001-09-12 13:25 ` Corinna Vinschen
2001-09-12 13:35   ` David Monk
2001-09-12 13:46     ` Larry Hall (RFK Partners, Inc)
2001-09-12 13:50       ` David Monk
2001-09-12 13:54         ` Larry Hall (RFK Partners, Inc)
2001-09-12 13:49     ` Corinna Vinschen
2001-09-12 14:01       ` David Monk
2001-09-12 14:05         ` Christopher Faylor
2001-09-12 14:42           ` David Monk
2001-09-12 14:55             ` Rick Rankin
2001-09-12 15:02               ` Corinna Vinschen
2001-09-13  6:30                 ` Properly using ntsec, from the beginning David Monk
2001-09-13  6:59                   ` Corinna Vinschen
2001-09-13  7:25                   ` Gerrit P. Haase
2001-09-12 13:30 ` Bash script permissions Gerrit P. Haase
2001-09-13  7:04 Properly using ntsec, from the beginning Berndl, Klaus
2001-09-13  7:05 Karl M
2001-09-13 14:22 Steve Jorgensen

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).