delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Reply-To: | <a DOT maclean AT acfr DOT usyd DOT edu DOT au> |
From: | "Andrew J. P. Maclean" <a DOT maclean AT acfr DOT usyd DOT edu DOT au> |
To: | "'Sundstrom, Peter'" <Peter AT isecure DOT com DOT au>, <cygwin AT cygwin DOT com> |
Subject: | RE: 1.3.5 cp/permissions bug |
Date: | Thu, 22 Nov 2001 10:57:53 +1100 |
Organization: | ACFR |
Message-ID: | <006e01c172e8$55cfdeb0$84d24e81@acfr.usyd.edu.au> |
MIME-Version: | 1.0 |
X-Priority: | 3 (Normal) |
X-MSMail-Priority: | Normal |
X-Mailer: | Microsoft Outlook, Build 10.0.3311 |
X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2600.0000 |
Importance: | Normal |
In-Reply-To: | <7867A43ABE52194C9F2C6E5C15E9C2FA2FC14B@backoff.isecure.com.au> |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id fALNwMo15273 |
In the cygwin.bat file, put in the following line: set CYGWIN=ntsec This will let you get a reasonable semblance of Unix-like security. When I do this I am able to set/change file permissions. Hope that this helps. It seems to: ------------------------------------------------------------------------ --- Administrator AT MIMOSA ~ $ touch x Administrator AT MIMOSA ~ $ ls -ln x -r-xr-xr-x 1 2120 513 973 Nov 22 10:46 x Administrator AT MIMOSA ~ $ chmod 000 x Administrator AT MIMOSA ~ $ ls -ln x ---------- 1 2120 513 973 Nov 22 10:46 x Administrator AT MIMOSA ~ $cp x y cp: `x.exe' and `y' are the same file ----------------------------------------------------------------------- Note that if I don't have ntsec set, I get this result: Administrator AT MIMOSA ~ $ touch x Administrator AT MIMOSA ~ $ ls -ln x -rw-r--r-- 1 500 513 0 Nov 22 10:51 x Administrator AT MIMOSA ~ $ chmod 000 x Administrator AT MIMOSA ~ $ ls -ln x -r--r--r-- 1 500 513 0 Nov 22 10:51 x Administrator AT MIMOSA ~ $ cp x y ___________________________________________ Andrew J. P. Maclean Postal: Australian Centre for Field Robotics The Rose Street Building J04 The University of Sydney 2006 NSW AUSTRALIA Room: 106 Phone: +61 2 9351 3283 Fax: +61 2 9351 7474 http://www.acfr.usyd.edu.au/ ___________________________________________ -----Original Message----- From: Sundstrom, Peter [mailto:Peter AT isecure DOT com DOT au] Sent: Thursday, 22 November 2001 10:22 To: 'Andrew J. P. Maclean ' Subject: RE: 1.3.5 cp/permissions bug Hello Andrew. I've read through the FAQ before, but I read it again and still can't see the relevance to my case. Peter -----Original Message----- From: Andrew J. P. Maclean To: 'Sundstrom, Peter'; cygwin AT cygwin DOT com Sent: 22/11/2001 9:07 AM Subject: RE: 1.3.5 cp/permissions bug I think this article in the FAQ will help. http://cygwin.com/faq/faq.html#SEC44 and http://cygwin.com/cygwin-ug-net/ntsec.html I hope that this helps. Andrew ___________________________________________ Andrew J. P. Maclean Postal: Australian Centre for Field Robotics The Rose Street Building J04 The University of Sydney 2006 NSW AUSTRALIA Room: 106 Phone: +61 2 9351 3283 Fax: +61 2 9351 7474 http://www.acfr.usyd.edu.au/ ___________________________________________ -----Original Message----- From: Sundstrom, Peter [mailto:Peter AT isecure DOT com DOT au] Sent: Wednesday, 21 November 2001 13:41 To: 'cygwin AT cygwin DOT com' Subject: 1.3.5 cp/permissions bug I'm running 1.3.5 on Win2K The cp command doesn't seem to understand permissions correctly. See following example: Administrator AT SCANNER$ cd /tmp Administrator AT SCANNER$ touch foo Administrator AT SCANNER$ chmod 000 foo Administrator AT SCANNER$ ls -l total 0 ---------- 1 Administ None 0 Nov 21 13:34 foo Administrator AT SCANNER$ cp foo foo1 cp: `foo.exe' and `foo1' are the same file Doing the same on a Solaris box gets the error: cp: can not open foo: Permission denied -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |