DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 5041bkpo1543304 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 5041bkpo1543304 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=gGF+rFhY X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EAC783858CD1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1735954666; bh=fPVr4/zEjYETSC+AP2oyBU30SQz1gT2kqZuX2k3sQqw=; h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=gGF+rFhYL+lnyc/rLWvYwsY/1KJSftQxiOtKpcer93JdZQByRb4Dy8iP9hb9rvL7f NBQzp/jbvCQ6xKuqUs8jv84v3Y+xpJqu8smQjTZllgUaQHkUeQDG6H+upb1Q8G6MIr cJKw9oebp3fJQR8ND0DFq5rP3Li9MSAGU3NL10N8= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 878A23858D39 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 878A23858D39 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1735954504; cv=none; b=HTLdQTfvxrKkC2W+Ns29Cbdl6LEj4tMOmW9AKhMklh7IJMH15BnnsC8Lx3EKs13jKPGX72gaaAqwp6tKN7E9844vDY19xko6ia4rmkH+tOMiPnvPFBbsRXd9djHmW6hIknTm1Njv95q9kmsGUmmL0cwvIaxchdFOVDcGHuhfu0A= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1735954504; c=relaxed/simple; bh=FVQ0f+LmaPq2+hFX7p3nLUVOaYiUnkjP8OKNtfdaSqw=; h=DKIM-Signature:Date:From:Message-ID:To:Subject:MIME-Version; b=qNfqonKOzatifpC7Euk7EXOJAty7I92Xnxexhf2kbKZY3PyEPngCWCsxQlWwy8JxD+6g9wgRTiH12CTdN2s5P/om3Mhqi9KIFlU9yppfxhDR2lo8UQ5SgLq64AQauRFZqTM3VA3inwmuRuwWZSze6oI4fIVQ34RoSu099W8NJIk= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 878A23858D39 X-Yandex-Fwd: 1 Date: Sat, 4 Jan 2025 04:27:17 +0300 X-Mailer: The Bat! (v9.3.4) Professional Message-ID: <1329090459.20250104042717@yandex.ru> To: Cedric Blancher , cygwin AT cygwin DOT com Subject: Re: Modify Cygwin sshd to support login into user SYSTEM? In-Reply-To: References: MIME-Version: 1.0 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: Andrey Repin via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Andrey Repin Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Greetings, Cedric Blancher! >> What problem are you solving? > 1. Replace PsExec, and only use Cygwin builtin tools Cygwin is a user-level library, don't use it to substitute system administration tools. Bad idea. Bad things will happen. > 2. Do global mounts, i.e. mount SMB filesystem for all users. That > AFAIK only works if you logon as user SYSTEM, and do the net use > \\server\path there That would only mount the path for SYSTEM user. All network mounts are per-session. Every user has to do it for themselves. More so, if a user has elevation rights, they will need to remount the paths under elevated token separately. Use logon scripting for that. Solves the problem the way it's intended to be solved. -- With best regards, Andrey Repin Saturday, January 4, 2025 04:23:39 Sorry for my terrible english... -- 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