delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/04/16/05:58:19

X-Spam-Check-By: sourceware.org
Date: Mon, 16 Apr 2007 11:57:57 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Unable to open /dev/mem: permission denied
Message-ID: <20070416095757.GC21503@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <d01549650704140836o3046ec5fua89d7f5404c96f7c AT mail DOT gmail DOT com> <4621FB51 DOT 4108691F AT dessent DOT net>
Mime-Version: 1.0
In-Reply-To: <4621FB51.4108691F@dessent.net>
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 Apr 15 03:15, Brian Dessent wrote:
> Jamie Mortimore wrote:
> 
> > Unable to open /dev/mem: Permission denied
> > 
> > I have set up a root user (in /etc/passwd) and am running the program
> > as root but this doesn't solve the problem. Any help much appreciated.
> 
> Having a user named 'root' in passwd is irrelevant.  What matters is
> whether you are logged in to Windows with a user account that has
> Administrator privileges.  Is that what you mean by "running the program
> as root"?
> 
> To be clear, it doesn't matter at all what you name the user or what you
> put in /etc/passwd or /etc/group, what matters is whether Windows
> considers the user to have admin privileges, as the return value of
> open("/dev/mem") is just a direct translation of the result of calling
> the NT function to open \device\physicalmemory, so it's up to Windows
> whether this fails or succeeds, not anything in Cygwin.

Funny(*) sidenote:  Accessing \device\physicalmemory from privileged
user mode processes works only on NT4, W2K and XP.  Starting with 2K3,
access to physical memory has been restricted to work only in kernel
mode.


Corinna


(*) No, not really.


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