delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/11/08/08:40:01

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=VYQlArWFUomgL0DDZGvlSJr3EO1VntErmiF3DNdr8IAlPIhYfxi8GdzYHFpcFL58fqN6Mhh/a67gPdRoG2ujg1sEDKTLFVV9z8+s0esm9hgRCpsMQMMtaz5gP5z7fvwVMxt3Ai0h2D0DaEGFnKGQMD84BiZKXKm90xcjBoiR4Ik=
Message-ID: <fdb072ec04110805396cb95d3@mail.gmail.com>
Date: Mon, 8 Nov 2004 08:39:22 -0500
From: Robert Pendell <shinji257 AT gmail DOT com>
Reply-To: Robert Pendell <shinji257 AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Creating superuser (root) in Cygwin
In-Reply-To: <cmnrjk$vr7$1@sea.gmane.org>
Mime-Version: 1.0
References: <cmlpat$o8o$1 AT sea DOT gmane DOT org> <6 DOT 1 DOT 0 DOT 6 DOT 0 DOT 20041107173348 DOT 04468150 AT pop DOT prospeed DOT net> <cmnnb9$k8n$1 AT sea DOT gmane DOT org> <fdb072ec041108050956512052 AT mail DOT gmail DOT com> <cmnrjk$vr7$1 AT sea DOT gmane DOT org>
X-IsSubscribed: yes

I don't think it will be possible to do a straight forward port for
sudo to cygwin.  Even by creating a user called root.  This will
pretty much require a direct modification of code enclosed in 'if
def's ' thoughout.  Redefining what it considers to be an
administrator from user id 0 to user id 544.  This of course was
already mentioned by Larry Hall and I thnk he is right in terms what
should be done.  The su program in cygwin doesn't actually work at all
(it only compiles).  That one does a similar function but it does it
per session where you invoke su and have you run as root for a while. 
It fails to function for the same reason that sudo won't function out
of the box.  Good luck on getting it to work.  Maybe you can get
cygwin added to the supported platforms list on the website.  Also I
would highly suggest looking at the links that Larry Hall supplied in
his post which are these.

http://cygwin.com/cygwin-ug-net/ntsec.html#NTSEC-SETUID
http://cygwin.com/cygwin-ug-net/ntsec.html#NTSEC-SWITCH

They have useful information that can aid in getting sudo to work fully.

On Mon, 08 Nov 2004 13:16:36 +0000, Olumide <50295 AT web DOT de> wrote:
> 
> 
> > You cannot just create a superuser in cygwin because cygwin is a
> > translation layer for UNIX applications.  Cygwin is not actual UNIX
> > and there are limitations.  Basically cygwin is using the host
> > machine's security model rather than unix's own native security model
> > and porting is not straight forward for some applications.  It is even
> > worse when it comes to WIndows 9x than with Windows NT where as 9x has
> > no security model of its own (that I am aware about).  The passwd and
> > group files are there for compatibility and allows some applications
> > to work.  At least that is my understanding.
> 
> Thanks Robert.
> 
> I'm on WindowsXP and I'm trying to run sudo
> (http://www.courtesan.com/sudo/) what do you think I should do.
> 
> --
> 
> 
> 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/
> 
> 


-- 
Robert Pendell
shinji257 AT gmail DOT com

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