From owner-freebsd-questions@FreeBSD.ORG Tue Feb 22 16:54:35 2011 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 D7ADC106566C for ; Tue, 22 Feb 2011 16:54:35 +0000 (UTC) (envelope-from rnmtw@lazlarlyricon.com) Received: from mailgw6.surf-town.net (mail11.surf-town.net [212.97.132.51]) by mx1.freebsd.org (Postfix) with ESMTP id 917858FC08 for ; Tue, 22 Feb 2011 16:54:35 +0000 (UTC) Received: by mailgw6.surf-town.net (Postfix, from userid 65534) id 4246D5F9F7; Tue, 22 Feb 2011 17:54:31 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mailgw6.surf-town.net (Postfix) with ESMTP id 14D4B5FA58; Tue, 22 Feb 2011 17:54:26 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mailgw6.surf-town.net X-Spam-Flag: NO X-Spam-Score: -1.44 X-Spam-Level: X-Spam-Status: No, score=-1.44 tagged_above=-999 required=7 tests=[ALL_TRUSTED=-1.44] Received: from mailgw6.surf-town.net ([127.0.0.1]) by localhost (mailgw6.surf-town.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 7LOHC3wk4RI4; Tue, 22 Feb 2011 17:54:20 +0100 (CET) Received: from lazlar.kicks-ass.net (c-0987e355.09-42-6e6b7010.cust.bredbandsbolaget.se [85.227.135.9]) by mailgw6.surf-town.net (Postfix) with ESMTPA id 472CD5FA25; Tue, 22 Feb 2011 17:54:15 +0100 (CET) Message-ID: <4D63EA36.2080509@lazlarlyricon.com> Date: Tue, 22 Feb 2011 17:54:14 +0100 From: Rolf G Nielsen User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; sv-SE; rv:1.9.2.13) Gecko/20110117 Lightning/1.0b2 Thunderbird/3.1.7 MIME-Version: 1.0 To: Alokat References: <4D63E6F2.3050008@alokat.org> <4D63E7E5.5000401@lazlarlyricon.com> <4D63E893.2070502@alokat.org> In-Reply-To: <4D63E893.2070502@alokat.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: bash can not find most of my commands 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: Tue, 22 Feb 2011 16:54:35 -0000 2011-02-22 17:47, Alokat skrev: > On 02/22/11 17:44, Rolf Nielsen wrote: >> 2011-02-22 17:40, Alokat skrev: >>> Hi, >>> >>> I have changed my shell from csh to bash ... >> >> Why? >> Do you use root as your regular login? >> >>> But after that I have to call "reboot" like /sbin/reboot. >>> >>> How can I change that without changing the shell. :) >>> >>> my /root/.profile: >>> >>> PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin >>> >>> >>> export PATH >>> HOME=/root >>> export HOME >>> TERM=${TERM:-cons25} >>> export TERM >>> PAGER=more >>> export PAGER >>> >>> Regards, >>> Alokat >>> _______________________________________________ >>> 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" >>> >> >> _______________________________________________ >> 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" > It's just for example ... :) > I have a non root login for regular stuff. To me the .profile looks ok, and I can't really say why it doesn't work. However, do not use a shell that's not in the base system for root. Some would point security issues, but I don't know much about those when it comes to bash, however, if you need to boot into single user, you may get into troubles with a shell not in base. > _______________________________________________ > 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" >