From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Sun, 1 Nov 2015 14:39:20 -0800 (PST) From: =?UTF-8?Q?Stefan_M=C3=BChlinghaus?= To: voidlinux Message-Id: <77fec9a9-6938-43cc-88fc-f726526cd7ed@googlegroups.com> In-Reply-To: <65a79b3c-0168-404d-9b9f-73eca48ec4ad@googlegroups.com> References: <65a79b3c-0168-404d-9b9f-73eca48ec4ad@googlegroups.com> Subject: Re: how to enable .bash_history in Voidlinux MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_516_1550945864.1446417560463" ------=_Part_516_1550945864.1446417560463 Content-Type: multipart/alternative; boundary="----=_Part_517_1543011044.1446417560463" ------=_Part_517_1543011044.1446417560463 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit You can edit /etc/passwd and change roots default shell from /bin/sh to /bin/bash if you want to make the change permanent. For a one-time change you can always just switch the shell by running "exec bash". I personally prefer the second option because that way shell scripts run as root will run under dash which is more restricted by simply having fewer features than bash and thus is somewhat more secure. ------=_Part_517_1543011044.1446417560463 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit
You can edit /etc/passwd and change roots default shell from /bin/sh to /bin/bash if you want to make the change permanent. For a one-time change you can always just switch the shell by running "exec bash".

I personally prefer the second option because that way shell scripts run as root will run under dash which is more restricted by simply having fewer features than bash and thus is somewhat more secure.
------=_Part_517_1543011044.1446417560463-- ------=_Part_516_1550945864.1446417560463--