delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/05/08/03:33:27

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Date: Thu, 8 May 2003 09:33:16 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: cron in cygwin
Message-ID: <20030508073316.GA19367@cygbert.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <Pine DOT GSO DOT 4 DOT 44 DOT 0305071452260 DOT 3212-100000 AT slinky DOT cs DOT nyu DOT edu> <004101c31523$fa9ae640$6400a8c0 AT FoxtrotTech0001>
Mime-Version: 1.0
In-Reply-To: <004101c31523$fa9ae640$6400a8c0@FoxtrotTech0001>
User-Agent: Mutt/1.4.1i

On Thu, May 08, 2003 at 01:37:25AM -0400, Bill C. Riemers wrote:
> It turns out the problem is I used an old Unix trick to "su".  Under XP Home
> edition, the "SYSTEM"
> account does not have a password assigned, and the "passwd" command fails to
> assign a password
> to it.  Consequently "login" does not work for logging in as SYSTEM.  The
> "su" command also fails
> do to the way setuid is implemented under XP.  However, the old hackers
> trick is if you have write
> access to the /etc/passwd file, just change the UID of an account you can
> login to, and make sure that
> account is listed after the real account.  So, I changed "docbill" to UID
> 18.  Walla, when I start a new
> console, I am SYSTEM.   Then I just edit the UID back to normal, for my next
> login.

That's way easier:

Add a home dir and a useful shell to SYSTEM's /etc/passwd entry:

  SYSTEM:*:18:544:,S-1-5-18:/home/system:/bin/bash

Then:  Install sshd as service, create a private/public key pair, put
the public key into /home/system/.ssh/authorized_keys and login to your
system using `ssh -l system localhost'.

Or:  Install inetd as service, remove the `*' from SYSTEM's password
field and login to localhost using rlogin or telnet.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

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