From owner-freebsd-questions@FreeBSD.ORG Fri Sep 8 14:58:47 2006 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 856B816A4E1 for ; Fri, 8 Sep 2006 14:58:47 +0000 (UTC) (envelope-from backyard1454-bsd@yahoo.com) Received: from web83108.mail.mud.yahoo.com (web83108.mail.mud.yahoo.com [216.252.101.37]) by mx1.FreeBSD.org (Postfix) with SMTP id F3AA343D67 for ; Fri, 8 Sep 2006 14:58:43 +0000 (GMT) (envelope-from backyard1454-bsd@yahoo.com) Received: (qmail 36580 invoked by uid 60001); 8 Sep 2006 14:58:43 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=tlGGdD/m6nWEZjHwTLeXeHvzmt3+t7Ks6FOzqoZNqnFSN+EASC6qo3kYmDUo+nq5nGZpInIg8t0QobDpkavaDcMyQOeyN0H1b5uxAksN8aPqYcsSPv4NbMmzLirEKXy1LG4lW43mGiRIaK/hJr50ocExXyGzHgWjyNvJDqhWxf4= ; Message-ID: <20060908145843.36578.qmail@web83108.mail.mud.yahoo.com> Received: from [63.240.228.37] by web83108.mail.mud.yahoo.com via HTTP; Fri, 08 Sep 2006 07:58:43 PDT Date: Fri, 8 Sep 2006 07:58:43 -0700 (PDT) From: backyard To: Huy Ton That , questions@freebsd.org In-Reply-To: <1cac28080609080749q4fe4d31agc51d5206b0340f5c@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: Subject: Re: Changing Default Editor in profile X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: backyard1454-bsd@yahoo.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Sep 2006 14:58:47 -0000 --- Huy Ton That wrote: > under my home directory for root under .profile I > added the line: > > EDITOR=pico; export EDITOR > > where no such line existed for EDITOR before; this > line exists in my > personal account that I use and my default for > external launched editors is > now pico such that I can edit crontab stuff easily. > However, when I ssh in > and then su, I try to run crontab only to find it is > still booting into 'vi' > by default. Any ideas how I can get this loaded? > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > yeah, I'm not sure what the switch is for su I think its -w check man, but you have to load your profile for root which is a switch to su. by default it uses the profile of the user running su. the switch loads the profile for the user your su'ing to. -brian