delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/08/23/15:22:48

X-Spam-Check-By: sourceware.org
Date: Thu, 23 Aug 2007 15:22:26 -0400 (EDT)
From: Dick Repasky <rrepasky AT lack DOT ucs DOT indiana DOT edu>
To: cygwin AT cygwin DOT com
Subject: Re: Vista: mount/umount -s permission denied
In-Reply-To: <20070823184752.GA1886@calimero.vinschen.de>
Message-ID: <Pine.LNX.4.64.0708231521200.8612@lack.ucs.indiana.edu>
References: <Pine DOT LNX DOT 4 DOT 64 DOT 0708231249530 DOT 7120 AT lack DOT ucs DOT indiana DOT edu> <46CDC174 DOT 90901 AT cygwin DOT com> <20070823184752 DOT GA1886 AT calimero DOT vinschen DOT de>
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

On Thu, 23 Aug 2007, Corinna Vinschen wrote:

> On Aug 23 13:18, Larry Hall (Cygwin) wrote:
>> Dick Repasky wrote:
>>>
>>> On Windows Vista Enterprise, I consistently receive "permission denied"
>>> errors when using cygwin mount/umount commands on system mounts
>>> (mount/umount -s ...).  I cannot mount novel system mount points (e.g.,
>>> mount -s -b C:\\bonga /usr/local) or unmount existing system mount
>>> points (e.g., umount -s /usr/lib). The same is true from the cygwin bash
>>> prompt, from within a cygwin bash script, from the windows command
>>> prompt (C:\cygwin\bin\mount -s ...) or from within a windows .bat file.
>>>
>>> The system is a single-user system, and my identity is that under which
>>> setup.exe was run to install cygwin.
>>>
>>> I have not had this issue with cygwin under XP.
>>>
>>> User mounts (mount/umount -u) work just fine for me on Vista.
>>>
>>> Are system mounts supposed to be unmutable?  If so, oh.  If not, is
>>> there a work-around, or what have I done wrongly?
>
> You forgot UAC.  Welcome to the wonderful world of strange Vista
> concepts.
>
>> Try turning off UAC.  Otherwise, give your user the ability to add/remove/
>> update all registry entries.
>
> Erm... turning off UAC will certainly help, but it's not necessary.  And
> administrative users *have* all rights to change the HKEY_LOCAL_MACHINE
> branch of the registry, it's just one of the rights removed when working
> under UAC control.
>
> The most simple way to get the right to mount/umount is to start the
> process with admin rights.  On the Cygwin shell icon, right click to get
> the context menu and choose "Run as administrator" or your local
> equivalent menu entry.  Now you started the shell with all administrative
> permissions and you can mount/umount.
>
>
> Corinna
>

Wow, thanks.  You know, this might make a good FAQ entry.

Dick


Dick Repasky
Center for Computational Cytomics
UITS Cubicle 101.08
Indiana University
USA

rrepasky AT indiana DOT edu

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