This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cron in cygwin


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@cygwin.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]