From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 1020659CAF for ; Fri, 8 Apr 2016 13:17:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4EB4321C08F; Fri, 8 Apr 2016 13:17:30 +0000 (UTC) Received: from smarthost03c.mail.zen.net.uk (smarthost03c.mail.zen.net.uk [212.23.1.22]) by pigeon.gentoo.org (Postfix) with ESMTP id 314D021C007 for ; Fri, 8 Apr 2016 13:17:29 +0000 (UTC) Received: from [81.108.251.46] (helo=mail.digimed.co.uk) by smarthost03c.mail.zen.net.uk with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1aoWHv-00029l-Gr for gentoo-user@lists.gentoo.org; Fri, 08 Apr 2016 13:17:27 +0000 Received: from digimed.co.uk (fenchurch.digimed.co.uk [192.168.1.6]) by mail.digimed.co.uk (Postfix) with ESMTPA id B35D03E958E for ; Fri, 8 Apr 2016 14:17:25 +0100 (BST) Date: Fri, 8 Apr 2016 14:17:21 +0100 From: Neil Bothwick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] lftp -u user,pass(word Message-ID: <20160408141721.19a3671b@digimed.co.uk> In-Reply-To: <5707ACA9.5040002@gc-24.de> References: <5703B2ED.5070009@gc-24.de> <20160405135236.41ee6626@digimed.co.uk> <5703FE90.5010404@gc-24.de> <2060950.47PH9WsnKc@dell_xps> <5704C570.2090607@gc-24.de> <20160406095857.65c11502@digimed.co.uk> <5707ACA9.5040002@gc-24.de> Organization: Digital Media Production X-Mailer: Claws Mail 3.13.2-108-gb99885 (GTK+ 2.24.30; x86_64-pc-linux-gnu) X-GPG-Fingerprint: 7260 0F33 97EC 2F1E 7667 FE37 BA6E 1A97 4375 1903 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/4JXnvUe2F9ARHKrBX8Yss4M"; protocol="application/pgp-signature" X-Originating-smarthost03c-IP: [81.108.251.46] X-Archives-Salt: ba84baff-5e3e-4481-93d1-7a7f19d5f926 X-Archives-Hash: be50320bfe9313fbc88ef5eaea0b8028 --Sig_/4JXnvUe2F9ARHKrBX8Yss4M Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Fri, 8 Apr 2016 15:05:45 +0200, hw wrote: > > However, the man page also advises against giving the password on the > > command line (because it is then available to anyone with normal user > > shell access while the command is running) and suggests using either =20 >=20 > I need to use it with a script for automatic downloads, so the password > wouldn't appear in the history. Using a ~/.netrc would create a > dependency on the user who runs the script, which is something I would > prefer to avoid. It's not just the history, the password appears in the putput from ps while the transfer is running. > > ~/.netrc, which you have already said works, or $LFTP_PASSWORD along > > with --env-password. Have you tried this? > > > > LFTP_PASSWORD=3D'pass(word' lftp --env-password -u user > > ftp://example.com =20 >=20 > Thanks, that looks like a good solution. I'll see if that works ... If that doesn't work, you could always sidestep the issue by changing the password to "password1" ;-) --=20 Neil Bothwick Programmer (n): A red-eyed, mumbling mammal capable of conversing with inanimate objects. --Sig_/4JXnvUe2F9ARHKrBX8Yss4M Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlcHr2EACgkQum4al0N1GQO6PACg0AOb/f9n8iEIXoX6GCfWkhZG IcEAnRDL3svO9BWULpNuIOiyx4hj7bjy =XvyU -----END PGP SIGNATURE----- --Sig_/4JXnvUe2F9ARHKrBX8Yss4M--