From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ppsw-30.csi.cam.ac.uk (ppsw-30.csi.cam.ac.uk [131.111.8.130]) by sourceware.org (Postfix) with ESMTPS id 9E263385DC0B for ; Thu, 23 Apr 2020 16:40:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 9E263385DC0B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=cam.ac.uk Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=ctr28@cam.ac.uk DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cam.ac.uk; s=20180806.ppsw; h=Content-Type:In-Reply-To:MIME-Version:Date:Message-ID: References:Cc:To:From:Subject:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=5aK54E9X1dEYzM7ccA23CMXrSnwOwmc0qRU6GDUjT7A=; b=NzWzIxigMnGV3hL0okIV/elTqm y/Dq5MTFqAS6lSHXZSOMIRTTHuftYgHV9u5OiGWKmpdFieqkgiVtLL4NTQhzQbDF36Nx8nHR0/K54 xa68hs3Lf5fWsB+wwtKnAtgCSXfeP6kGWSWOpleLX3710ynUbOjEnVtkMY4DtBqqwHLM=; X-Cam-AntiVirus: no malware found X-Cam-ScannerInfo: http://help.uis.cam.ac.uk/email-scanner-virus Received: from 171.201.208.46.dyn.plus.net ([46.208.201.171]:55445 helo=[192.168.9.218]) by ppsw-30.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.156]:587) with esmtpsa (PLAIN:ctr28) (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1jRetp-000mt7-f0 (Exim 4.92.3) (return-path ); Thu, 23 Apr 2020 17:40:29 +0100 Subject: Re: ssh-pageant From: Chris Rodgers To: cygwin@cygwin.com References: <5f24168f-61d7-848b-677d-bf0d5aea303a@cam.ac.uk> Message-ID: <569cc14c-a9f8-e9bb-0700-d244968cdd30@cam.ac.uk> Date: Thu, 23 Apr 2020 17:40:29 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 MIME-Version: 1.0 In-Reply-To: <5f24168f-61d7-848b-677d-bf0d5aea303a@cam.ac.uk> Content-Language: en-GB X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00, DKIMWL_WL_MED, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, HTML_MESSAGE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Apr 2020 16:40:32 -0000 Thomas Wolff wrote: > >/Would it be acceptable to update the ssh-pageant package to add a file />//etc/profile.d/ssh-pageant.sh that does this automatically? /Does what? Add something to other users' profiles? Sounds like MS-style > patronizing of user preferences. Certainly not appreciated by most > people. Also, why should most cygwin users want to use ssh via putty? > Mintty + ssh is a seamless modular solution. > > > The sole purpose of installing ssh-pageant is to use pageant as an SSH key agent for openssh. It's not a base package. So the users who install ssh-pageant on their machines presumably want pageant to be their ssh key agent for openssh. So I am proposing that this should work immediately after the package is installed, without requiring editing the .bash_profile file. Adding a file to /etc/profile.d/ssh-pageant.sh seems like it would be a simple way to achieve this. I guess there is an issue for multi-user machines where different users want to use different SSH agents wherein the default ssh agent would be set for all users on installing ssh-pageant package. It can still trivially be overridden by a .bash_profile configuration of an SSH key agent in the user profile scripts. What do people think? My driver is that it would be nice to streamline the standard setup for folk in my lab. The other thought I had was to add a postinstall script, like some fedora or ubtuntu packages have. Are these allowed to prompt the user interactively whether they wish to configure the profile setting? BW Chris.