Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Reply-To: Cygwin List Message-Id: <6.1.0.6.0.20041107173348.04468150@pop.prospeed.net> X-Sender: Date: Sun, 07 Nov 2004 17:45:15 -0500 To: Olumide <50295 AT web DOT de>, cygwin AT cygwin DOT com From: Larry Hall Subject: Re: Creating superuser (root) in Cygwin In-Reply-To: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 01:25 PM 11/7/2004, you wrote: >Hi, > >I need to create or access a superuser account in Cygwin. > >The problem is that I'm trying to compile sudo (http://www.courtesan.com/sudo/) and unfortunately, I need superuser privilegdes to install or run the program, or even edit its configuration files. > >Again, I'm writing a multithreaded program that needs to raise the priority of certain threads. The thread library function that does this again requires superuser priviledges to run. > >These are just two of the problems I've encountered lately. I really need to create a root account in Cygwin. Based on the above statements, it seems you don't understand the differences in the security model between Unix-based platforms and Windows NT-based platforms. You may find the following sections in the Cygwin User's Guide useful/helpful in this regard: I haven't looked at the 'sudo' code but based on it's description, I would say that it if it relies on changing the user context to work, the above references are relevant. It's also not likely to be a straight-forward port. As to required privileges to install, run, or edit any files of 'sudo', you need to determine what 'sudo' is using to decide whether you have proper privileges to do these things. Again, this is a porting issue and may just come down to changing code that looks for the current user's id as 0 to something that makes sense on Windows, 544 (Administrator) perhaps. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746 -- 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/