X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=lFIMIaYEqrnSAztd bmI4Fk58yeLGnouCPvMyBF6BeXePAPB+S2BJl2Fsw0tla5gMmaAEGjEk1dCX39dF yR6Xe1BdSiaRAhHRXDEAGNdEHoHCKxYFgn+zZ8Otb4yl9NUwM2/lIvWFAyGR3x5J Wb4f1UkUwe3aH8r6hUAl1t02wDg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; s=default; bh=5onCA7lSozLzCMULFbUycA 9GrvE=; b=Q6sb++NfQlXca4/kH77+XNGnqjEoAKQMcyxku3Of8bo0IgJelEp7bf hVl4jo0e+P4uuWhwqONslwDvdcDSYUJy68q9c/cVC34Nkhg++XvSp9p9t9HnDnKE g7aHLjvf8mFHmWLOtmH7yyZ9AiOTanILt5PzwRjuimdUQuwjScNKo= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KAM_THEBAT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.1 spammy=UD:ru, H*UA:Bat!, HX-Priority:Normal, H*R:U*cygwin X-HELO: forward101p.mail.yandex.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1558560902; bh=KvXwb2uEJZaZTd607brt5nyBR8K5/YXkHFhj9N5ZNBw=; h=In-Reply-To:Subject:To:Reply-To:From:Message-ID:References:Date; b=rNP9AT6bkrcAHdfUH+5SSCkZcT03oo488bg2HxnD8af62tDFMjGplCGYXyhSoj+an bMPfxhwBKPCPcYM5NUE2JPLcHU60iWHapSz6xP6e53djbHyYsDHXb66Fpjk+rCraO5 4qXRfJ1xT6GkJCNkIC1OlHAJn2G57oHK55mcuaT4= Authentication-Results: mxback11j.mail.yandex.net; dkim=pass header.i=@yandex.ru Date: Thu, 23 May 2019 00:31:06 +0300 From: Andrey Repin Reply-To: cygwin AT cygwin DOT com Message-ID: <13772422.20190523003106@yandex.ru> To: Irfan Adilovic , cygwin AT cygwin DOT com Subject: Re: cygrunsrv --install --user : avoid having to enter the user's password In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Greetings, Irfan Adilovic! > (All actions here assume an elevated mintty terminal) > I have the need to automate the installation of autossh as a windows > service (=> several dozen autossh services) and when installing as a > local user, the password prompt is an issue. This is not an issue, this is a requirement of the OS. > Is there a way to add windows services with cygrunsrv from an elevated > mintty bash shell to run as a local user, somehow without requiring > that local user's password each time the service is installed? Nothing can be done about it, except providing the password it is asking for. -- With best regards, Andrey Repin Thursday, May 23, 2019 0:29:04 Sorry for my terrible english... -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple