From owner-freebsd-questions@FreeBSD.ORG Wed Oct 31 12:57:52 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C2F6016A474 for ; Wed, 31 Oct 2007 12:57:52 +0000 (UTC) (envelope-from aharrison@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.235]) by mx1.freebsd.org (Postfix) with ESMTP id 6BF0613C4BF for ; Wed, 31 Oct 2007 12:57:52 +0000 (UTC) (envelope-from aharrison@gmail.com) Received: by nz-out-0506.google.com with SMTP id l8so97195nzf for ; Wed, 31 Oct 2007 05:57:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=cDJ4cggOAZJoqHMjV6STKLoE+gOsS7L4shcK6/ei6nc=; b=O2SBNGNbcgk9Mljgqf5RKvvwWE/W5NPfJkB3tVhfuIcoNFie+/1JJfv9DbzcA12DO+sh9ju0JHLGxb4asrsL5/taXgwvoGXPZtQ+uDTkWY79gtR0VMJOO1mV4XxyiDK5YSBTnwbO9g8nE9E4aNKv+vRHiDpkIfJ1ggXIfOd823E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=FfzpuoFhCRdwH+cWiKDoNMSHL01U3MOCI6DdpoGJS35UQZlJEeAT5X1vir0z+IiNUKpctaP/csUCZ29LmRVBruoUx79ziqb1mtDSUjKaAOqgOjD8vjBgrQ/IimNTTAOjBjJVxs6Cap32UK2t0ftDaTbgfi783ryF+nmwuG2hZwM= Received: by 10.65.115.4 with SMTP id s4mr1199301qbm.1193835457544; Wed, 31 Oct 2007 05:57:37 -0700 (PDT) Received: by 10.65.182.4 with HTTP; Wed, 31 Oct 2007 05:57:37 -0700 (PDT) Message-ID: Date: Wed, 31 Oct 2007 08:57:37 -0400 From: "Andy Harrison" To: "FreeBSD Questions" In-Reply-To: <62b856460710310231h3bc517cdl20300179ac6f1a39@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <62b856460710310231h3bc517cdl20300179ac6f1a39@mail.gmail.com> Subject: Re: ssh X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Oct 2007 12:57:52 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 10/31/07, Michael Grant wrote: > If I'm sued as root and I ssh somewhere, ssh/scp reads it's files from > /root/.ssh/. The docs say it reads from ~/.ssh which is what I want, > but it's not doing that. When sued, the shell is properly expanding ~ > to my home dir. > > Anyone know of a way around this behavior? Instead of just 'su' use 'su -' and that should do the trick. - -- Andy Harrison public key: 0x67518262 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: http://firegpg.tuxfamily.org iD8DBQFHKHvaNTm8fWdRgmIRAhFhAJ46R6bNuvJy3BY4ooAdaI3vcsRp8gCgzAYU nynWAduwbQCBu3x/DLJbhRg= =9XV1 -----END PGP SIGNATURE-----