Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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: <004101c31523$fa9ae640$6400a8c0 AT FoxtrotTech0001> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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/