From: Christian Neukirchen <chneuk...@gmail.com>
To: "Stefan Mühlinghaus" <"master..."@googlemail.com>
Cc: voidlinux <void...@googlegroups.com>
Subject: Re: how to enable .bash_history in Voidlinux
Date: Mon, 02 Nov 2015 12:14:01 +0100 [thread overview]
Message-ID: <87wpu08xhi.fsf@gmail.com> (raw)
In-Reply-To: <77fec9a9-6938-43cc-88fc-f726526cd7ed@googlegroups.com> ("Stefan \=\?utf-8\?Q\?M\=C3\=BChlinghaus\=22's\?\= message of "Sun, 1 Nov 2015 14:39:20 -0800 (PST)")
Stefan Mühlinghaus <master...@googlemail.com> writes:
> 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".
Just use chsh(1).
> 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.
This is not true, since almost all shell scripts have a shebang line
of #!/bin/sh (or #!/bin/bash) which is unrelated to the set shell.
(It would indeed make a difference when no shebang is used.)
--
Christian Neukirchen <chneuk...@gmail.com> http://chneukirchen.org
prev parent reply other threads:[~2015-11-02 11:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-30 18:03 tuxracer
2015-10-30 18:11 ` tuxracer
2015-10-30 18:29 ` Duncaen
2015-11-01 14:34 ` tuxracer
2015-11-01 22:39 ` Stefan Mühlinghaus
2015-11-02 11:14 ` Christian Neukirchen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wpu08xhi.fsf@gmail.com \
--to="chneuk..."@gmail.com \
--cc="master..."@googlemail.com \
--cc="void..."@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).