delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/05/04/00:54:05

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
content-class: urn:content-classes:message
MIME-Version: 1.0
Subject: Re: 1.5.16-1: chmod problem
Date: Wed, 4 May 2005 06:53:53 +0200
Message-ID: <C833F6C0EF3DD24DA46FADF0A87466931EA044@fe-mail18.de.bosch.com>
From: "Pach Roman (GS-EC/ESA4) *" <Roman DOT Pach AT de DOT bosch DOT com>
To: <cygwin AT cygwin DOT com>
X-OriginalArrivalTime: 04 May 2005 04:53:53.0947 (UTC) FILETIME=[459886B0:01C55065]
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j444s46C014079

I admit I'm stubborn about this topic but I'd like to propose 
the change of chmod implementation.
I thing, it would be nice if the 'chmod +/-w' would have in the discussed case the same
functionality as the Windows' command 'attrib'.
See please the appended screenshot.

U:\tmp>ls -l yahoo
-rw-r--r--  1 ropach mkpasswd 5 Apr 29 07:35 yahoo

U:\tmp>attrib +r yahoo
U:\tmp>ls -l yahoo
-r--r--r--  1 ropach mkpasswd 5 Apr 29 07:35 yahoo

U:\tmp>attrib -r yahoo
U:\tmp>ls -l yahoo
-rw-r--r--  1 ropach mkpasswd 5 Apr 29 07:35 yahoo

U:\tmp>chmod -w yahoo
chmod: changing permissions of `yahoo': Permission denied
U:\tmp>ls -l yahoo
-rw-r--r--  1 ropach mkpasswd 5 Apr 29 07:35 yahoo

U:\tmp>chmod +w yahoo
chmod: changing permissions of `yahoo': Permission denied
U:\tmp>ls -l yahoo
-rw-r--r--  1 ropach mkpasswd 5 Apr 29 07:35 yahoo

Roman

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019