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

X-Spam-Check-By: sourceware.org
Date: Thu, 23 Aug 2007 20:47:52 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Vista: mount/umount -s permission denied
Message-ID: <20070823184752.GA1886@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
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>
Mime-Version: 1.0
In-Reply-To: <46CDC174.90901@cygwin.com>
User-Agent: Mutt/1.4.2.2i
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 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

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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