X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: mwoehlke <mwoehlke@tibco.com>
Subject:  Re: Read-only samba directory appears writable to Cygwin
Date:  Mon, 22 May 2006 13:33:43 -0500
Lines: 20
Message-ID: <e4t067$1rd$1@sea.gmane.org>
References:  <20060522165542.GA21403@lucent.com>
Mime-Version:  1.0
Content-Type:  text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding:  7bit
User-Agent: Thunderbird 1.5 (X11/20051201)
In-Reply-To: <20060522165542.GA21403@lucent.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Peter Fales wrote:
> We've got a directory which is mounted from a Samba server.  The server
> is sharing the directory as read-only.  However under Cygwin
> 
> 	access("/path/to/samba/mount/some_file",W_OK) 
> 
> is returning 0, indicating the that file is writable.    I assume this
> is because Cygwin doesn't "know" that directory is read-only.   Is there
> any workaround (such as an option to "mount") that would tell cygwin
> that the directory is read-only, or that all directories have 555 permission
> instead of 755?

Hmm, if you were asking this of Linux, I'd say 'use a umask option in 
the mount'... does Cygwin not have such a thing? (NOTE: That question is 
directed at the other Cygwin folks; I looked and did not find one in the 
'man' so I'm guessing it does not?)

-- 
Matthew
All of my signatures are 100% original. Including this one.


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

