[174678] in North American Network Operators' Group

home help back first fref pref prev next nref lref last post

Re: update

daemon@ATHENA.MIT.EDU (Jim Popovitch)
Wed Sep 24 22:44:15 2014

X-Original-To: nanog@nanog.org
In-Reply-To: <CAP-guGVo7V-oDs-nbFkUgJYHo41YFqYRe=MCU4s97LxFanvf1A@mail.gmail.com>
Date: Wed, 24 Sep 2014 22:43:30 -0400
From: Jim Popovitch <jimpop@gmail.com>
To: William Herrin <bill@herrin.us>
Cc: "nanog@nanog.org" <nanog@nanog.org>
Errors-To: nanog-bounces@nanog.org

On Wed, Sep 24, 2014 at 10:29 PM, William Herrin <bill@herrin.us> wrote:
> On Wed, Sep 24, 2014 at 7:36 PM, Daniel Jackson <fdj@mindspring.com> wrote:
>> On 09/24/2014 07:22 PM, Jim Popovitch wrote:
>>> That won't automatically invoke bash on Debian/Ubuntu....unless someone
>>> intentionally changed default shells....
>>
>> People seem not to know that Debian and derivatives use a variant Almquist
>> shell rather than bash for system accounts.
>
> You're both wrong.
>
> $ cat /etc/issue
> Debian GNU/Linux 7 \n \l
>
> $ ls -laF /bin/sh
> lrwxrwxrwx 1 root root 4 Nov 17  2011 /bin/sh -> bash*
> $ grep root /etc/passwd
> root:x:0:0:root:/root:/bin/bash

You have done something wrong/different than what appears on a
relatively clean install:

$ cat /etc/issue
Debian GNU/Linux 7 \n \l

$ cat /etc/debian_version
7.6

$ ls -laF /bin/sh
lrwxrwxrwx 1 root root 4 Mar  1  2012 /bin/sh -> dash*

$ grep root /etc/passwd
root:x:0:0:root:/root:/bin/sh

I'm curious now... did you install a server or desktop version of
Debian?  Was if from netinst or cds, etc.?

-Jim P.

home help back first fref pref prev next nref lref last post