From mboxrd@z Thu Jan 1 00:00:00 1970 X-Received: by 10.112.145.201 with SMTP id sw9mr4303802lbb.13.1446462847060; Mon, 02 Nov 2015 03:14:07 -0800 (PST) X-BeenThere: voidlinux@googlegroups.com Received: by 10.25.79.6 with SMTP id d6ls387464lfb.47.gmail; Mon, 02 Nov 2015 03:14:06 -0800 (PST) X-Received: by 10.112.63.165 with SMTP id h5mr4305549lbs.18.1446462846562; Mon, 02 Nov 2015 03:14:06 -0800 (PST) Return-Path: Received: from mail-wm0-x22c.google.com (mail-wm0-x22c.google.com. [2a00:1450:400c:c09::22c]) by gmr-mx.google.com with ESMTPS id g18si489859wmd.1.2015.11.02.03.14.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Nov 2015 03:14:06 -0800 (PST) Received-SPF: pass (google.com: domain of chneuk...@gmail.com designates 2a00:1450:400c:c09::22c as permitted sender) client-ip=2a00:1450:400c:c09::22c; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of chneuk...@gmail.com designates 2a00:1450:400c:c09::22c as permitted sender) smtp.mailfrom=chneuk...@gmail.com; dmarc=pass (p=NONE dis=NONE) header.from=gmail.com Authentication-Results: mx.google.com; dkim=pass head...@gmail.com Received: by mail-wm0-x22c.google.com with SMTP id f134so55245772wmf.1 for ; Mon, 02 Nov 2015 03:14:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type:content-transfer-encoding; bh=668HZtrpm8gzEcDTRtPjOardHcloCMteJQI0U8m1uqM=; b=UguweKQovasV/FhrS3AjqMBSV4R3YZVnpphxYpaVq9HnL70ybcQUbRjVmOL10q5pnH Jv0WeYgjFiU1h+YQ+0CPzKrS8C8NeDMlWoAcYADYTTyawL5VxgKMvCdf33a0u/RQX0yH Ywq0xsLSqeq+KhBWUn5tVCv9F1U2AhGQ7tANJD7hgycxWHHBcbh0s3pStaYT/VlA1hSz KR+T2Frcyzaurb+evjEZVfJz2JOJWQl8zdpJVabMTNr3dYPjU9+Kpv//nIANdCtf4bmk UOML/tx4jyIdZSbYhkpTscJ97aPLRTEDW7pbfKsM3LoGms8NiQlpsNy6SpfwBwTyvfuh 8DZg== X-Received: by 10.28.145.145 with SMTP id t139mr16176552wmd.0.1446462843655; Mon, 02 Nov 2015 03:14:03 -0800 (PST) Return-Path: Received: from juno.home.vuxu.org ([2001:4ca0:0:f231:a288:b4ff:fea1:ce50]) by smtp.gmail.com with ESMTPSA id l1sm17470873wmb.1.2015.11.02.03.14.02 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Nov 2015 03:14:02 -0800 (PST) Received: from localhost (juno.home.vuxu.org [local]) by juno.home.vuxu.org (OpenSMTPD) with ESMTPA id 686f32ff; Mon, 2 Nov 2015 11:14:01 +0000 (UTC) From: Christian Neukirchen To: Stefan =?utf-8?Q?M=C3=BChlinghaus?= Cc: voidlinux Subject: Re: how to enable .bash_history in Voidlinux References: <65a79b3c-0168-404d-9b9f-73eca48ec4ad@googlegroups.com> <77fec9a9-6938-43cc-88fc-f726526cd7ed@googlegroups.com> Date: Mon, 02 Nov 2015 12:14:01 +0100 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)") Message-ID: <87wpu08xhi.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Stefan M=C3=BChlinghaus writes: > You can edit /etc/passwd and change roots default shell from /bin/sh to= =20 > /bin/bash if you want to make the change permanent. For a one-time change= =20 > 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=20 > root will run under dash which is more restricted by simply having fewer= =20 > 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.) --=20 Christian Neukirchen http://chneukirchen.org