Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Feb 2011 17:54:14 +0100
From:      Rolf G Nielsen <rnmtw@lazlarlyricon.com>
To:        Alokat <mailing@alokat.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: bash can not find most of my commands
Message-ID:  <4D63EA36.2080509@lazlarlyricon.com>
In-Reply-To: <4D63E893.2070502@alokat.org>
References:  <4D63E6F2.3050008@alokat.org> <4D63E7E5.5000401@lazlarlyricon.com> <4D63E893.2070502@alokat.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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"
>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D63EA36.2080509>