bash can not find most of my commands
Rolf G Nielsen
rnmtw at lazlarlyricon.com
Tue Feb 22 16:54:35 UTC 2011
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 at freebsd.org mailing list
>>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>>> To unsubscribe, send any mail to
>>> "freebsd-questions-unsubscribe at freebsd.org"
>>>
>>
>> _______________________________________________
>> freebsd-questions at freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> To unsubscribe, send any mail to
>> "freebsd-questions-unsubscribe at 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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at freebsd.org"
>
More information about the freebsd-questions
mailing list