This is the mail archive of the
mailing list for the Cygwin project.
Re: Force bash to start as administrator
- From: Andrew DeFaria <ADeFaria at Salira dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 11 Dec 2002 11:11:58 -0800
- Subject: Re: Force bash to start as administrator
- References: <265000-220021231117280767@M2W093.mail2web.com>
Hmmm... In my Windows XP I don't see an "Allow service to interact with
desktop" selection on the "Log On" tab.
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
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
Follow this with this in a bash window: cygrunsrv -S LoginShell
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