X-Spam-Check-By: sourceware.org Message-ID: <4621FB51.4108691F@dessent.net> Date: Sun, 15 Apr 2007 03:15:45 -0700 From: Brian Dessent X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Unable to open /dev/mem: permission denied References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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. Brian -- 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/