delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/07/22/12:11:23

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-3.0 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_66,RCVD_IN_DNSWL_LOW
X-Spam-Check-By: sourceware.org
Message-ID: <4A673A27.1090700@dronecode.org.uk>
Date: Wed, 22 Jul 2009 17:11:19 +0100
From: Jon TURNEY <jon DOT turney AT dronecode DOT org DOT uk>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b3pre) Gecko/20090223 Thunderbird/3.0b2
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: [1.7] mount -m output can contain flag 'noexec', which isn't understood in /etc/fstab
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

Jon AT byron ~
$ mount -o noacl //necker/jon /home/jon
mount: warning - /home/jon does not exist.
mount: defaulting to '--no-executable' flag for speed since native path
        references a remote share.  Use '-f' option to override.

Jon AT byron ~
$ mount -m
//necker/jon /home/jon smbfs binary,noexec,noacl,user 0 0
none /cygdrive cygdrive binary,posix=0,user 0 0

I want this to be permanent, so I edit /etc/fstab to add a copy of the line:
//necker/jon /home/jon smbfs binary,noexec,noacl,user 0 0
close the window, and open another shell, which then says

       3 [main] bash 3460 read_flags: invalid fstab option - 'noexec'

(Curiously only a cmd.exe shell seems capable of showing this, MinTTY doesn't 
which caused me some confusion initially)

Editing /etc/fstab to use 'notexec' instead works as expected, although I am 
not sure what is wrong here: the fstab parsing, the output of mount -m or my 
expectations.

I don't know what mount is referring to in it's output about the 
'--no-executable' flag, that name doesn't seem to exist at all.


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