delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/02/15/12:59:36

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=0.1 required=5.0 tests=AWL,BAYES_50,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
From: "Brian Wilson" <wilson AT ds DOT net>
To: cygwin AT cygwin DOT com
Subject: Re: Newbie confused about chmod
Date: Tue, 15 Feb 2011 12:59:23 -0500
Message-Id: <20110215175334.M55060@ds.net>
In-Reply-To: <30931008.post@talk.nabble.com>
References: <30931008 DOT post AT talk DOT nabble DOT com>
X-OriginatingIP: 57.250.242.249 (wilson)
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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

> I cannot chmod files I untarred into a folder and I cannot 
> chmod a file I create in cgwin myself.
> 
> I understood that you could do this if the file system was NTFS. 
> The bottom line is I have an executable that is not executable.  In 
> addition to solving that though it might be nice to get a better 
> understanding.
>
> (snip)
>
> Any help or advice greatly appreciated for this newbie.
> 

Just to get rid of the obvious possibilities, check to see who owns the 
directory you are in, and what permissions the directory has.  If you do not 
own the directory, or if you do not have permission to change files in the 
directory, even if the file permissions grant you access, you won't be able to 
make permission changes.

If you can create the file but you can't chmod it to executable status, there 
may be some issue with your overall user access rights.

Brian S. Wilson


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

- Raw text -


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