delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Message-ID: | <002101c01921$e3182740$dac9f018@e> |
From: | "e e" <edwede AT swbell DOT net> |
To: | <cygwin AT sources DOT redhat DOT com> |
Subject: | Fw: setuid and seteuid |
Date: | Thu, 7 Sep 2000 18:18:09 -0500 |
MIME-Version: | 1.0 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Mailer: | Microsoft Outlook Express 5.00.2615.200 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2615.200 |
that's a part of the problem, it doesn't ask for password. --- here is some more detail about the problem. I am logged into nt as my nt-domain user that has local nt-admin rights. su and some other programs make a call to setuid or seteuid. In normal unix, the file 'su' is chmod to 4755 which is -rwsr-xr-x. There is no implementation of "set user execution bit on" in cygwin as far as I can tell. In its very simple form the program: -------- #include <stdio.h> #include <unistd.h> #include <errno.h> main() { int ret; ret=seteuid(0); perror("err"); } -------- for me it gives "not owner". There is no way to "set user execution bit" Do you get something else, if so are you logged in as I am as above? Anyway, my original problem is I am trying to rewrite sshd as an installable nt service. The user "system" executes the program as a service but when the seteuid call is made it errors out with, you guessed it "not owner". "system" should have "run on behalf of another user" by default, so why isn't the seteuid working? inetd works that way right? > ============ > >>if I do an 'su - guest' or 'su - tuser1' , I get > > > > > >'su: cannot set user id: Not owner' > > > >You can't change user context without giving a password > >and if the process has special permissions. > -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |