Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
To: cygwin@cygwin.com
X-Injected-Via-Gmane: http://gmane.org/
Path: not-for-mail
From: Andrew DeFaria <ADeFaria@Salira.com>
Subject: Re: Force bash to start as administrator
Date: Wed, 11 Dec 2002 11:11:58 -0800
Lines: 28
Message-ID: <3DF78DFE.2000302@Salira.com>
References: <265000-220021231117280767@M2W093.mail2web.com>
NNTP-Posting-Host: 206.184.204.2
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: main.gmane.org 1039634012 7586 206.184.204.2 (11 Dec 2002 19:13:32 GMT)
X-Complaints-To: usenet@main.gmane.org
NNTP-Posting-Date: Wed, 11 Dec 2002 19:13:32 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01
X-Accept-Language: en-us, en, ru, zh

lhall@pop.ma.ultranet.com wrote:

> Type this in a bash window:
> cygrunsrv -I LoginShell -d "Login shell" -p /usr/bin/cygstart -a
> /usr/bin/login -e "CYGWIN=tty binmode ntsec"
>
> Go to the Control Panel->Administrative Tools->Services
> Right click on "LoginShell" and go to properties.
> Go to the "Log On" tab and check the "Allow service to interact with
> desktop"

Hmmm... In my Windows XP I don't see an "Allow service to interact with 
desktop" selection on the "Log On" tab.

> Follow this with this in a bash window: cygrunsrv -S LoginShell

Why not simply select start in the services applet instead of having to 
start a shell and type a command? If net start LoginShell is a shorter 
command!

> This will give you a new console window with the login prompt. From here,
> you can log in as anybody, assuming you know the proper passwords. ;-)
>
> You should be able to use ssh to do this as well, which should be easier
> than going through the above gyrations. 

Or telnet or rlogin if one sets up inetd...




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

