delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/08/31/02:36:13

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
Message-ID: <4315509E.6C41C634@dessent.net>
Date: Tue, 30 Aug 2005 23:39:26 -0700
From: Brian Dessent <brian AT dessent DOT net>
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Can't switch to another user.
References: <431471D8 DOT 30106 AT ti DOT com> <Pine DOT GSO DOT 4 DOT 63 DOT 0508301055200 DOT 27062 AT slinky DOT cs DOT nyu DOT edu> <431479FA DOT 4040306 AT ti DOT com>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com

Ramasubramanian Ramesh wrote:

> Based on the document I read, I got the impression that I cannot use su
> but login will work.  I really do not need to login as different user.

I don't know which document you're referring to, but the first paragraph
of /usr/share/doc/Cygwin/login.README says

Under NT/2K/XP, login(1) is _not_ supposed to work on the command line
to change user context!  Though you're able to tweak user permissions
to get login(1) working that way, that's NOT officially supported.

> However, I see that xinetd does not work as it should. It also
> misteriously dies with some sort of permission denied message. So when I
> did a xinetd -d to see the transcript of an attempt to telnet, I saw
> something similar to login failure.  So I decided to try a simple
> experiment with login. But I really need inetd/telnet/ftp to work.

From your cygcheck, you have no services installed.  How are you running
xinetd?  You can't just run it as "xinetd &" because under Windows,
regualr user accounts do not have the privileges necessary to switch
user credentials.  You need to install it as a service running as
SYSTEM.  Services are the analog of daemons in the unix world.

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019