DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 4BKMZWmn1636085 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 4BKMZWmn1636085 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=oq7El3PM X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7DC84385840E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1734734131; bh=23meNuz2b/gKDSX5Xx8tlQBMfDzo/qAT6iN6LzoQ4Ok=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=oq7El3PMUP2AEFOEvUOHKSU+NTIQSXFW96jrAYXeE123tl7PtD36qkZQKG83+8tFG ZxRzBtdOP7r/0k6yA45HmHISACXiwyRkI60kHcErMZmqYetlNKp0IqTm5M8DdVGOMg KbgCevMHhzZXEMBJVQAHt4+g1GNqiDaJWZNAYV18= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8902F3858D3C ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 8902F3858D3C ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1734733735; cv=none; b=Yq81EtqCna/f+j1YRXc4dzKgctgGLHzdq+oYDM2YirKxXjLBkcM+wdmW1oZOUFWbZoOXZ9IqvZO49k9ifrhsdoZkGDjsHIT64Xk1dr6HCYXE9ZwMlMfc914J0WJqzTUraZax+zJDunCwvxTfeyqYab7g65RA6TwfJldk8naH3mI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1734733735; c=relaxed/simple; bh=vmsZIgg5skfDELhKej0sEzaB2KkmBDvbuSJ9KQpNuyY=; h=Message-ID:Date:MIME-Version:Subject:To:From:DKIM-Signature; b=eXCinaOxqzp1Fs4+lsN8TgW1q0AZ9ZF2tGdWmU7ZzABakmu1IGtIKHlLxtTqtL+HyuVaEFu5lB/1/pQutAswveE+LrLEVXz2zzvfmu8UFwAWUpXB5meDU+ZlA99LqpupIa7vcH47IXU2G7IPUCXYQl3sME8/cVFi+9P7RnVUeGY= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8902F3858D3C Message-ID: <522646bd-50eb-4c88-bf23-a64a5d105beb@SystematicSW.ab.ca> Date: Fri, 20 Dec 2024 15:28:52 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Modify Cygwin sshd to support login into user SYSTEM? Content-Language: en-CA To: cygwin AT cygwin DOT com References: <2ebca14a-ce63-49bc-927b-bed770c91fc3 AT oskog97 DOT com> Organization: Systematic Software In-Reply-To: X-Rspamd-Server: rspamout06 X-Rspamd-Queue-Id: 68FC52E X-Stat-Signature: a3dzsi9hiwa7ppn7trwh41rth6xkrh5h X-Session-Marker: 427269616E2E496E676C69734053797374656D6174696353572E61622E6361 X-Session-ID: U2FsdGVkX1+1QSm28wO8mHSZdMBGM5Z4kOZgi76jeec= X-HE-Tag: 1734733697-889395 X-HE-Meta: U2FsdGVkX1+cR2T4pwpIr0wV0hXi+VI42YC8U9NDQKVFtEWyWuk4M+ZZuZA+rIUV7XOYkngFGVRlPXkKGHK04UzydWjQCPfP0y/XBjorZhc3g/s0SQMnngHafTY+p3aj0MBGntiGgKkuxa0e/5MpGCMMMPyY/apWyUYpwByZ5RsjM0Q9bh+T/jbmLiuh3jbKDRDvxAPZXGEr4iGLOlIlbzTEiE70dZRTuUoN+dRHkAFYiAOa3Lz41IwLb+8HVo4rU9pvdEXmt1jcog2AfFpKyi4yHfJbDXRwdymIIu5pQ48hdwEcCzp5Rk16t5FBYVqfRTo2uFJBB3hsX0RfrOTHnS+iQGTtwo26 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Brian Inglis via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Brian Inglis Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 4BKMZWmn1636085 On 2024-12-20 07:36, Martin Wege via Cygwin wrote: > On Fri, Dec 20, 2024 at 3:22 PM Oskar Skog via Cygwin wrote: >> On 2024-12-20 14:01, Cedric Blancher via Cygwin wrote: >>> Is it possible to modify Cygwin sshd to support logins into user SYSTEM? >> 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. > I tried that for Windows sshd, but only got a > fatal: ga_init, unable to resolve user system > in the logs. > How can I do the same for Windows sshd too? Do a security lookup for user SYSTEM to get host\user required on your system. Read the Windows SSHD instructions to find out where settings are stored - maybe in the registry for services - and what parameters and values are valid? -- Take care. Thanks, Brian Inglis Calgary, Alberta, Canada La perfection est atteinte Perfection is achieved non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut -- Antoine de Saint-Exupéry -- 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