delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/09/05/16:00:50

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, 05 Sep 2002 08:58:09 -0400
From: Jason Tishler <jason AT tishler DOT net>
Subject: Logging in as SYSTEM (was Re: Quick password question...)
In-reply-to:
<Pine DOT GSO DOT 4 DOT 44 DOT 0209051104110 DOT 1785-100000 AT domino DOT informatik DOT uni-kl DOT de>
To: cygwin AT cygwin DOT com
Mail-followup-to: cygwin AT cygwin DOT com
Message-id: <20020905125809.GB1448@tishler.net>
MIME-version: 1.0
User-Agent: Mutt/1.4i
References: <Pine DOT LNX DOT 3 DOT 96 DOT 1020905105821 DOT 32636A-100000 AT varpa DOT it DOT uc3m DOT es>
<Pine DOT GSO DOT 4 DOT 44 DOT 0209051104110 DOT 1785-100000 AT domino DOT informatik DOT uni-kl DOT de>

Bjoern,

On Thu, Sep 05, 2002 at 11:14:17AM +0200, Bjoern Kahl AG Resy wrote:
> I thought that is impossible ...)

It's not -- use ssh to simulate su.

>  (btw.: how do you get a command prompt running as SYSTEM?

0. Set up sshd (see /usr/doc/Cygwin/openssh-3.4p1-2.README)

1. Change your /etc/passwd SYSTEM entry to something like the following:

    SYSTEM:*:18:18:Local System,U-FOOBAR\LocalSystem,S-1-5-18:/home/system:/bin/bash

2. Create /home/system/.ssh (with the appropriate permissions)

3. Create /home/system/.ssh/authorized_keys2 (with the appropriate
   permissions)

4. Copy your ssh keys to /home/system/.ssh/authorized_keys2

5. ssh system AT foobar

Jason

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019