delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/12/20/09:22:52

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 4BKEMqcD1429081
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 4BKEMqcD1429081
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=ccfEMR2Z
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 236943858C39
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1734704570;
bh=0r/jf1zn5/PEh4NuknjlKW/QIPzg47YWYg2A85czCKo=;
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=ccfEMR2Z8tSqy36095LT86wj7sFzN+msdc0g03S6ko1rb9LdtrnArFt79zoAcZpkt
/w215su6OBTKS2p+3rbwn78j+iL/YSnqHNQDUOni5gSMuGfT+Ia4Bh2euR8rfOgFcL
FTwz0eiZYO48vMXGf2dzCtMGdZ1FuTCexY9P5iOg=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 99B903858CD1
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 99B903858CD1
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1734704502; cv=none;
b=pDE3wbqzdDQteb705H2tjDnPmmPJKs/QMQYVRi+zWPDytVrAOAntfyjCOxurGHaXfnIhPvZS5pqf3hwXVJmClP3nyhE3cdIgEwyYo3nYr3GP0iefBzesMtAofXwB4dhnUOQXtMp15z6tjA7fQwv0VG+D1RatCtBqCVtfJiNDNHs=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1734704502; c=relaxed/simple;
bh=y8QTkkupkvCY+lFILx6mMUjKzi9Y9y0RxpElBl0Cu7w=;
h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From;
b=ZAzcbfO5yp60yGw+mH+7ToZByCNDZAj0xy6RCnHKogokRK3us8MOuJ66KEEHinXAz7U0anVy+Z2PTOmfNEqRGDXq7xGJMmPyvQN7HsAGMskPRYxdHP/Hu9fQwQmwH+bywRFk7p63TtdYA6tklOOywdO1c62dso8Uidbct7g+HaE=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 99B903858CD1
Message-ID: <2ebca14a-ce63-49bc-927b-bed770c91fc3@oskog97.com>
Date: Fri, 20 Dec 2024 16:21:39 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: Modify Cygwin sshd to support login into user SYSTEM?
To: cygwin AT cygwin DOT com
References: <CALXu0Udzq_gd0z13F7m=+krefjbqbVF4wH6pOtoXyU7ufR=EWg AT mail DOT gmail DOT com>
In-Reply-To: <CALXu0Udzq_gd0z13F7m=+krefjbqbVF4wH6pOtoXyU7ufR=EWg@mail.gmail.com>
X-GND-Sasl: oskar AT oskog97 DOT com
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Oskar Skog via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Oskar Skog <oskar AT oskog97 DOT com>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>

On 2024-12-20 14:01, Cedric Blancher via Cygwin wrote:
> Good morning!
> 
> Is it possible to modify Cygwin sshd to support logins into user SYSTEM?
> 
> Ced

No modifications needed.

Run ssh-host-config and answer "no" to strictmodes.
mkdir -p ~SYSTEM/.ssh
ssh-keygen
cp ~/.ssh/id_rsa.puv ~SYSTEM/.ssh/authorized_keys

You can now log in as SYSTEM and correct the permissions of the SYSTEM's
home directory, .ssh, and the files in .ssh.
Once the permissions are sane you can run ssh-host-config again.

/Oskar

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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